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

Re: [PATCH v2 2/8] x86/svm: silently drop writes to SYSCFG and related MSRs


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Mon, 31 Aug 2020 16:37:47 +0200
  • Authentication-results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Mon, 31 Aug 2020 14:38:05 +0000
  • Ironport-sdr: 2I/ReKrc/rKCV/Y7QDRyAIaxgXrCWH6w/edWUlXCv+sKanOX4FPFdz7sVSySOQdqnUowSQMuZ3 ZzIjgLxhs1ifQbqlCRP4ureBLbrIqzhYYLBe1nQhfMXw7QPd+HJUnQuitJ4qvGh/g/k1c6/lgs t+UjeEEmOeHwlOcvC4k/pMgg0c5CQ55u375Zs0dqIJEZAZxgqHPcn8UdNiH6i3X4BUkOTDN1bq kgrxVZDzFcIuLPfZDjzCVgGW2pRzJRPqej0RdNLeda+ExOr78YktnYBDy6LnCpggO022SLyR/e vV4=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu, Aug 27, 2020 at 05:03:50PM +0200, Jan Beulich wrote:
> On 20.08.2020 17:08, Roger Pau Monne wrote:
> > --- a/xen/arch/x86/hvm/svm/svm.c
> > +++ b/xen/arch/x86/hvm/svm/svm.c
> > @@ -1917,6 +1917,21 @@ static int svm_msr_read_intercept(unsigned int msr, 
> > uint64_t *msr_content)
> >              goto gpf;
> >          break;
> >  
> > +    case MSR_K8_TOP_MEM1:
> > +    case MSR_K8_TOP_MEM2:
> > +        *msr_content = 0;
> > +        break;
> 
> Any reason you don't fold this with ...
> 
> > +    case MSR_K8_SYSCFG:
> > +        /*
> > +         * Return MtrrFixDramEn: albeit the current emulated MTRR
> > +         * implementation doesn't support the Extended Type-Field Format 
> > having
> > +         * such bit set is common on AMD hardware and is harmless as long 
> > as
> > +         * MtrrFixDramModEn isn't set.
> > +         */
> > +        *msr_content = K8_MTRRFIXRANGE_DRAM_ENABLE;
> > +        break;
> > +
> >      case MSR_K8_VM_CR:
> >          *msr_content = 0;
> >          break;
> 
> ... this existing case, and ...

I was trying to sort them by value, but I can certainly merge this and
the case below.

Thanks, Roger.



 


Rackspace

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