Re: [Xen-devel] [PATCH v4] x86: use VMLOAD for PV context switch

2018-10-04 Thread Jan Beulich
>>> On 04.10.18 at 13:58, wrote: > On 26/09/18 08:42, Jan Beulich wrote: >> @@ -1630,6 +1646,66 @@ static void svm_init_erratum_383(const s >> } >> } >> >> +#ifdef CONFIG_PV >> +bool svm_load_segs(unsigned int ldt_ents, unsigned long ldt_base, >> + unsigned int fs_sel, un

Re: [Xen-devel] [PATCH v4] x86: use VMLOAD for PV context switch

2018-10-04 Thread Andrew Cooper
On 26/09/18 08:42, Jan Beulich wrote: > @@ -1630,6 +1646,66 @@ static void svm_init_erratum_383(const s > } > } > > +#ifdef CONFIG_PV > +bool svm_load_segs(unsigned int ldt_ents, unsigned long ldt_base, > + unsigned int fs_sel, unsigned long fs_base, > +

Re: [Xen-devel] [PATCH v4] x86: use VMLOAD for PV context switch

2018-10-03 Thread Wei Liu
On Wed, Sep 26, 2018 at 01:42:09AM -0600, Jan Beulich wrote: > Having noticed that VMLOAD alone is about as fast as a single of the > involved WRMSRs, I thought it might be a reasonable idea to also use it > for PV. Measurements, however, have shown that an actual improvement can > be achieved only