36ac86c950
Update to rc4 of v2.9.0. Also includes a few other fixes, and a number of tweaks to the spec files. I'd be happy to answer any questions about all those spec file changes, I believe they were all in the direction of a more correct and maintainable spec file. Since this is still in rc phase, let's keep it in devel project. Final release should appear in time for Beta2 of SLE12SP3. Delta from previous: Added Alex's patch for keyboard empty event. OBS-URL: https://build.opensuse.org/request/show/487699 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=334
44 lines
1.5 KiB
Diff
44 lines
1.5 KiB
Diff
From 740d7f465e36577043b568971faaefa511474524 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Andreas=20F=C3=A4rber?= <afaerber@suse.de>
|
|
Date: Wed, 31 Jul 2013 17:05:29 +0200
|
|
Subject: [PATCH] i8254: Fix migration from SLE11 SP2
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
qemu-kvm 0.15 had a VMSTATE_UINT32(flags, PITState) field that
|
|
qemu 1.4 does not have.
|
|
|
|
Addresses part of BNC#812836.
|
|
|
|
Signed-off-by: Andreas Färber <afaerber@suse.de>
|
|
---
|
|
hw/timer/i8254_common.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/hw/timer/i8254_common.c b/hw/timer/i8254_common.c
|
|
index e18299a482..bc676c4664 100644
|
|
--- a/hw/timer/i8254_common.c
|
|
+++ b/hw/timer/i8254_common.c
|
|
@@ -258,6 +258,12 @@ static int pit_dispatch_post_load(void *opaque, int version_id)
|
|
return 0;
|
|
}
|
|
|
|
+static bool is_qemu_kvm(void *opaque, int version_id)
|
|
+{
|
|
+ /* HACK: We ignore incoming migration from upstream qemu */
|
|
+ return version_id < 3;
|
|
+}
|
|
+
|
|
static const VMStateDescription vmstate_pit_common = {
|
|
.name = "i8254",
|
|
.version_id = 3,
|
|
@@ -267,6 +273,7 @@ static const VMStateDescription vmstate_pit_common = {
|
|
.pre_save = pit_dispatch_pre_save,
|
|
.post_load = pit_dispatch_post_load,
|
|
.fields = (VMStateField[]) {
|
|
+ VMSTATE_UNUSED_TEST(is_qemu_kvm, 4),
|
|
VMSTATE_UINT32_V(channels[0].irq_disabled, PITCommonState, 3),
|
|
VMSTATE_STRUCT_ARRAY(channels, PITCommonState, 3, 2,
|
|
vmstate_pit_channel, PITChannelState),
|