aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/ioapic.c
diff options
context:
space:
mode:
authorZhang Xiantao <xiantao.zhang@intel.com>2007-12-13 21:17:34 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:58:10 -0500
commitd7deeeb02cf73fd98cb71a6a0a5dffab9ef79556 (patch)
treed1f1d1bf5ae822ddf1d91caf484366ebabf11217 /drivers/kvm/ioapic.c
parentf05e70ac03a6614af12194a014b338ec5594cb5c (diff)
KVM: Portability: move vpic and vioapic to kvm_arch
This patches moves two fields vpid and vioapic to kvm_arch Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com> Acked-by: Carsten Otte <cotte@de.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/ioapic.c')
-rw-r--r--drivers/kvm/ioapic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/ioapic.c b/drivers/kvm/ioapic.c
index 04910368c251..f8236774c1b4 100644
--- a/drivers/kvm/ioapic.c
+++ b/drivers/kvm/ioapic.c
@@ -271,7 +271,7 @@ static int get_eoi_gsi(struct kvm_ioapic *ioapic, int vector)
271 271
272void kvm_ioapic_update_eoi(struct kvm *kvm, int vector) 272void kvm_ioapic_update_eoi(struct kvm *kvm, int vector)
273{ 273{
274 struct kvm_ioapic *ioapic = kvm->vioapic; 274 struct kvm_ioapic *ioapic = kvm->arch.vioapic;
275 union ioapic_redir_entry *ent; 275 union ioapic_redir_entry *ent;
276 int gsi; 276 int gsi;
277 277
@@ -390,7 +390,7 @@ int kvm_ioapic_init(struct kvm *kvm)
390 ioapic = kzalloc(sizeof(struct kvm_ioapic), GFP_KERNEL); 390 ioapic = kzalloc(sizeof(struct kvm_ioapic), GFP_KERNEL);
391 if (!ioapic) 391 if (!ioapic)
392 return -ENOMEM; 392 return -ENOMEM;
393 kvm->vioapic = ioapic; 393 kvm->arch.vioapic = ioapic;
394 kvm_ioapic_reset(ioapic); 394 kvm_ioapic_reset(ioapic);
395 ioapic->dev.read = ioapic_mmio_read; 395 ioapic->dev.read = ioapic_mmio_read;
396 ioapic->dev.write = ioapic_mmio_write; 396 ioapic->dev.write = ioapic_mmio_write;