[edk2-devel] [PATCH 0/3] OvmfXen: Fix machine shutdown in PVH guest

Anthony PERARD via groups.io posted 3 patches 3 weeks, 6 days ago
Failed in applying to current master (apply log)
OvmfPkg/OvmfXen.dsc                           |  11 +-
...ystemLib.inf => BaseResetSystemLibXen.inf} |   9 +-
...SystemLib.inf => DxeResetSystemLibXen.inf} |  11 +-
.../XenHypercallRuntimeLib.inf                |  46 ++++
OvmfPkg/Include/IndustryStandard/Xen/sched.h  |  50 +++++
OvmfPkg/Include/Library/XenHypercallLib.h     |   7 +
...ResetShutdown.c => BaseResetShutdownXen.c} |  19 +-
...eResetShutdown.c => DxeResetShutdownXen.c} |  26 ++-
.../XenHypercallLib/X86RuntimeXenHypercall.c  | 210 ++++++++++++++++++
.../Library/XenHypercallLib/XenHypercall.c    |  14 ++
.../X64/RuntimeHypercallPage.nasm             |  24 ++
11 files changed, 401 insertions(+), 26 deletions(-)
copy OvmfPkg/Library/ResetSystemLib/{BaseResetSystemLib.inf => BaseResetSystemLibXen.inf} (73%)
copy OvmfPkg/Library/ResetSystemLib/{DxeResetSystemLib.inf => DxeResetSystemLibXen.inf} (73%)
create mode 100644 OvmfPkg/Library/XenHypercallLib/XenHypercallRuntimeLib.inf
create mode 100644 OvmfPkg/Include/IndustryStandard/Xen/sched.h
copy OvmfPkg/Library/ResetSystemLib/{BaseResetShutdown.c => BaseResetShutdownXen.c} (72%)
copy OvmfPkg/Library/ResetSystemLib/{DxeResetShutdown.c => DxeResetShutdownXen.c} (72%)
create mode 100644 OvmfPkg/Library/XenHypercallLib/X86RuntimeXenHypercall.c
create mode 100644 OvmfPkg/Library/XenHypercallLib/X64/RuntimeHypercallPage.nasm
[edk2-devel] [PATCH 0/3] OvmfXen: Fix machine shutdown in PVH guest
Posted by Anthony PERARD via groups.io 3 weeks, 6 days ago
From: Anthony PERARD <anthony.perard@citrix.com>

Patch series available in this git branch:
https://xenbits.xen.org/git-http/people/aperard/ovmf.git br.fix-pvh-shutdown-v2-v1

From: Anthony PERARD <anthony.perard@citrix.com>

Hi,

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

Thanks,

Anthony PERARD (3):
  OvmfPkg: Introduce runtime XenHypercallLib
  OvmfPkg/XenHypercallLib: Add SchedOp hypercall
  OvmfPkg/OvmfXen: Introduce Xen's ResetSystemLib, to use xen hypercall

 OvmfPkg/OvmfXen.dsc                           |  11 +-
 ...ystemLib.inf => BaseResetSystemLibXen.inf} |   9 +-
 ...SystemLib.inf => DxeResetSystemLibXen.inf} |  11 +-
 .../XenHypercallRuntimeLib.inf                |  46 ++++
 OvmfPkg/Include/IndustryStandard/Xen/sched.h  |  50 +++++
 OvmfPkg/Include/Library/XenHypercallLib.h     |   7 +
 ...ResetShutdown.c => BaseResetShutdownXen.c} |  19 +-
 ...eResetShutdown.c => DxeResetShutdownXen.c} |  26 ++-
 .../XenHypercallLib/X86RuntimeXenHypercall.c  | 210 ++++++++++++++++++
 .../Library/XenHypercallLib/XenHypercall.c    |  14 ++
 .../X64/RuntimeHypercallPage.nasm             |  24 ++
 11 files changed, 401 insertions(+), 26 deletions(-)
 copy OvmfPkg/Library/ResetSystemLib/{BaseResetSystemLib.inf => BaseResetSystemLibXen.inf} (73%)
 copy OvmfPkg/Library/ResetSystemLib/{DxeResetSystemLib.inf => DxeResetSystemLibXen.inf} (73%)
 create mode 100644 OvmfPkg/Library/XenHypercallLib/XenHypercallRuntimeLib.inf
 create mode 100644 OvmfPkg/Include/IndustryStandard/Xen/sched.h
 copy OvmfPkg/Library/ResetSystemLib/{BaseResetShutdown.c => BaseResetShutdownXen.c} (72%)
 copy OvmfPkg/Library/ResetSystemLib/{DxeResetShutdown.c => DxeResetShutdownXen.c} (72%)
 create mode 100644 OvmfPkg/Library/XenHypercallLib/X86RuntimeXenHypercall.c
 create mode 100644 OvmfPkg/Library/XenHypercallLib/X64/RuntimeHypercallPage.nasm

-- 
Anthony PERARD



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#96302): https://edk2.groups.io/g/devel/message/96302
Mute This Topic: https://groups.io/mt/94960813/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-