summaryrefslogtreecommitdiff
path: root/kvm_x86.h
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-06-14 10:46:47 -0700
committerRobert Mustacchi <rm@joyent.com>2011-06-14 10:46:47 -0700
commitc7f8cae268f9864a7b21d9edf6f32bdd10b1075d (patch)
tree7023526eed743d9ea61e2805801f54202d8badb4 /kvm_x86.h
parentc964cb0a6c4c02d2341d3a172197615879086eea (diff)
downloadillumos-kvm-c7f8cae268f9864a7b21d9edf6f32bdd10b1075d.tar.gz
HVM-367 Clean up KVM_SET_CPUID2
Diffstat (limited to 'kvm_x86.h')
-rw-r--r--kvm_x86.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/kvm_x86.h b/kvm_x86.h
index a245b6f..176bb09 100644
--- a/kvm_x86.h
+++ b/kvm_x86.h
@@ -1,6 +1,12 @@
#ifndef __KVM_X86_H
#define __KVM_X86_H
+/* See <sys/kvm.h> for an explanation of why this is necessary */
+#ifndef __GNUC__
+#error "The KVM Header files require GNU C extensions for compatibility."
+#endif
+
+
#include <sys/types.h>
#define KVM_NR_INTERRUPTS 256
@@ -170,7 +176,7 @@ typedef struct kvm_cpuid_entry2 {
typedef struct kvm_cpuid2 {
uint32_t nent;
uint32_t padding;
- struct kvm_cpuid_entry2 entries[100];
+ struct kvm_cpuid_entry2 entries[0];
} kvm_cpuid2_t;
/* for KVM_GET_PIT and KVM_SET_PIT */