From: "Jan Beulich" Subject: [PATCH] x86-64: refine access permission check for wrmsr to MSR_FAM10H_MMIO_CONF_BASE Date: Mon, 10 Jan 2011 09:18:13 +0000 Message-ID: <4D2ADCE5020000780002B4E3@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part04286EC5.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part04286EC5.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -2297,8 +2297,7 @@ static int emulate_privileged_op(struct=20 goto fail; if ( #ifdef CONFIG_X86_64 - (pci_probe & PCI_PROBE_MMCONF) && - (pci_probe & PCI_CHECK_ENABLE_AMD_MMCONF) ? + (pci_probe & PCI_PROBE_MASK) =3D=3D PCI_PROBE_MMCONF ? val !=3D msr_content : #endif ((val ^ msr_content) & --=__Part04286EC5.0__= Content-Type: text/plain; name="x86_64-fam10-mmconf-wrmsr-2.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86_64-fam10-mmconf-wrmsr-2.patch" We really don't want the mmconf window to move/disappear whenever we=0Ause = is ourselves, not only when we enabled it.=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- a/xen/arch/x86/traps.c=0A+++ b/xen/arch/x86/= traps.c=0A@@ -2297,8 +2297,7 @@ static int emulate_privileged_op(struct = =0A goto fail;=0A if (=0A #ifdef CONFIG_X86_64= =0A- (pci_probe & PCI_PROBE_MMCONF) &&=0A- = (pci_probe & PCI_CHECK_ENABLE_AMD_MMCONF) ?=0A+ (pci_probe = & PCI_PROBE_MASK) =3D=3D PCI_PROBE_MMCONF ?=0A val !=3D = msr_content :=0A #endif=0A ((val ^ msr_content) &=0A --=__Part04286EC5.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part04286EC5.0__=--