diff options
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); |