diff options
author | Robert Mustacchi <rm@joyent.com> | 2011-06-14 10:46:47 -0700 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2011-06-14 10:46:47 -0700 |
commit | c7f8cae268f9864a7b21d9edf6f32bdd10b1075d (patch) | |
tree | 7023526eed743d9ea61e2805801f54202d8badb4 /kvm_x86.h | |
parent | c964cb0a6c4c02d2341d3a172197615879086eea (diff) | |
download | illumos-kvm-c7f8cae268f9864a7b21d9edf6f32bdd10b1075d.tar.gz |
HVM-367 Clean up KVM_SET_CPUID2
Diffstat (limited to 'kvm_x86.h')
-rw-r--r-- | kvm_x86.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 */ |