Will be used by PCI device assignment code. Signed-off-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx> --- kvm-all.c | 8 ++++++++ kvm.h | 1 + 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 7fed5c9..471293d 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -78,6 +78,7 @@ struct KVMState int xsave, xcrs; int many_ioeventfds; int pit_state2; + int intx_set_mask; int irqchip_inject_ioctl; #ifdef KVM_CAP_IRQ_ROUTING struct kvm_irq_routing *irq_routes; @@ -960,6 +961,8 @@ int kvm_init(void) s->pit_state2 = kvm_check_extension(s, KVM_CAP_PIT_STATE2); #endif + s->intx_set_mask = kvm_check_extension(s, KVM_CAP_PCI_2_3); + ret = kvm_arch_init(s); if (ret < 0) { goto err; @@ -1319,6 +1322,11 @@ int kvm_has_gsi_routing(void) #endif } +int kvm_has_intx_set_mask(void) +{ + return kvm_state->intx_set_mask; +} + int kvm_allows_irq0_override(void) { return !kvm_irqchip_in_kernel() || kvm_has_gsi_routing(); diff --git a/kvm.h b/kvm.h index 43d4c68..1885be1 100644 --- a/kvm.h +++ b/kvm.h @@ -57,6 +57,7 @@ int kvm_has_xcrs(void); int kvm_has_many_ioeventfds(void); int kvm_has_pit_state2(void); int kvm_has_gsi_routing(void); +int kvm_has_intx_set_mask(void); int kvm_allows_irq0_override(void); -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html