[RFC PATCH 1/1] KVM: ARM: add vgic state save and restore support

Peter Maydell peter.maydell at linaro.org
Mon Dec 3 08:22:07 EST 2012

On 3 December 2012 12:02, Peter Maydell <peter.maydell at linaro.org> wrote:
> By far the largest part of the save/restore work here is figuring out
> what the right state to expose to userspace is so we can retain that
> compatibility guarantee.

Some further thoughts on this...

What we're really providing the guest here is a hardware-accelerated
software emulation of a no-virtualization GICv2. So it's better for
the state we expose to userspace to be the state of that emulated
hardware, and not to expose details of exactly what that hardware
acceleration is. The hw accel is a property of the host CPU,
not of the guest VM environment, so it could be different on
different kernels or host CPUs, which would make migration potentially
tedious. For instance, consider migration where the source machine
has a VGIC with more list registers than the destination machine.

Obviously you could convert between different representations
in a number of places (source kernel, source qemu, destination
qemu, destination kernel), but I think it makes sense for the
canonical representation to be the guest-visible representation
of the emulated hardware, rather than privileging any one
acceleration implementation above another.

-- PMM

More information about the linux-arm-kernel mailing list