]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86: synchronize PCI config space access decoding
authorJan Beulich <jbeulich@suse.com>
Thu, 18 Jun 2015 13:07:10 +0000 (15:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 18 Jun 2015 13:07:10 +0000 (15:07 +0200)
commit2d67a7a4d37a4759bcd7f2ee2d740497ad669c7d
tree7b1c0789d7835dd5f60d0cfdeed797394be46ead
parentd89d78912179fb6591f43abff879f43e37ba4654
x86: synchronize PCI config space access decoding

Both PV and HVM logic have similar but not similar enough code here.
Synchronize the two so that
- in the HVM case we don't unconditionally try to access extended
  config space
- in the PV case we pass a correct range to the XSM hook
- in the PV case we don't needlessly deny access when the operation
  isn't really on PCI config space
All this along with sharing the macros HVM already had here.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
12 files changed:
xen/arch/x86/cpu/amd.c
xen/arch/x86/cpu/centaur.c
xen/arch/x86/cpu/common.c
xen/arch/x86/cpu/cpu.h
xen/arch/x86/cpu/intel.c
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/traps.c
xen/include/asm-x86/domain.h
xen/include/asm-x86/pci.h
xen/include/asm-x86/processor.h