edk2 icon indicating copy to clipboard operation
edk2 copied to clipboard

Xen PVH Shutdown

Open jandryuk opened this issue 9 months ago • 8 comments

Description

This is a revision of @tperard's original series from https://listman.redhat.com/archives/edk2-devel-archive/2022-November/055600.html

This series introduces a XenHypercallLib that can be used at runtime by a EFI service. And then it introduces a modified ResetSystemLib for Xen so we can use the hypercall interface to shutdown a machine when the ACPI interface isn't available.

PVH doesn't have a device model, so the ACPI interface to shutdown doesn't work. PVH needs to issue shutdown hypercalls.

This version removes the use of the hypercall page in favor of using vmmcall/vmcall directly. That avoids needing memory allocation for runtime.

  • [ ] Breaking change?
  • [ ] Impacts security?
  • [ ] Includes tests?

How This Was Tested

Run locally with Xen PVH guests. Booting and shutdown confirmed.

Integration Instructions

N/A

jandryuk avatar May 29 '24 21:05 jandryuk