diff options
author | Avi Kivity <avi@qumranet.com> | 2007-03-05 12:46:05 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 03:52:24 -0400 |
commit | 1961d276c877b99f5f16aaf36377c75e0e191c3a (patch) | |
tree | 4ea92fc2821bd0f9013ee567ee2f11c6cc532d79 /drivers/kvm/kvm.h | |
parent | 6722c51c51518af9581ab6cd9b6aec93774334a6 (diff) |
KVM: Add guest mode signal mask
Allow a special signal mask to be used while executing in guest mode. This
allows signals to be used to interrupt a vcpu without requiring signal
delivery to a userspace handler, which is quite expensive. Userspace still
receives -EINTR and can get the signal via sigwait().
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index be3a0e7ecae4..1c4a581938bf 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -277,6 +277,9 @@ struct kvm_vcpu { | |||
277 | gpa_t mmio_phys_addr; | 277 | gpa_t mmio_phys_addr; |
278 | int pio_pending; | 278 | int pio_pending; |
279 | 279 | ||
280 | int sigset_active; | ||
281 | sigset_t sigset; | ||
282 | |||
280 | struct { | 283 | struct { |
281 | int active; | 284 | int active; |
282 | u8 save_iopl; | 285 | u8 save_iopl; |