x86/dom0: enable pf-fixup by default for PVH dom0
PATCH 1/1 x86/dom0: enable pf-fixup by default for PVH dom0
A non-trivial amount of issues related to PVH dom0 are fixed by enabling the pf-fixup command line option, and no issues have been reported as a result of its usage. Enable the option by default to make PVH dom0 more robust in its default configuration.
Signed-off-by Roger Pau Monné <[email protected]>
--- docs/misc/xen-command-line.pandoc | 2 +- xen/arch/x86/hvm/emulate.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
docs/misc/xen-command-line.pandoc +1 -1
@@ -849,7 +849,7 @@ Controls for how dom0 is constructed on x86 systems. If using this option is necessary to fix an issue, please report a bug. * The `pf-fixup` boolean is only applicable when using a PVH dom0 and - defaults to false. + defaults to true. When running dom0 in PVH mode the dom0 kernel has no way to map MMIO regions into its physical memory map, such mode relies on Xen dom0 builder
xen/arch/x86/hvm/emulate.c +1 -1
@@ -165,7 +165,7 @@ void hvmemul_cancel(struct vcpu *v)hvmemul_cache_disable (v); } -bool __ro_after_init opt_dom0_pf_fixup; +bool __ro_after_init opt_dom0_pf_fixup = true;static int hwdom_fixup_p2m (paddr_t addr) {unsigned long gfn =paddr_to_pfn (addr);
Signature · 1 line
2.53.0
docs/misc/xen-command-line.pandoc Controls for how dom0 is constructed on x86 systems. · line 855
Quoted 11 lines · Roger Pau Monne
docs/misc/xen-command-line.pandoc +1
-1@@ -849,7 +849,7 @@ Controls for how dom0 is constructed on x86 systems. If using this option is necessary to fix an issue, please report a bug. * The `pf-fixup` boolean is only applicable when using a PVH dom0 and - defaults to false. + defaults to true. When running dom0 in PVH mode the dom0 kernel has no way to map MMIO regions into its physical memory map, such mode relies on Xen dom0 builder
While this paragraph is okay to keep as is, imo the last paragraph concerning this option would want re-wording to reflect the changed default. Plus, as indicated on Matrix, add a hint that people needing to use this option (in its negative form) should report that fact (and relevant details).
Jan