Signed-off-by: Sheng Yang <sheng@xxxxxxxxxxxxxxx> --- qemu-kvm.c | 14 ++++++++++++++ qemu-kvm.h | 7 +++++++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 471306b..956b62a 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1050,6 +1050,20 @@ int kvm_assign_set_msix_entry(kvm_context_t kvm, } #endif +#ifdef KVM_CAP_MSIX_MMIO +int kvm_register_msix_mmio(kvm_context_t kvm, + struct kvm_msix_mmio_user *mmio_user) +{ + return kvm_vm_ioctl(kvm_state, KVM_REGISTER_MSIX_MMIO, mmio_user); +} + +int kvm_unregister_msix_mmio(kvm_context_t kvm, + struct kvm_msix_mmio_user *mmio_user) +{ + return kvm_vm_ioctl(kvm_state, KVM_UNREGISTER_MSIX_MMIO, mmio_user); +} +#endif + #if defined(KVM_CAP_IRQFD) && defined(CONFIG_EVENTFD) #include <sys/eventfd.h> diff --git a/qemu-kvm.h b/qemu-kvm.h index 7e6edfb..86799e6 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -602,6 +602,13 @@ int kvm_assign_set_msix_entry(kvm_context_t kvm, struct kvm_assigned_msix_entry *entry); #endif +#ifdef KVM_CAP_MSIX_MMIO +int kvm_register_msix_mmio(kvm_context_t kvm, + struct kvm_msix_mmio_user *mmio_user); +int kvm_unregister_msix_mmio(kvm_context_t kvm, + struct kvm_msix_mmio_user *mmio_user); +#endif + #else /* !CONFIG_KVM */ typedef struct kvm_context *kvm_context_t; -- 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