Re: [PATCH 1/4] kvm, vmx: move CR2 context switch out of assembly path

2018-10-25 Thread Jim Mattson
On Wed, Oct 24, 2018 at 1:28 AM, Julian Stecklina wrote: > The VM entry/exit path is a giant inline assembly statement. Simplify it > by doing CR2 context switching in plain C. Move CR2 restore behind IBRS > clearing, so we reduce the amount of code we execute with IBRS on. > > Signed-off-by: Juli

[PATCH 1/4] kvm, vmx: move CR2 context switch out of assembly path

2018-10-24 Thread Julian Stecklina
The VM entry/exit path is a giant inline assembly statement. Simplify it by doing CR2 context switching in plain C. Move CR2 restore behind IBRS clearing, so we reduce the amount of code we execute with IBRS on. Signed-off-by: Julian Stecklina Reviewed-by: Jan H. Schönherr Reviewed-by: Konrad Ja