summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-03-04 14:24:03 +0200
committerAvi Kivity <avi@qumranet.com>2007-05-03 10:52:24 +0300
commit1b19f3e61d7e1edb395dd64bf7d63621a37af8ca (patch)
tree52d90cc6e505f84ec741770950f4f07be45b7fba /include
parent8eb7d334bd8e693340ee198280f7d45035cdab8c (diff)
downloadop-kernel-dev-1b19f3e61d7e1edb395dd64bf7d63621a37af8ca.zip
op-kernel-dev-1b19f3e61d7e1edb395dd64bf7d63621a37af8ca.tar.gz
KVM: Add a special exit reason when exiting due to an interrupt
This is redundant, as we also return -EINTR from the ioctl, but it allows us to examine the exit_reason field on resume without seeing old data. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 57f47ef..b3af92e 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -11,7 +11,7 @@
#include <asm/types.h>
#include <linux/ioctl.h>
-#define KVM_API_VERSION 8
+#define KVM_API_VERSION 9
/*
* Architectural interrupt line count, and the size of the bitmap needed
@@ -45,6 +45,7 @@ enum kvm_exit_reason {
KVM_EXIT_IRQ_WINDOW_OPEN = 7,
KVM_EXIT_SHUTDOWN = 8,
KVM_EXIT_FAIL_ENTRY = 9,
+ KVM_EXIT_INTR = 10,
};
/* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */
OpenPOWER on IntegriCloud