From: "Jan Beulich" Subject: Re: [PATCH v2] x86: synchronize PCI config space access decoding Date: Wed, 17 Jun 2015 10:58:22 +0100 Message-ID: <558160DE0200007800085F93@mail.emea.novell.com> References: <557EFDC30200007800084F27@mail.emea.novell.com> <557EEFFF.7080807@citrix.com> <557FF5BE020000780008547C@mail.emea.novell.com> <55806A59.3080201@citrix.com> <55812FCD0200007800085D4C@mail.emea.novell.com> <55813F90.5020904@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z5A70-0007Sf-3v for xen-devel@lists.xenproject.org; Wed, 17 Jun 2015 09:58:26 +0000 In-Reply-To: <55813F90.5020904@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: xen-devel , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 17.06.15 at 11:36, wrote: > On 17/06/15 07:29, Jan Beulich wrote: >>>>> On 16.06.15 at 20:26, wrote: >>> It turns out that MSR_AMD64_NB_CFG is unconditionally RAZ and has all >>> writes discarded, so no HVM guest will ever be in a position to >>> legitimately use AMD extended configuration access. >> Where have you found that? The register (named NB_CFG1 in >> newer families' BKGDs) is clearly r/w. > > It is implemented as RAZ/write discard in the hvm msr intercept code, > and appears to exist only to prevent the guest blowing up in a > cross-vendor case. Ah, that's something _we_ do. But the MSR write being discarded doesn't mean a guest can't legitimately use extended accesses: I don't think you expect OSes to read back what they wrote? I.e. an OS enabling this functionality would read zero, write back the value modified to have the bit set, and go on assuming extended accesses are okay now. Jan