diff options
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index a42a6f314a85..d71712ddebee 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -408,8 +408,19 @@ struct kvm { | |||
408 | struct file *filp; | 408 | struct file *filp; |
409 | struct kvm_io_bus mmio_bus; | 409 | struct kvm_io_bus mmio_bus; |
410 | struct kvm_io_bus pio_bus; | 410 | struct kvm_io_bus pio_bus; |
411 | struct kvm_pic *vpic; | ||
411 | }; | 412 | }; |
412 | 413 | ||
414 | static inline struct kvm_pic *pic_irqchip(struct kvm *kvm) | ||
415 | { | ||
416 | return kvm->vpic; | ||
417 | } | ||
418 | |||
419 | static inline int irqchip_in_kernel(struct kvm *kvm) | ||
420 | { | ||
421 | return pic_irqchip(kvm) != 0; | ||
422 | } | ||
423 | |||
413 | struct descriptor_table { | 424 | struct descriptor_table { |
414 | u16 limit; | 425 | u16 limit; |
415 | unsigned long base; | 426 | unsigned long base; |