diff options
author | Eddie Dong <eddie.dong@intel.com> | 2007-07-18 05:15:21 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:25 -0400 |
commit | b6958ce44a11a9e9425d2b67a653b1ca2a27796f (patch) | |
tree | 503478ef27254df9b6ea21d2a6a279a7dfe2ef04 /drivers/kvm/kvm.h | |
parent | 1fd4f2a5ed8f80cf6e23d2bdf78554f6a1ac7997 (diff) |
KVM: Emulate hlt in the kernel
By sleeping in the kernel when hlt is executed, we simplify the in-kernel
guest interrupt path considerably.
Signed-off-by: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 8d07a993af94..bb506b71797d 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -231,6 +231,7 @@ struct kvm_stat { | |||
231 | u32 signal_exits; | 231 | u32 signal_exits; |
232 | u32 irq_window_exits; | 232 | u32 irq_window_exits; |
233 | u32 halt_exits; | 233 | u32 halt_exits; |
234 | u32 halt_wakeup; | ||
234 | u32 request_irq_exits; | 235 | u32 request_irq_exits; |
235 | u32 irq_exits; | 236 | u32 irq_exits; |
236 | u32 light_exits; | 237 | u32 light_exits; |
@@ -353,6 +354,7 @@ struct kvm_vcpu { | |||
353 | gva_t mmio_fault_cr2; | 354 | gva_t mmio_fault_cr2; |
354 | struct kvm_pio_request pio; | 355 | struct kvm_pio_request pio; |
355 | void *pio_data; | 356 | void *pio_data; |
357 | wait_queue_head_t wq; | ||
356 | 358 | ||
357 | int sigset_active; | 359 | int sigset_active; |
358 | sigset_t sigset; | 360 | sigset_t sigset; |