[qemu/f14/master] Fix qxl pci id, and grab ksm updates.
Justin M. Forbes
jforbes at fedoraproject.org
Tue Sep 21 22:04:52 UTC 2010
commit 2b6f88d8cb5b96b4a8123c65ff51f05ab5845dde
Author: Justin M. Forbes <jforbes at redhat.com>
Date: Tue Sep 21 16:52:25 2010 -0500
Fix qxl pci id, and grab ksm updates.
0040-qxl-flip-default-to-stable-pci-revision.patch | 25 ++++++++++++++++++++
ksm.init | 6 +++-
ksmtuned | 4 +-
qemu.spec | 10 ++++++-
4 files changed, 39 insertions(+), 6 deletions(-)
---
diff --git a/0040-qxl-flip-default-to-stable-pci-revision.patch b/0040-qxl-flip-default-to-stable-pci-revision.patch
new file mode 100644
index 0000000..2fe6928
--- /dev/null
+++ b/0040-qxl-flip-default-to-stable-pci-revision.patch
@@ -0,0 +1,25 @@
+From b0f3b268c79c532725ae23af56621ab2948ac480 Mon Sep 17 00:00:00 2001
+From: Gerd Hoffmann <kraxel at redhat.com>
+Date: Thu, 16 Sep 2010 12:07:51 +0000
+Subject: [PATCH 40/40] qxl: flip default to stable pci revision.
+
+---
+ hw/qxl.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/hw/qxl.c b/hw/qxl.c
+index 8448893..d2a0c16 100644
+--- a/hw/qxl.c
++++ b/hw/qxl.c
+@@ -1455,7 +1455,7 @@ static PCIDeviceInfo qxl_info = {
+ .qdev.props = (Property[]) {
+ DEFINE_PROP_UINT32("ram_size", PCIQXLDevice, vga.vram_size, 64 * 1024 * 1024),
+ DEFINE_PROP_UINT32("vram_size", PCIQXLDevice, vram_size, 64 * 1024 * 1024),
+- DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision, 3),
++ DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision, 2),
+ DEFINE_PROP_UINT32("debug", PCIQXLDevice, debug, 0),
+ DEFINE_PROP_UINT32("cmdlog", PCIQXLDevice, cmdlog, 0),
+ DEFINE_PROP_END_OF_LIST(),
+--
+1.7.2.3
+
diff --git a/ksm.init b/ksm.init
index 8561993..a4bed2d 100644
--- a/ksm.init
+++ b/ksm.init
@@ -40,8 +40,10 @@ default_max_kernel_pages () {
start() {
echo -n $"Starting $prog: "
- KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
- echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
+ if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
+ KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
+ echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
+ fi
echo 1 > /sys/kernel/mm/ksm/run
RETVAL=$?
[ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
diff --git a/ksmtuned b/ksmtuned
index 4e0414f..c59dec0 100644
--- a/ksmtuned
+++ b/ksmtuned
@@ -71,8 +71,8 @@ KSMCTL () {
committed_memory () {
# calculate how much memory is committed to running qemu processes
local progname
- progname=${1:-qemu}
- ps -o vsz `pgrep $progname` | awk '{ sum += $1 }; END { print sum }'
+ progname=${1:-qemu-kvm}
+ ps -C "$progname" -o rsz | awk '{ sum += $1 }; END { print sum }'
}
free_memory () {
diff --git a/qemu.spec b/qemu.spec
index b76a714..097bdb0 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -1,7 +1,7 @@
Summary: QEMU is a FAST! processor emulator
Name: qemu
Version: 0.13.0
-Release: 0.6.rc1%{?dist}
+Release: 0.7.rc1%{?dist}
# Epoch because we pushed a qemu-1.0 package
Epoch: 2
License: GPLv2+ and LGPLv2+ and BSD
@@ -77,6 +77,7 @@ Patch36: 0036-Revert-spice-add-pci-vdi-port-backend-obsolete.patch
Patch37: 0037-Revert-spice-add-virtio-serial-based-vdi-port-backen.patch
Patch38: 0038-spice-add-virtio-serial-based-spice-vmchannel-backen.patch
Patch39: 0039-qxl-fix-release-ring-overrun.patch
+Patch40: 0040-qxl-flip-default-to-stable-pci-revision.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL-devel zlib-devel which texi2html gnutls-devel cyrus-sasl-devel
@@ -313,6 +314,7 @@ such as kvm_stat.
%patch37 -p1
%patch38 -p1
%patch39 -p1
+%patch40 -p1
%build
# By default we build everything, but allow x86 to build a minimal version
@@ -627,7 +629,11 @@ fi
%{_mandir}/man1/qemu-img.1*
%changelog
-* Tue Aug 10 2010 Justin M. Forbes <jforbes at redhat.com> - 2:0.13.0-0.6.rc1
+* Tue Sep 21 2010 Justin M. Forbes <jforbes at redhat.com> - 2:0.13.0-0.7.rc1
+- Flip qxl pci id from unstable to stable (#634535)
+- KSM Fixes from upstream (#558281)
+
+* Tue Sep 14 2010 Justin M. Forbes <jforbes at redhat.com> - 2:0.13.0-0.6.rc1
- Move away from git snapshots as 0.13 is close to release
- Updates for spice 0.6
More information about the scm-commits
mailing list