Skip to contentSkip to conversation

x86-64: refine access permission check for wrmsr to MSR_FAM10H_MMIO_CONF_BASE

PATCH New Jan Beulich 1 participant 1 message Jan 10, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86-64: refine access permission check for wrmsr to MSR_FAM10H_MMIO_CONF_BASE

We really don't want the mmconf window to move/disappear whenever we use is ourselves, not only when we enabled it.

xen/arch/x86/traps.c +1 -2
@@ -2297,8 +2297,7 @@ static int emulate_privileged_op(struct 
                 goto fail;
             if (
 #ifdef CONFIG_X86_64
-                 (pci_probe & PCI_PROBE_MMCONF) &&
-                 (pci_probe & PCI_CHECK_ENABLE_AMD_MMCONF) ?
+                 (pci_probe & PCI_PROBE_MASK) == PCI_PROBE_MMCONF ?
                  val != msr_content :
 #endif
                  ((val ^ msr_content) &

We really don't want the mmconf window to move/disappear whenever we use is ourselves, not only when we enabled it.

xen/arch/x86/traps.c +1 -2
@@ -2297,8 +2297,7 @@ static int emulate_privileged_op(struct 
                 goto fail;
             if (
 #ifdef CONFIG_X86_64
-                 (pci_probe & PCI_PROBE_MMCONF) &&
-                 (pci_probe & PCI_CHECK_ENABLE_AMD_MMCONF) ?
+                 (pci_probe & PCI_PROBE_MASK) == PCI_PROBE_MMCONF ?
                  val != msr_content :
 #endif
                  ((val ^ msr_content) &

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel