[PATCH 0/3] Plumb PSCI SYSTEM_RESET2 call for guests

Will Deacon will at kernel.org
Thu Feb 17 10:39:58 PST 2022


Hi folks,

This small series exposes the PSCI SYSTEM_RESET2 call to guests, which
allows the propagation of a "reset_type" and a "cookie" back to the VMM.
Although Linux guests only ever pass 0 for the type ("SYSTEM_WARM_RESET"),
the vendor-defined range can be used by a bootloader to provide additional
information about the reset, such as an error code.

Cheers,

Will

--->8

Will Deacon (3):
  KVM: arm64: Bump guest PSCI version to 1.1
  KVM: arm64: Expose PSCI SYSTEM_RESET2 call to the guest
  KVM: arm64: Indicate SYSTEM_RESET2 in kvm_run::system_event flags
    field

 Documentation/virt/kvm/api.rst    |  5 +++
 arch/arm64/include/uapi/asm/kvm.h |  7 ++++
 arch/arm64/kvm/psci.c             | 58 +++++++++++++++++++++++++------
 include/kvm/arm_psci.h            |  3 +-
 include/uapi/linux/psci.h         |  4 +++
 5 files changed, 66 insertions(+), 11 deletions(-)

-- 
2.35.1.265.g69c8d7142f-goog




More information about the linux-arm-kernel mailing list