Wanpeng Li 74c55931c7 KVM: VMX: Cache IA32_DEBUGCTL in memory
MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored each
time during world switch.  This patch caches the host IA32_DEBUGCTL MSR
and saves/restores the host IA32_DEBUGCTL msr when guest/host switches
to avoid to save/restore each time during world switch.  This saves
about 100 clock cycles per vmexit.

Suggested-by: Jim Mattson <jmattson@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Jim Mattson <jmattson@google.com>
Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
2017-12-14 09:26:47 +01:00
..
2017-12-14 09:26:45 +01:00
2017-12-14 09:26:40 +01:00
2017-04-12 20:17:15 +02:00
2017-04-12 20:17:13 +02:00
2017-11-16 13:00:24 -08:00
2017-12-14 09:26:39 +01:00
2017-12-14 09:26:47 +01:00
2017-12-14 09:26:44 +01:00
2017-12-14 09:26:43 +01:00