File qemu-kvm-common-code-fixes-for-s390-build.patch of Package kvm.openSUSE_12.1

Index: qemu-kvm-0.14.50/qemu-kvm.c
===================================================================
--- qemu-kvm-0.14.50.orig/qemu-kvm.c
+++ qemu-kvm-0.14.50/qemu-kvm.c
@@ -227,6 +227,7 @@ int kvm_deassign_pci_device(KVMState *s,
 }
 #endif
 
+#if defined(__i386__) || defined(__x86_64__)
 int kvm_reinject_control(KVMState *s, int pit_reinject)
 {
 #ifdef KVM_CAP_REINJECT_CONTROL
@@ -242,6 +243,7 @@ int kvm_reinject_control(KVMState *s, in
 #endif
     return -ENOSYS;
 }
+#endif
 
 int kvm_has_gsi_routing(void)
 {
@@ -468,6 +470,7 @@ int kvm_get_irq_route_gsi(void)
     return -ENOSPC;
 }
 
+#ifdef KVM_CAP_DEVICE_MSI
 static void kvm_msi_routing_entry(struct kvm_irq_routing_entry *e,
                                   KVMMsiMessage *msg)
 
@@ -523,6 +526,7 @@ int kvm_msi_message_update(KVMMsiMessage
 
     return 1;
 }
+#endif
 
 
 #ifdef KVM_CAP_DEVICE_MSIX
@@ -563,6 +567,12 @@ int kvm_arch_init_irq_routing(void)
 {
     return 0;
 }
+
+int kvm_arch_set_ioport_access(unsigned long start, unsigned long size,
+                               bool enable)
+{
+    return -ENOSYS;
+}
 #endif
 
 #ifdef CONFIG_KVM_DEVICE_ASSIGNMENT
openSUSE Build Service is sponsored by