diff options
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r-- | include/linux/kvm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 42d15150d7a3..30a83696906c 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -208,6 +208,12 @@ struct kvm_fpu { | |||
208 | __u32 pad2; | 208 | __u32 pad2; |
209 | }; | 209 | }; |
210 | 210 | ||
211 | /* for KVM_GET_LAPIC and KVM_SET_LAPIC */ | ||
212 | #define KVM_APIC_REG_SIZE 0x400 | ||
213 | struct kvm_lapic_state { | ||
214 | char regs[KVM_APIC_REG_SIZE]; | ||
215 | }; | ||
216 | |||
211 | struct kvm_segment { | 217 | struct kvm_segment { |
212 | __u64 base; | 218 | __u64 base; |
213 | __u32 limit; | 219 | __u32 limit; |
@@ -380,5 +386,7 @@ struct kvm_signal_mask { | |||
380 | #define KVM_SET_SIGNAL_MASK _IOW(KVMIO, 0x8b, struct kvm_signal_mask) | 386 | #define KVM_SET_SIGNAL_MASK _IOW(KVMIO, 0x8b, struct kvm_signal_mask) |
381 | #define KVM_GET_FPU _IOR(KVMIO, 0x8c, struct kvm_fpu) | 387 | #define KVM_GET_FPU _IOR(KVMIO, 0x8c, struct kvm_fpu) |
382 | #define KVM_SET_FPU _IOW(KVMIO, 0x8d, struct kvm_fpu) | 388 | #define KVM_SET_FPU _IOW(KVMIO, 0x8d, struct kvm_fpu) |
389 | #define KVM_GET_LAPIC _IOR(KVMIO, 0x8e, struct kvm_lapic_state) | ||
390 | #define KVM_SET_LAPIC _IOW(KVMIO, 0x8f, struct kvm_lapic_state) | ||
383 | 391 | ||
384 | #endif | 392 | #endif |