[qemu] Fix default accelerator for non-KVM builds (rhbz #724814)
Daniel P. Berrange
berrange at fedoraproject.org
Thu Aug 4 14:38:56 UTC 2011
commit db8fd942f74151ade54d3c5c03c55e8c3665727b
Author: Daniel P. Berrange <berrange at redhat.com>
Date: Thu Aug 4 15:15:56 2011 +0100
Fix default accelerator for non-KVM builds (rhbz #724814)
qemu-kvm-default-accelerator.patch | 18 ++++++++++++++++++
qemu.spec | 10 +++++++++-
2 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/qemu-kvm-default-accelerator.patch b/qemu-kvm-default-accelerator.patch
new file mode 100644
index 0000000..9931144
--- /dev/null
+++ b/qemu-kvm-default-accelerator.patch
@@ -0,0 +1,18 @@
+diff --git a/vl.c b/vl.c
+index 7ae549e..28fd2f3 100644
+--- a/vl.c
++++ b/vl.c
+@@ -1953,8 +1953,13 @@ static int configure_accelerator(void)
+ }
+
+ if (p == NULL) {
++#ifdef CONFIG_KVM
+ /* Use the default "accelerator", kvm */
+ p = "kvm";
++#else
++ /* Use the default "accelerator", tcg */
++ p = "tcg";
++#endif
+ }
+
+ while (!accel_initalised && *p != '\0') {
diff --git a/qemu.spec b/qemu.spec
index 0d88168..abd8306 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -3,7 +3,7 @@
Summary: QEMU is a FAST! processor emulator
Name: qemu
Version: 0.15.0
-Release: 0.2.20110728%githead%{?dist}
+Release: 0.3.20110728%githead%{?dist}
# Epoch because we pushed a qemu-1.0 package
Epoch: 2
License: GPLv2+ and LGPLv2+ and BSD
@@ -55,6 +55,9 @@ Patch11: 0011-usb-redir-Add-flow-control-support.patch
Patch12: 0012-usb-redir-Call-qemu_chr_guest_open-close.patch
Patch13: 0013-spice-qemu-char-Generate-chardev-open-close-events.patch
+# Fix for default accelerator in non-KVM builds
+Patch100: qemu-kvm-default-accelerator.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL-devel zlib-devel which texi2html gnutls-devel cyrus-sasl-devel
BuildRequires: libaio-devel
@@ -241,6 +244,8 @@ such as kvm_stat.
%patch12 -p1
%patch13 -p1
+%patch100 -p1
+
%build
# By default we build everything, but allow x86 to build a minimal version
# with only similar arch target support
@@ -550,6 +555,9 @@ fi
%{_mandir}/man1/qemu-img.1*
%changelog
+* Thu Aug 4 2011 Daniel P. Berrange <berrange at redhat.com> - 2:0.15.0-0.3.2011072859fadcc
+- Fix default accelerator for non-KVM builds (rhbz #724814)
+
* Thu Jul 28 2011 Justin M. Forbes <jforbes at redhat.com> - 2:0.15.0-0.1.2011072859fadcc
- Update to 0.15.0-rc0 as we prepare for 0.15.0 release
More information about the scm-commits
mailing list