diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-02-21 10:32:27 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-03-11 10:46:03 +0100 |
commit | 81908bf44340eb5ebc9969f67e6c8be0c92f2857 (patch) | |
tree | 67fb9e8f536d8319c54f9e6af1d6cbaf844e6673 /lib/fault-inject.c | |
parent | c77fb5fe6f031bee9403397ae7b94ea22ea19aa7 (diff) |
KVM: vmx: Allow the guest to run with dirty debug registers
When not running in guest-debug mode (i.e. the guest controls the debug
registers, having to take an exit for each DR access is a waste of time.
If the guest gets into a state where each context switch causes DR to be
saved and restored, this can take away as much as 40% of the execution
time from the guest.
If the guest is running with vcpu->arch.db == vcpu->arch.eff_db, we
can let it write freely to the debug registers and reload them on the
next exit. We still need to exit on the first access, so that the
KVM_DEBUGREG_WONT_EXIT flag is set in switch_db_regs; after that, further
accesses to the debug registers will not cause a vmexit.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions