Re: [Xen-devel] [PATCH RFC V2 37/45] x86: optimize loading of GDT at context switch

2019-05-16 Thread Juergen Gross
On 16/05/2019 14:42, Jan Beulich wrote: On 06.05.19 at 08:56, wrote: >> Instead of dynamically decide whether the previous vcpu was using full >> or default GDT just add a percpu variable for that purpose. This at >> once removes the need for testing vcpu_ids to differ twice. >> >> Cache the

Re: [Xen-devel] [PATCH RFC V2 37/45] x86: optimize loading of GDT at context switch

2019-05-16 Thread Jan Beulich
>>> On 06.05.19 at 08:56, wrote: > Instead of dynamically decide whether the previous vcpu was using full > or default GDT just add a percpu variable for that purpose. This at > once removes the need for testing vcpu_ids to differ twice. > > Cache the need_full_gdt(nd) value in a local variable.

[Xen-devel] [PATCH RFC V2 37/45] x86: optimize loading of GDT at context switch

2019-05-06 Thread Juergen Gross
Instead of dynamically decide whether the previous vcpu was using full or default GDT just add a percpu variable for that purpose. This at once removes the need for testing vcpu_ids to differ twice. Cache the need_full_gdt(nd) value in a local variable. Signed-off-by: Juergen Gross --- RFC V2: