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

Re: [Xen-devel] [PATCH v2] xstate: make use_xsave non-init


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Fri, 6 Sep 2019 15:37:02 +0200
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@xxxxxxxxxx; spf=Pass smtp.mailfrom=roger.pau@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Wei Liu <wl@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Delivery-date: Fri, 06 Sep 2019 13:37:16 +0000
  • Ironport-sdr: RNWVhuMgscsutWcqvp91Go7LVusObrxD4UO5TQf1c2uJmTue7gKw7YY2BPfx8j5pV+mIlHKT6M hngcbkDlMqNn18vVurak4GuKkfF44aOsI/ddq4gBQUJLdXWtcKD/JNsQXd3TgP+jjpMcUpQrgN 1c3Z5FINkmKHoKEtpfvSQSE23oEB/uZoMCC081JvGz7NoqpPO8aSHnHE7FnXYa7AVcYntnr8pr 39XKRezNimLHcq5Gi5VbeBmLvPAVcJyYRxW2RSkqUZk1HimIy+kjQSg04CCO+sNd60hic+mCPI brM=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Fri, Sep 06, 2019 at 03:33:50PM +0200, Jan Beulich wrote:
> On 05.09.2019 18:04, Roger Pau Monne wrote:
> > --- a/xen/arch/x86/xstate.c
> > +++ b/xen/arch/x86/xstate.c
> > @@ -577,7 +577,11 @@ unsigned int xstate_ctxt_size(u64 xcr0)
> >  /* Collect the information of processor's extended state */
> >  void xstate_init(struct cpuinfo_x86 *c)
> >  {
> > -    static bool __initdata use_xsave = true;
> > +    /*
> > +     * NB: use_xsave cannot live in initdata because llvm might optimize
> > +     * reading it, see: https://bugs.llvm.org/show_bug.cgi?id=39707
> > +     */
> > +    static bool use_xsave = true;
> >      boolean_param("xsave", use_xsave);
> >  
> >      bool bsp = c == &boot_cpu_data;
> 
> I think we'd want to use __read_mostly then instead. Can be added
> while committing of course, if you agree. With the addition
> Acked-by: Jan Beulich <jbeulich@xxxxxxxx>

Yes, that seems OK to me. Feel free to expand the commit message to
mention the change to read_mostly if you want.

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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