Re: [PATCH 1/3] x86/paravirt: Make read_cr2() CALLEE_SAVE

From: Juergen Gross
Date: Wed Jul 03 2019 - 10:13:02 EST


On 03.07.19 12:27, root wrote:
The one paravirt read_cr2() implementation (Xen) is actually quite
trivial and doesn't need to clobber anything other than the return
register. By making read_cr2() CALLEE_SAVE we avoid all the PUSH/POP
nonsense and allow more convenient use from assembly.

Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>

Reviewed-by: Juergen Gross <jgross@xxxxxxxx>


Juergen