diff options
author | Zhang Xiantao <xiantao.zhang@intel.com> | 2007-12-13 10:50:52 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:58:09 -0500 |
commit | ad312c7c79f781c822e37effe41307503a2bb85b (patch) | |
tree | d979bfb70e76ada58b79b456c61a0507a8f0847d /drivers/kvm/ioapic.c | |
parent | 682c59a3f3f211ed555b17144f2d82eb8286a1db (diff) |
KVM: Portability: Introduce kvm_vcpu_arch
Move all the architecture-specific fields in kvm_vcpu into a new struct
kvm_vcpu_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.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/kvm/ioapic.c b/drivers/kvm/ioapic.c index e7debfafca50..04910368c251 100644 --- a/drivers/kvm/ioapic.c +++ b/drivers/kvm/ioapic.c | |||
@@ -158,7 +158,7 @@ static u32 ioapic_get_delivery_bitmask(struct kvm_ioapic *ioapic, u8 dest, | |||
158 | if (dest_mode == 0) { /* Physical mode. */ | 158 | if (dest_mode == 0) { /* Physical mode. */ |
159 | if (dest == 0xFF) { /* Broadcast. */ | 159 | if (dest == 0xFF) { /* Broadcast. */ |
160 | for (i = 0; i < KVM_MAX_VCPUS; ++i) | 160 | for (i = 0; i < KVM_MAX_VCPUS; ++i) |
161 | if (kvm->vcpus[i] && kvm->vcpus[i]->apic) | 161 | if (kvm->vcpus[i] && kvm->vcpus[i]->arch.apic) |
162 | mask |= 1 << i; | 162 | mask |= 1 << i; |
163 | return mask; | 163 | return mask; |
164 | } | 164 | } |
@@ -166,8 +166,8 @@ static u32 ioapic_get_delivery_bitmask(struct kvm_ioapic *ioapic, u8 dest, | |||
166 | vcpu = kvm->vcpus[i]; | 166 | vcpu = kvm->vcpus[i]; |
167 | if (!vcpu) | 167 | if (!vcpu) |
168 | continue; | 168 | continue; |
169 | if (kvm_apic_match_physical_addr(vcpu->apic, dest)) { | 169 | if (kvm_apic_match_physical_addr(vcpu->arch.apic, dest)) { |
170 | if (vcpu->apic) | 170 | if (vcpu->arch.apic) |
171 | mask = 1 << i; | 171 | mask = 1 << i; |
172 | break; | 172 | break; |
173 | } | 173 | } |
@@ -177,8 +177,8 @@ static u32 ioapic_get_delivery_bitmask(struct kvm_ioapic *ioapic, u8 dest, | |||
177 | vcpu = kvm->vcpus[i]; | 177 | vcpu = kvm->vcpus[i]; |
178 | if (!vcpu) | 178 | if (!vcpu) |
179 | continue; | 179 | continue; |
180 | if (vcpu->apic && | 180 | if (vcpu->arch.apic && |
181 | kvm_apic_match_logical_addr(vcpu->apic, dest)) | 181 | kvm_apic_match_logical_addr(vcpu->arch.apic, dest)) |
182 | mask |= 1 << vcpu->vcpu_id; | 182 | mask |= 1 << vcpu->vcpu_id; |
183 | } | 183 | } |
184 | ioapic_debug("mask %x\n", mask); | 184 | ioapic_debug("mask %x\n", mask); |