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)
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>

No differences found