On 16/05/2019 14:42, Jan Beulich wrote:
>>>> On 06.05.19 at 08:56, <jgr...@suse.com> 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.
>>
>> Signed-off-by: Juergen Gross <jgr...@suse.com>
> 
> To be honest I'm not entirely convinced this is a good move. But
> since you've done the work, and since the larger source size is
> hopefully outweighed by slightly smaller binary size (per-CPU
> data accesses aren't entirely cheap either), I'm not going to
> object.
> 
>> @@ -1658,6 +1664,7 @@ static void __context_switch(void)
>>      struct vcpu          *n = current;
>>      struct domain        *pd = p->domain, *nd = n->domain;
>>      seg_desc_t           *gdt;
>> +    bool                  need_full_gdt_n;
> 
> This variable is too long, or more precisely has too many underscores
> for my taste. Seeing that only a single invocation of need_full_gdt()
> remains, I don't think just "full_gdt" would be ambiguous in any way.

Fine with me.

> At which point
> Reviewed-by: Jan Beulich <jbeul...@suse.com>

Thanks,


Juergen


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

Reply via email to