aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2008-12-19 18:13:54 +0100
committerAvi Kivity <avi@redhat.com>2009-03-24 11:02:52 +0200
commit971cc3dcbc0e020b82f568e61a47b72be03307dd (patch)
treef21c0865fd26ea820a88fe7bb7fea59840ada7e1 /include/linux/kvm.h
parent2b3d2a206037b1471de6a6dc51427af034cfdb47 (diff)
downloadkernel_samsung_aries-971cc3dcbc0e020b82f568e61a47b72be03307dd.zip
kernel_samsung_aries-971cc3dcbc0e020b82f568e61a47b72be03307dd.tar.gz
kernel_samsung_aries-971cc3dcbc0e020b82f568e61a47b72be03307dd.tar.bz2
KVM: Advertise guest debug capability per-arch
Limit KVM_CAP_SET_GUEST_DEBUG only to those archs (currently x86) that support it. This simplifies user space stub implementations. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r--include/linux/kvm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 28582fc..11e3e61 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -393,7 +393,9 @@ struct kvm_trace_rec {
#ifdef __KVM_HAVE_USER_NMI
#define KVM_CAP_USER_NMI 22
#endif
+#if defined(CONFIG_X86)
#define KVM_CAP_SET_GUEST_DEBUG 23
+#endif
/*
* ioctls for VM fds