Patchwork kvm: add stub for kvm_irqchip_update_msi_route

login
register
mail settings
Submitter Michael S. Tsirkin
Date Jan. 15, 2013, 5:50 p.m.
Message ID <20130115175012.GA9979@redhat.com>
Download mbox | patch
Permalink /patch/212275/
State New
Headers show

Comments

Michael S. Tsirkin - Jan. 15, 2013, 5:50 p.m.
ppc64 build needs this stub to build with virtio enabled.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Andreas Färber <afaerber@suse.de>
---
 kvm-all.c | 5 +++++
 1 file changed, 5 insertions(+)
Anthony Liguori - Jan. 16, 2013, 1:43 a.m.
Thanks, applied.

Regards,

Anthony Liguori

Patch

diff --git a/kvm-all.c b/kvm-all.c
index fc0c6e7..bac67da 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1182,6 +1182,11 @@  static int kvm_irqchip_assign_irqfd(KVMState *s, int fd, int virq, bool assign)
 {
     abort();
 }
+
+int kvm_irqchip_update_msi_route(KVMState *s, int virq, MSIMessage msg)
+{
+    return -ENOSYS;
+}
 #endif /* !KVM_CAP_IRQ_ROUTING */
 
 int kvm_irqchip_add_irqfd_notifier(KVMState *s, EventNotifier *n, int virq)