]> xenbits.xensource.com Git - xen.git/commit
x86/emul: dump unhandled memory accesses for PVH dom0
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 13 Feb 2025 08:08:01 +0000 (09:08 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Wed, 5 Mar 2025 09:26:46 +0000 (10:26 +0100)
commit43d8a80a0cccfe3715bb3178b5c15fb983979651
treed41a61825b07b9dbe02f08f2c8b7e241722b7bd2
parent83e043ee72b8c2fe1d620d137c20a2ffb040da01
x86/emul: dump unhandled memory accesses for PVH dom0

A PV dom0 can map any host memory as long as it's allowed by the IO
capability range in d->iomem_caps.  On the other hand, a PVH dom0 has no
way to populate MMIO region onto it's p2m, so it's limited to what Xen
initially populates on the p2m based on the host memory map and the enabled
device BARs.

Introduce a new debug build only printk that reports attempts by dom0 to
access addresses not populated on the p2m, and not handled by any emulator.
This is for information purposes only, but might allow getting an idea of
what MMIO ranges might be missing on the p2m.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/emulate.c