KVM: x86: get rid of ioapic_irqchip()
Let's just use kvm->arch.vioapic directly. Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
This commit is contained in:

committed by
Radim Krčmář

parent
90bca0529e
commit
0191e92d84
@@ -646,7 +646,7 @@ void kvm_ioapic_destroy(struct kvm *kvm)
|
||||
|
||||
int kvm_get_ioapic(struct kvm *kvm, struct kvm_ioapic_state *state)
|
||||
{
|
||||
struct kvm_ioapic *ioapic = ioapic_irqchip(kvm);
|
||||
struct kvm_ioapic *ioapic = kvm->arch.vioapic;
|
||||
if (!ioapic)
|
||||
return -EINVAL;
|
||||
|
||||
@@ -659,7 +659,7 @@ int kvm_get_ioapic(struct kvm *kvm, struct kvm_ioapic_state *state)
|
||||
|
||||
int kvm_set_ioapic(struct kvm *kvm, struct kvm_ioapic_state *state)
|
||||
{
|
||||
struct kvm_ioapic *ioapic = ioapic_irqchip(kvm);
|
||||
struct kvm_ioapic *ioapic = kvm->arch.vioapic;
|
||||
if (!ioapic)
|
||||
return -EINVAL;
|
||||
|
||||
|
Reference in New Issue
Block a user