updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / kvm-opensuse / kvm-qemu-no-fallback-if-open-kvm-fails.patch
blobe6c5baf1103036e2d75dcb59f487558cc50dcc5a
1 Index: a/qemu/vl.c
2 ===================================================================
3 --- a/qemu/vl.c
4 +++ b/qemu/vl.c
5 @@ -5658,7 +5658,8 @@ int main(int argc, char **argv, char **e
6 #ifdef USE_KVM
7 if (kvm_enabled()) {
8 if (kvm_qemu_init() < 0) {
9 - fprintf(stderr, "Could not initialize KVM, will disable KVM support\n");
10 + 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");
11 + exit(1);
12 #ifdef NO_CPU_EMULATION
13 fprintf(stderr, "Compiled with --disable-cpu-emulation, exiting.\n");
14 exit(1);