Signed-off-by: Sheng Yang <sheng@xxxxxxxxxxxxxxx> --- qemu-kvm.c | 9 +++++++++ qemu-kvm.h | 4 ++++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index fbb68f6..bb817d6 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1108,6 +1108,15 @@ int kvm_assign_set_msix_entry(kvm_context_t kvm, { return kvm_vm_ioctl(kvm_state, KVM_ASSIGN_SET_MSIX_ENTRY, entry); } + +#ifdef KVM_CAP_DEVICE_MSIX_MASK +int kvm_assign_reg_msix_mmio(kvm_context_t kvm, + struct kvm_assigned_msix_mmio *msix_mmio) +{ + return kvm_vm_ioctl(kvm_state, KVM_ASSIGN_REG_MSIX_MMIO, msix_mmio); +} +#endif + #endif #if defined(KVM_CAP_IRQFD) && defined(CONFIG_EVENTFD) diff --git a/qemu-kvm.h b/qemu-kvm.h index 5cac0c2..ff8ca00 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -751,6 +751,10 @@ int kvm_assign_set_msix_nr(kvm_context_t kvm, struct kvm_assigned_msix_nr *msix_nr); int kvm_assign_set_msix_entry(kvm_context_t kvm, struct kvm_assigned_msix_entry *entry); +#ifdef KVM_CAP_DEVICE_MSIX_MASK +int kvm_assign_reg_msix_mmio(kvm_context_t kvm, + struct kvm_assigned_msix_mmio *msix_mmio); +#endif #endif #else /* !CONFIG_KVM */ -- 1.7.0.1 -- 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