aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/lapic.c
diff options
context:
space:
mode:
authorZhang Xiantao <xiantao.zhang@intel.com>2007-12-13 21:20:16 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:58:10 -0500
commitbfc6d222bdb1123d12c1193bcd7c755e6617b405 (patch)
tree72fb596179845648c3a050669f6f8ab16a834d3b /drivers/kvm/lapic.c
parentd7deeeb02cf73fd98cb71a6a0a5dffab9ef79556 (diff)
KVM: Portability: Move round_robin_prev_vcpu and tss_addr to kvm_arch
This patches moves two fields round_robin_prev_vcpu and tss 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/lapic.c')
-rw-r--r--drivers/kvm/lapic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/lapic.c b/drivers/kvm/lapic.c
index 5c9f46784c26..8c74bf184a07 100644
--- a/drivers/kvm/lapic.c
+++ b/drivers/kvm/lapic.c
@@ -404,7 +404,7 @@ static struct kvm_lapic *kvm_apic_round_robin(struct kvm *kvm, u8 vector,
404 int next; 404 int next;
405 struct kvm_lapic *apic = NULL; 405 struct kvm_lapic *apic = NULL;
406 406
407 last = kvm->round_robin_prev_vcpu; 407 last = kvm->arch.round_robin_prev_vcpu;
408 next = last; 408 next = last;
409 409
410 do { 410 do {
@@ -417,7 +417,7 @@ static struct kvm_lapic *kvm_apic_round_robin(struct kvm *kvm, u8 vector,
417 break; 417 break;
418 apic = NULL; 418 apic = NULL;
419 } while (next != last); 419 } while (next != last);
420 kvm->round_robin_prev_vcpu = next; 420 kvm->arch.round_robin_prev_vcpu = next;
421 421
422 if (!apic) 422 if (!apic)
423 printk(KERN_DEBUG "vcpu not ready for apic_round_robin\n"); 423 printk(KERN_DEBUG "vcpu not ready for apic_round_robin\n");