diff options
author | Eddie Dong <eddie.dong@intel.com> | 2007-06-19 11:05:03 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 05:05:48 -0400 |
commit | 74906345ff9f84f2b3b772d368c7e49f4ba27456 (patch) | |
tree | c7da7fb64d076e8350233f6d0c3fb8e53a53566f /drivers/kvm/kvm.h | |
parent | ff1dc7942ba8fa4a86619bcb37ed68afae1f69ca (diff) |
KVM: Add support for in-kernel pio handlers
Useful for the PIC and PIT.
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.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 31846b1c162..a7c5e6bee03 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -241,6 +241,7 @@ struct kvm_pio_request { | |||
241 | struct page *guest_pages[2]; | 241 | struct page *guest_pages[2]; |
242 | unsigned guest_page_offset; | 242 | unsigned guest_page_offset; |
243 | int in; | 243 | int in; |
244 | int port; | ||
244 | int size; | 245 | int size; |
245 | int string; | 246 | int string; |
246 | int down; | 247 | int down; |
@@ -303,7 +304,8 @@ static inline int kvm_iodevice_inrange(struct kvm_io_device *dev, gpa_t addr) | |||
303 | 304 | ||
304 | static inline void kvm_iodevice_destructor(struct kvm_io_device *dev) | 305 | static inline void kvm_iodevice_destructor(struct kvm_io_device *dev) |
305 | { | 306 | { |
306 | dev->destructor(dev); | 307 | if (dev->destructor) |
308 | dev->destructor(dev); | ||
307 | } | 309 | } |
308 | 310 | ||
309 | /* | 311 | /* |
@@ -453,6 +455,7 @@ struct kvm { | |||
453 | struct list_head vm_list; | 455 | struct list_head vm_list; |
454 | struct file *filp; | 456 | struct file *filp; |
455 | struct kvm_io_bus mmio_bus; | 457 | struct kvm_io_bus mmio_bus; |
458 | struct kvm_io_bus pio_bus; | ||
456 | }; | 459 | }; |
457 | 460 | ||
458 | struct descriptor_table { | 461 | struct descriptor_table { |