]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: accessors for guest registers
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 27 Jun 2008 17:58:02 +0000 (14:58 -0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:13:57 +0000 (10:13 +0200)
commitd0492a9b2ff555785cfc8736926f2cf283a61a45
treeec34ec9357575dc4190e5228a6eabfd5f81b66a5
parent6f106b8e8b268d78eeb6ce92d703f16d680a8cc0
KVM: x86: accessors for guest registers

As suggested by Avi, introduce accessors to read/write guest registers.
This simplifies the ->cache_regs/->decache_regs interface, and improves
register caching which is important for VMX, where the cost of
vmcs_read/vmcs_write is significant.

[avi: fix warnings]

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/kvm_cache_regs.h [new file with mode: 0644]
arch/x86/kvm/lapic.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86_emulate.c
include/asm-x86/kvm_host.h