]> xenbits.xensource.com Git - xen.git/commit
xen/x86: add a function for modifying cr3
authorJuergen Gross <jgross@suse.com>
Thu, 26 Apr 2018 11:33:11 +0000 (13:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 May 2018 09:27:57 +0000 (11:27 +0200)
commit3df7d47b97f22dc8bf78ac962364b86aad93fb7d
tree06edf6a041238259e31a3f5858a4c4fc3089988f
parent5ccba18601071679b902f8b518b284e77331ec3a
xen/x86: add a function for modifying cr3

Instead of having multiple places with more or less identical asm
statements just have one function doing a write to cr3.

As this function should be named write_cr3() rename the current
write_cr3() function to switch_cr3().

Suggested-by: Andrew Copper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/flushtlb.c
xen/arch/x86/mm.c
xen/arch/x86/x86_64/traps.c
xen/common/efi/runtime.c
xen/include/asm-x86/flushtlb.h
xen/include/asm-x86/processor.h