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)
commite9c16c78503dd0482b876761d60a3d2f50ac4d86
tree8e2adfa13c9ce4e8e7ac7e4848aa64dd50798ebe
parent2b3eaf815ca930b1dbc11fb1ebd773e510947c0f
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