mbox series

[v2,0/2] x86/pvh: workaround missing MMIO regions in dom0 p2m

Message ID 20250218143504.77638-1-roger.pau@citrix.com (mailing list archive)
Headers show
Series x86/pvh: workaround missing MMIO regions in dom0 p2m | expand

Message

Roger Pau Monné Feb. 18, 2025, 2:35 p.m. UTC
Hello,

The aim of this series is to provide a workaround for better handling
missing MMIO regions in a PVH dom0 p2m.  Xen doesn't know the complete
host memory layout, as it's not able to parse any information from
dynamic ACPI tables.  Hence the p2m built for a PVH dom0 might be
missing some MMIO regions only described in ACPI.

Since a PVH dom0 has no way to request the mapping of such regions (and
adding one would also require dom0 kernel modifications) instead provide
an option for Xen to add those MMIO regions as part of handling p2m
page-faults.  The option is currently off by default.

Thanks, Roger.

Roger Pau Monne (2):
  x86/emul: dump unhandled memory accesses for PVH dom0
  x86/dom0: attempt to fixup p2m page-faults for PVH dom0

 CHANGELOG.md                           | 10 ++++
 docs/misc/xen-command-line.pandoc      | 16 +++++-
 xen/arch/x86/dom0_build.c              |  5 ++
 xen/arch/x86/hvm/emulate.c             | 73 ++++++++++++++++++++++++++
 xen/arch/x86/include/asm/hvm/emulate.h |  3 ++
 5 files changed, 106 insertions(+), 1 deletion(-)