[PATCH 06/16] KVM: Add KVM_EXIT_SYSTEM_EVENT to user space API header
From: Peter Maydell <hidden>
Date: 2014-09-01 10:11:10
Also in:
kvm
From: Peter Maydell <hidden>
Date: 2014-09-01 10:11:10
Also in:
kvm
On 1 September 2014 10:56, Christoffer Dall [off-list ref] wrote:
The thing is that we're not exposing PSCI to user space, we're just exposing a system event, so it feels a bit weird to rely on user space's correct interpretation of a more generic API, to correctly implement PSCI in the kernel.
Yeah; if somebody wants to argue that the other set of semantics make more sense considered purely as a KVM kernel-to-user API I have no objection. (QEMU's current "we'll do that at some point in the future" implementation follows the typical semantics for reset/shutdown triggered by a device register write I think: the write-to-device-register instruction will generally complete and CPU execution continue before the prodded device can get the system reset process done. But we don't necessarily need to be bound by that idea.) -- PMM