Re: [Xen-devel] [PATCH v3 4/6] x86/XPTI: use %r12 to write zero into xen_cr3

2018-03-15 Thread Andrew Cooper
On 15/03/18 16:39, Jan Beulich wrote: On 15.03.18 at 17:02, wrote: >> On 13/03/18 13:49, Jan Beulich wrote: >>> Now that we zero all registers early on all entry paths, use that to >>> avoid a couple of immediates here. >>> >>> Signed-off-by: Jan Beulich

Re: [Xen-devel] [PATCH v3 4/6] x86/XPTI: use %r12 to write zero into xen_cr3

2018-03-15 Thread Jan Beulich
>>> On 15.03.18 at 17:02, wrote: > On 13/03/18 13:49, Jan Beulich wrote: >> Now that we zero all registers early on all entry paths, use that to >> avoid a couple of immediates here. >> >> Signed-off-by: Jan Beulich >> --- >> We may want to consider

Re: [Xen-devel] [PATCH v3 4/6] x86/XPTI: use %r12 to write zero into xen_cr3

2018-03-15 Thread Andrew Cooper
On 13/03/18 13:49, Jan Beulich wrote: > Now that we zero all registers early on all entry paths, use that to > avoid a couple of immediates here. > > Signed-off-by: Jan Beulich > --- > We may want to consider eliminating a few more $0 this way. But > especially for byte ones

[Xen-devel] [PATCH v3 4/6] x86/XPTI: use %r12 to write zero into xen_cr3

2018-03-13 Thread Jan Beulich
Now that we zero all registers early on all entry paths, use that to avoid a couple of immediates here. Signed-off-by: Jan Beulich --- We may want to consider eliminating a few more $0 this way. But especially for byte ones I'm not sure it's worth it, due to the REX prefix the