Skip to contentSkip to conversation

x86/dom0: enable pf-fixup by default for PVH dom0

PATCH Superseded Roger Pau Monne 2 participants 2 messages May 8

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 6c77129732bf..0cbac1093928 100644
@@ -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
index f3aae158e9f8..bb1bb03ac4e9 100644
@@ -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
#1 lore raw

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