[PATCH v5 08/19] arm/arm64: KVM: make the maximum number of vCPUs a per-VM value
Peter Maydell
peter.maydell at linaro.org
Tue Jan 6 05:58:18 PST 2015
On 5 January 2015 at 17:34, Andre Przywara <andre.przywara at arm.com> wrote:
> Mmmh, fair point. I guess we should just allow KVM_MAX_VCPUS in this
> case, right? Has anyone tested userland GIC emulation recently?
> I will see if I find some method of testing this with QEMU.
I did actually use this when I was trying to track down the bugs
that turned out to be vgic-init-ordering last month. If you add
-machine kernel_irqchip=off to your QEMU command line it will
try to use an emulated userspace GIC. But as Christoffer says,
there is a catch: there's no way to get the vcpu's generic timers
to tell userspace that there's been a timer interrupt that needs
to be fed into the userspace GIC. So you need to fiddle with the
device tree to tell the guest the generic timers don't exist,
and provide a different timer, at least in theory [though I
didn't actually end up having to do that, I think it was just
fluke that it worked for my testing].
-- PMM
More information about the linux-arm-kernel
mailing list