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

[Xen-changelog] [xen-unstable] x86-64: refine access permission check for wrmsr to MSR_FAM10H_MMIO_CONF_BASE



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1294741846 0
# Node ID a2dcebb88bc4571d64b3f30c1fbb33cfe4f6e2c5
# Parent  1ae74f060a39ae1305b3a434d0faa1a19853fdab
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.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 xen/arch/x86/traps.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -r 1ae74f060a39 -r a2dcebb88bc4 xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      Mon Jan 10 10:37:53 2011 +0000
+++ b/xen/arch/x86/traps.c      Tue Jan 11 10:30:46 2011 +0000
@@ -2296,8 +2296,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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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