[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Fri, 8 May 2026 11:09:11 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xUVEHxrKR+eW3aGyNqw0ViTP/jQIYisrE+p6Ds940tQ=; b=o+266p+Zvl8rOwQHxrK36IEQHOVISP5Wzfc9jY+or0FU91hW4ZmGnm8jlDSDwhl3aPpD0GyoETTEHyjPj8twrmfeTx3OnzOuwJd7hXf20gkQEvzRL65eyBKIAZ8hnQdsgEtHqCp6RjlnVtbv/7YmMau8UzyEGO/9LOjX+3Jintc89tXbkcB7FeE0G+5dNhSKgl+M3fbxEXBSOczWv5p33C2uFCNZKE8ypk336IFKMofvUOXkq8IXAuAtROhjqRoZZj863B36XBiyQJH942NZmZ1XWvbU0RDPJP2LK1olYeJCA0Bi9PCXyo+xedLvOG2eYHivpA2FPEFk1YvqF+K9fw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KvlP9B/5AoQWV9M1n63ihAJ7UZu7nd1AnVZWEj7cWpcED07Tw7NHFmixIJNIeD5jbHklee0pVTg6StF4kEGHumSGUMy6CB2qGFqe4vsKbmvOpPoQEsWt9DBYCae/6mXrHBPwVhJehol5uvIKskmMbd4AvItKSOajMzpUknLRwiXDhLzEc3H/mGIyK66FH4IAuoPSm3xwUA/FshJe0UEKDieps5hG8q6U+0EaIL2vi1SXjPbQDxYxiT4/GfU4642V79itcWn29xtk2XQGNQQvJbrpRlsC2ODWCYtVQ+lMYwjcQHPYtWb8Shp4fLvOg/LdqLk9VrwwK052IwE52MX/uw==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>
  • Delivery-date: Fri, 08 May 2026 09:09:32 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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é <roger.pau@xxxxxxxxxx>
---
 docs/misc/xen-command-line.pandoc | 2 +-
 xen/arch/x86/hvm/emulate.c        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/misc/xen-command-line.pandoc 
b/docs/misc/xen-command-line.pandoc
index 6c77129732bf..0cbac1093928 100644
--- a/docs/misc/xen-command-line.pandoc
+++ b/docs/misc/xen-command-line.pandoc
@@ -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
diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c
index f3aae158e9f8..bb1bb03ac4e9 100644
--- a/xen/arch/x86/hvm/emulate.c
+++ b/xen/arch/x86/hvm/emulate.c
@@ -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);
-- 
2.53.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.