File kvm-qemu-no-fallback-if-open-kvm-fails.patch of Package kvm

Index: qemu-kvm-0.12.5/vl.c
===================================================================
--- qemu-kvm-0.12.5.orig/vl.c
+++ qemu-kvm-0.12.5/vl.c
@@ -5913,6 +5913,8 @@ int main(int argc, char **argv, char **e
             fprintf(stderr, "failed to initialize KVM\n");
             exit(1);
 #endif
+            fprintf(stderr, "Could not initialize KVM. Do you have kvm-amd or kvm-intel modprobe'd?\nIf you want to use CPU emulation, start with -no-kvm.\n");
+            exit(1);
             fprintf(stderr, "Could not initialize KVM, will disable KVM support\n");
             kvm_allowed = 0;
         }
openSUSE Build Service is sponsored by