Hi Marc,
agreedIt means that userspace will be aware of some form of GICv4.1 detailsNot sure we would be obliged to expose fine details. This could be a
(e.g., get/set vSGI state at HW level) that KVM has implemented.
Is it something that userspace required to know? I'm open to this ;-)
generic save/restore device group/attr whose implementation at KVM level
could differ depending on the version being implemented, no?
What prevents us from hooking this synchronization to the current behaviour
of KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES? After all, this is already the
point
where we synchronize the KVM view of the pending state with userspace.
Here, it's just a matter of picking the information from some other place
(i.e. the host's virtual pending table).
On QEMU, when KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES is called, the VM is
The thing we need though is the guarantee that the guest isn't going to
get more vLPIs at that stage, as they would be lost. This effectively
assumes that we can also save/restore the state of the signalling devices,
and I don't know if we're quite there yet.
stopped.
See cddafd8f353d ("hw/intc/arm_gicv3_its: Implement state save/restore")
So I think it should work, no?