[PATCH 06/16] KVM: Add KVM_EXIT_SYSTEM_EVENT to user space API header

Peter Maydell peter.maydell at linaro.org
Mon Sep 1 03:11:10 PDT 2014


On 1 September 2014 10:56, Christoffer Dall <christoffer.dall at linaro.org> 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



More information about the linux-arm-kernel mailing list