Re: [Xen-devel] [PATCH v3 6/7] xen/x86: use flag byte for decision whether xen_cr3 is valid

2018-03-23 Thread Jan Beulich
>>> On 21.03.18 at 13:51, wrote: > Today cpu_info->xen_cr3 is either 0 to indicate %cr3 doesn't need to > be switched on entry to Xen, or negative for keeping the value while > indicating not to restore %cr3, or positive in case %cr3 is to be > restored. > > Switch to use a flag

[Xen-devel] [PATCH v3 6/7] xen/x86: use flag byte for decision whether xen_cr3 is valid

2018-03-21 Thread Juergen Gross
Today cpu_info->xen_cr3 is either 0 to indicate %cr3 doesn't need to be switched on entry to Xen, or negative for keeping the value while indicating not to restore %cr3, or positive in case %cr3 is to be restored. Switch to use a flag byte instead of a negative xen_cr3 value in order to allow