summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2007-01-26 09:56:42 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-01-26 22:50:57 +0100
commit46fe4ddd9dbb15305ab9b458e6cfa4dd47ac3e47 (patch)
treed7a7d0443d519f7de0b6c5157cf610726b4ab0bf /include
parent[PATCH] KVM: MMU: Report nx faults to the guest (diff)
downloadlinux-46fe4ddd9dbb15305ab9b458e6cfa4dd47ac3e47.tar.xz
linux-46fe4ddd9dbb15305ab9b458e6cfa4dd47ac3e47.zip
[PATCH] KVM: SVM: Propagate cpu shutdown events to userspace
This patch implements forwarding of SHUTDOWN intercepts from the guest on to userspace on AMD SVM. A SHUTDOWN event occurs when the guest produces a triple fault (e.g. on reboot). This also fixes the bug that a guest reboot actually causes a host reboot under some circumstances. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@qumranet.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index bc8b4616bad7..1be148f0fce4 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -46,6 +46,7 @@ enum kvm_exit_reason {
KVM_EXIT_HLT = 5,
KVM_EXIT_MMIO = 6,
KVM_EXIT_IRQ_WINDOW_OPEN = 7,
+ KVM_EXIT_SHUTDOWN = 8,
};
/* for KVM_RUN */