mirror of https://github.com/xemu-project/xemu.git
i386/kvm: Require KVM_CAP_IRQ_ROUTING
KVM_CAP_IRQ_ROUTING is available since 2009 (Linux v2.6.30), so it's safe to just make it a requirement on x86. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200922201922.2153598-2-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
35ac5dfbca
commit
1a6dff5fa8
|
@ -2114,6 +2114,11 @@ int kvm_arch_init(MachineState *ms, KVMState *s)
|
|||
int ret;
|
||||
struct utsname utsname;
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue