summaryrefslogtreecommitdiff
path: root/drivers/kvm
diff options
context:
space:
mode:
authorZhang Xiantao <xiantao.zhang@intel.com>2007-12-02 17:53:07 +0300
committerAvi Kivity <avi@qumranet.com>2008-01-30 18:53:17 +0300
commitb1fd3d30ba46360fc94d40ee8dc1f7a4338b19be (patch)
treef4da83ade6adf2ef27e6ed903afc2667ee22b375 /drivers/kvm
parent0c7ac28d3dd27d718493aae4bbc7de89a2d9d386 (diff)
downloadlinux-b1fd3d30ba46360fc94d40ee8dc1f7a4338b19be.tar.xz
KVM: Extend ioapic code to support iosapic
iosapic supports an additional mmio EOI register compared to ioapic. Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm')
-rw-r--r--drivers/kvm/ioapic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/kvm/ioapic.c b/drivers/kvm/ioapic.c
index 0feae6f7fb2d..e7debfafca50 100644
--- a/drivers/kvm/ioapic.c
+++ b/drivers/kvm/ioapic.c
@@ -360,6 +360,11 @@ static void ioapic_mmio_write(struct kvm_io_device *this, gpa_t addr, int len,
case IOAPIC_REG_WINDOW:
ioapic_write_indirect(ioapic, data);
break;
+#ifdef CONFIG_IA64
+ case IOAPIC_REG_EOI:
+ kvm_ioapic_update_eoi(ioapic, data);
+ break;
+#endif
default:
break;