Re: [Xen-devel] [PATCH 39/60] x86: optimize loading of GDT at context switch

2019-07-05 Thread Juergen Gross
On 03.07.19 14:21, Andrew Cooper wrote: On 03/07/2019 07:30, Juergen Gross wrote: On 02.07.19 18:09, Andrew Cooper wrote: On 28/05/2019 11:32, Juergen Gross wrote: Instead of dynamically decide whether the previous vcpu was using full "deciding" or default GDT just add a percpu variable

Re: [Xen-devel] [PATCH 39/60] x86: optimize loading of GDT at context switch

2019-07-03 Thread Andrew Cooper
On 03/07/2019 07:30, Juergen Gross wrote: > On 02.07.19 18:09, Andrew Cooper wrote: >> On 28/05/2019 11:32, Juergen Gross wrote: >>> Instead of dynamically decide whether the previous vcpu was using full >> >> "deciding" >> >>> or default GDT just add a percpu variable for that purpose. This at >>

Re: [Xen-devel] [PATCH 39/60] x86: optimize loading of GDT at context switch

2019-07-03 Thread Juergen Gross
On 02.07.19 18:09, Andrew Cooper wrote: On 28/05/2019 11:32, Juergen Gross wrote: Instead of dynamically decide whether the previous vcpu was using full "deciding" or default GDT just add a percpu variable for that purpose. This at "was using a full or default GDT, just add" once

Re: [Xen-devel] [PATCH 39/60] x86: optimize loading of GDT at context switch

2019-07-02 Thread Andrew Cooper
On 28/05/2019 11:32, Juergen Gross wrote: > Instead of dynamically decide whether the previous vcpu was using full "deciding" > or default GDT just add a percpu variable for that purpose. This at "was using a full or default GDT, just add" > once removes the need for testing vcpu_ids to differ

[Xen-devel] [PATCH 39/60] x86: optimize loading of GDT at context switch

2019-05-28 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 Reviewed-by: