From 9e03a0405d56b4af8952b794d0e5dd9206ee7329 Mon Sep 17 00:00:00 2001 From: Frank Blaschka Date: Fri, 9 Jan 2015 09:04:40 +0100 Subject: kvm: extend kvm_irqchip_add_msi_route to work on s390 on s390 MSI-X irqs are presented as thin or adapter interrupts for this we have to reorganize the routing entry to contain valid information for the adapter interrupt code on s390. To minimize impact on existing code we introduce an architecture function to fixup the routing entry. Signed-off-by: Frank Blaschka Signed-off-by: Cornelia Huck --- target-i386/kvm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'target-i386/kvm.c') diff --git a/target-i386/kvm.c b/target-i386/kvm.c index f92edfe14a..54ccb890b5 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -2733,3 +2733,9 @@ int kvm_device_msix_deassign(KVMState *s, uint32_t dev_id) return kvm_deassign_irq_internal(s, dev_id, KVM_DEV_IRQ_GUEST_MSIX | KVM_DEV_IRQ_HOST_MSIX); } + +int kvm_arch_fixup_msi_route(struct kvm_irq_routing_entry *route, + uint64_t address, uint32_t data) +{ + return 0; +} -- cgit v1.2.3