edk2
edk2 copied to clipboard
Xen PVH Shutdown
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