~ubuntu-branches/ubuntu/hardy/kvm/hardy-backports

« back to all changes in this revision

Viewing changes to debian/patches/disable_unaccelerated_execution.patch

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2008-02-26 13:10:57 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20080226131057-s67x6l89mtjw1x9b
Tags: 1:62+dfsg-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: kvm-60+dfsg/qemu/vl.c
2
 
===================================================================
3
 
--- kvm-60+dfsg.orig/qemu/vl.c  2008-02-20 10:53:27.257527176 +0100
4
 
+++ kvm-60+dfsg/qemu/vl.c       2008-02-20 10:56:09.133526640 +0100
5
 
@@ -9216,6 +9216,10 @@
6
 
        }
7
 
     }
8
 
 #endif
9
 
+       if (!kvm_allowed) {
10
 
+               fprintf(stderr, "Ubuntu does not support running KVM without hardware acceleration. Sorry.\n");
11
 
+               exit(1);
12
 
+       } 
13
 
 
14
 
     if (pid_file && qemu_create_pidfile(pid_file) != 0) {
15
 
         if (daemonize) {