KVM: Use thread debug register storage instead of kvm specific data
authorAvi Kivity <avi@redhat.com>
Tue, 1 Sep 2009 09:34:07 +0000 (12:34 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 15:11:04 +0000 (18:11 +0300)
commit3d53c27d05950390712f92c5ad1604c60190ed64
tree37c93b2eaa334ccdeb0195f16d02cfc8cc0a22f7
parent6ba661787594868512a71c129062ebd57d0c01e7
KVM: Use thread debug register storage instead of kvm specific data

Instead of saving the debug registers from the processor to a kvm data
structure, rely in the debug registers stored in the thread structure.
This allows us not to save dr6 and dr7.

Reduces lightweight vmexit cost by 350 cycles, or 11 percent.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c