aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorEddie Dong <eddie.dong@intel.com>2007-07-06 05:20:49 -0400
committerAvi Kivity <avi@qumranet.com>2007-10-13 04:18:24 -0400
commit85f455f7ddbed403b34b4d54b1eaf0e14126a126 (patch)
tree1dba7aa8fee3c8f756e12049c496dee5baae752c /drivers/kvm/kvm.h
parent152d3f2f246ce3c2a0cf2fc6c2214663cd99aa83 (diff)
KVM: Add support for in-kernel PIC emulation
Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h11
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
414static inline struct kvm_pic *pic_irqchip(struct kvm *kvm)
415{
416 return kvm->vpic;
417}
418
419static inline int irqchip_in_kernel(struct kvm *kvm)
420{
421 return pic_irqchip(kvm) != 0;
422}
423
413struct descriptor_table { 424struct descriptor_table {
414 u16 limit; 425 u16 limit;
415 unsigned long base; 426 unsigned long base;