Skip to content

Commit

Permalink
kvm: i386: move KVM_CAP_IRQ_ROUTING detection to kvm_arch_required_ca…
Browse files Browse the repository at this point in the history
…pabilities

Simple code cleanup.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Oct 25, 2023
1 parent 2cb81af commit 4b29916
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions target/i386/kvm/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const KVMCapabilityInfo kvm_arch_required_capabilities[] = {
KVM_CAP_INFO(EXT_CPUID),
KVM_CAP_INFO(MP_STATE),
KVM_CAP_INFO(SIGNAL_MSI),
KVM_CAP_INFO(IRQ_ROUTING),
KVM_CAP_LAST_INFO
};

Expand Down Expand Up @@ -2590,11 +2591,6 @@ int kvm_arch_init(MachineState *ms, KVMState *s)
return ret;
}

if (!kvm_check_extension(s, KVM_CAP_IRQ_ROUTING)) {
error_report("kvm: KVM_CAP_IRQ_ROUTING not supported by KVM");
return -ENOTSUP;
}

has_xsave = kvm_check_extension(s, KVM_CAP_XSAVE);
has_xcrs = kvm_check_extension(s, KVM_CAP_XCRS);
has_pit_state2 = kvm_check_extension(s, KVM_CAP_PIT_STATE2);
Expand Down

0 comments on commit 4b29916

Please sign in to comment.