diff options
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index a5790cb21ffc..8d07a993af94 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -410,6 +410,7 @@ struct kvm { | |||
410 | struct kvm_io_bus mmio_bus; | 410 | struct kvm_io_bus mmio_bus; |
411 | struct kvm_io_bus pio_bus; | 411 | struct kvm_io_bus pio_bus; |
412 | struct kvm_pic *vpic; | 412 | struct kvm_pic *vpic; |
413 | struct kvm_ioapic *vioapic; | ||
413 | }; | 414 | }; |
414 | 415 | ||
415 | static inline struct kvm_pic *pic_irqchip(struct kvm *kvm) | 416 | static inline struct kvm_pic *pic_irqchip(struct kvm *kvm) |
@@ -417,6 +418,11 @@ static inline struct kvm_pic *pic_irqchip(struct kvm *kvm) | |||
417 | return kvm->vpic; | 418 | return kvm->vpic; |
418 | } | 419 | } |
419 | 420 | ||
421 | static inline struct kvm_ioapic *ioapic_irqchip(struct kvm *kvm) | ||
422 | { | ||
423 | return kvm->vioapic; | ||
424 | } | ||
425 | |||
420 | static inline int irqchip_in_kernel(struct kvm *kvm) | 426 | static inline int irqchip_in_kernel(struct kvm *kvm) |
421 | { | 427 | { |
422 | return pic_irqchip(kvm) != 0; | 428 | return pic_irqchip(kvm) != 0; |