]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: use direct accessors for RIP and RSP
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Apr 2019 20:07:26 +0000 (22:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Apr 2019 20:07:26 +0000 (22:07 +0200)
commit47dc86cb9b57a4c58864776de0a5b0a9a1525cc2
tree8e2adfa13c9ce4e8e7ac7e4848aa64dd50798ebe
parent951bd13b475269e1b53c902554eb6b9c7cd6881e
KVM: x86: use direct accessors for RIP and RSP

Use specific inline functions for RIP and RSP instead of
going through kvm_register_read and kvm_register_write,
which are quite a mouthful.  kvm_rsp_read and kvm_rsp_write
did not exist, so add them.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/kvm_cache_regs.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/x86.c