diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2007-01-26 00:56:42 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-01-26 13:50:57 -0800 |
commit | 46fe4ddd9dbb15305ab9b458e6cfa4dd47ac3e47 (patch) | |
tree | d7a7d0443d519f7de0b6c5157cf610726b4ab0bf /include | |
parent | 73b1087e6176a34c01eea3db269848f72fad72c1 (diff) | |
download | op-kernel-dev-46fe4ddd9dbb15305ab9b458e6cfa4dd47ac3e47.zip op-kernel-dev-46fe4ddd9dbb15305ab9b458e6cfa4dd47ac3e47.tar.gz |
[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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index bc8b461..1be148f 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 */ |