]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit5fdbf9765b7ba6a45100851154768de703d51e76
treeec34ec9357575dc4190e5228a6eabfd5f81b66a5
parentca60dfbb69afb549e33527cbf676e4daf8febfb5
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