Commit ca8ab3f8 authored by David Hildenbrand's avatar David Hildenbrand Committed by Radim Krčmář

KVM: x86: directly call kvm_make_scan_ioapic_request() in ioapic.c

We know there is an ioapic, so let's call it directly.
Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent d62f270b
...@@ -313,7 +313,7 @@ static void ioapic_write_indirect(struct kvm_ioapic *ioapic, u32 val) ...@@ -313,7 +313,7 @@ static void ioapic_write_indirect(struct kvm_ioapic *ioapic, u32 val)
if (e->fields.trig_mode == IOAPIC_LEVEL_TRIG if (e->fields.trig_mode == IOAPIC_LEVEL_TRIG
&& ioapic->irr & (1 << index)) && ioapic->irr & (1 << index))
ioapic_service(ioapic, index, false); ioapic_service(ioapic, index, false);
kvm_vcpu_request_scan_ioapic(ioapic->kvm); kvm_make_scan_ioapic_request(ioapic->kvm);
break; break;
} }
} }
...@@ -660,7 +660,7 @@ void kvm_set_ioapic(struct kvm *kvm, struct kvm_ioapic_state *state) ...@@ -660,7 +660,7 @@ void kvm_set_ioapic(struct kvm *kvm, struct kvm_ioapic_state *state)
memcpy(ioapic, state, sizeof(struct kvm_ioapic_state)); memcpy(ioapic, state, sizeof(struct kvm_ioapic_state));
ioapic->irr = 0; ioapic->irr = 0;
ioapic->irr_delivered = 0; ioapic->irr_delivered = 0;
kvm_vcpu_request_scan_ioapic(kvm); kvm_make_scan_ioapic_request(kvm);
kvm_ioapic_inject_all(ioapic, state->irr); kvm_ioapic_inject_all(ioapic, state->irr);
spin_unlock(&ioapic->lock); spin_unlock(&ioapic->lock);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment