debuggers.hg

changeset 22744:a2dcebb88bc4

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@novell.com>
author Keir Fraser <keir@xen.org>
date Tue Jan 11 10:30:46 2011 +0000 (2011-01-11)
parents 1ae74f060a39
children f84ae053b7da
files xen/arch/x86/traps.c
line diff
     1.1 --- a/xen/arch/x86/traps.c	Mon Jan 10 10:37:53 2011 +0000
     1.2 +++ b/xen/arch/x86/traps.c	Tue Jan 11 10:30:46 2011 +0000
     1.3 @@ -2296,8 +2296,7 @@ static int emulate_privileged_op(struct 
     1.4                  goto fail;
     1.5              if (
     1.6  #ifdef CONFIG_X86_64
     1.7 -                 (pci_probe & PCI_PROBE_MMCONF) &&
     1.8 -                 (pci_probe & PCI_CHECK_ENABLE_AMD_MMCONF) ?
     1.9 +                 (pci_probe & PCI_PROBE_MASK) == PCI_PROBE_MMCONF ?
    1.10                   val != msr_content :
    1.11  #endif
    1.12                   ((val ^ msr_content) &