KVM: VMX: shadow VM_(ENTRY|EXIT)_CONTROLS vmcs field
authorGleb Natapov <gleb@redhat.com>
Mon, 25 Nov 2013 13:37:13 +0000 (15:37 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Dec 2013 09:49:49 +0000 (10:49 +0100)
commit2961e8764faad212234e93907a370a7c36a67da5
tree468ce4c80d9aacc4ac67c10d6f04c625fe8a6c78
parent8494bd0e86271fb21581d27e3c5d6a369b5208ca
KVM: VMX: shadow VM_(ENTRY|EXIT)_CONTROLS vmcs field

VM_(ENTRY|EXIT)_CONTROLS vmcs fields are read/written on each guest
entry but most times it can be avoided since values do not changes.
Keep fields copy in memory to avoid unnecessary reads from vmcs.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c