0001
0002
0003
0004
0005
0006
0007 #include <hyp/sysreg-sr.h>
0008
0009 #include <linux/compiler.h>
0010 #include <linux/kvm_host.h>
0011
0012 #include <asm/kprobes.h>
0013 #include <asm/kvm_asm.h>
0014 #include <asm/kvm_emulate.h>
0015 #include <asm/kvm_hyp.h>
0016
0017
0018
0019
0020
0021 void __sysreg_save_state_nvhe(struct kvm_cpu_context *ctxt)
0022 {
0023 __sysreg_save_el1_state(ctxt);
0024 __sysreg_save_common_state(ctxt);
0025 __sysreg_save_user_state(ctxt);
0026 __sysreg_save_el2_return_state(ctxt);
0027 }
0028
0029 void __sysreg_restore_state_nvhe(struct kvm_cpu_context *ctxt)
0030 {
0031 __sysreg_restore_el1_state(ctxt);
0032 __sysreg_restore_common_state(ctxt);
0033 __sysreg_restore_user_state(ctxt);
0034 __sysreg_restore_el2_return_state(ctxt);
0035 }