cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-hw-s390x-Include-the-tod-qemu-also-for-builds-with-d.patch

ae23c9
From 5481b8bcb37cfaf3016a09df49dbcfdeb5ae9d68 Mon Sep 17 00:00:00 2001
ae23c9
From: David Hildenbrand <david@redhat.com>
ae23c9
Date: Fri, 21 Dec 2018 15:36:12 +0000
ae23c9
Subject: [PATCH 10/22] hw/s390x: Include the tod-qemu also for builds with
ae23c9
 --disable-tcg
ae23c9
ae23c9
RH-Author: David Hildenbrand <david@redhat.com>
ae23c9
Message-id: <20181221153614.27961-11-david@redhat.com>
ae23c9
Patchwork-id: 83753
ae23c9
O-Subject: [RHEL-8.0 qemu-kvm v2 PATCH 10/12] hw/s390x: Include the tod-qemu also for builds with --disable-tcg
ae23c9
Bugzilla: 1653569
ae23c9
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
ae23c9
RH-Acked-by: Thomas Huth <thuth@redhat.com>
ae23c9
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
ae23c9
ae23c9
The device is required for running qtests, see hw/s390x/tod.c:
ae23c9
ae23c9
void s390_init_tod(void)
ae23c9
{
ae23c9
    Object *obj;
ae23c9
ae23c9
    if (kvm_enabled()) {
ae23c9
        obj = object_new(TYPE_KVM_S390_TOD);
ae23c9
    } else {
ae23c9
        obj = object_new(TYPE_QEMU_S390_TOD);
ae23c9
    }
ae23c9
    [...]
ae23c9
  }
ae23c9
ae23c9
During qtests, we're running without kvm, so TYPE_QEMU_S390_TOD is
ae23c9
required to avoid that QEMU aborts here.
ae23c9
ae23c9
Fixes: 8046f374a6 ("s390x/tod: factor out TOD into separate device")
ae23c9
Signed-off-by: Thomas Huth <thuth@redhat.com>
ae23c9
Message-Id: <1539264723-741-1-git-send-email-thuth@redhat.com>
ae23c9
Reviewed-by: David Hildenbrand <david@redhat.com>
ae23c9
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
ae23c9
(cherry picked from commit 0161215d435ef5680c4623bcbdfe89ce5b35cf42)
ae23c9
Signed-off-by: David Hildenbrand <david@redhat.com>
ae23c9
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ae23c9
---
ae23c9
 hw/s390x/Makefile.objs | 2 +-
ae23c9
 1 file changed, 1 insertion(+), 1 deletion(-)
ae23c9
ae23c9
diff --git a/hw/s390x/Makefile.objs b/hw/s390x/Makefile.objs
ae23c9
index add89b1..c57d706 100644
ae23c9
--- a/hw/s390x/Makefile.objs
ae23c9
+++ b/hw/s390x/Makefile.objs
ae23c9
@@ -15,8 +15,8 @@ obj-$(call lnot,$(CONFIG_PCI)) += s390-pci-stub.o
ae23c9
 obj-y += s390-skeys.o
ae23c9
 obj-y += s390-stattrib.o
ae23c9
 obj-y += tod.o
ae23c9
+obj-y += tod-qemu.o
ae23c9
 obj-$(CONFIG_KVM) += tod-kvm.o
ae23c9
-obj-$(CONFIG_TCG) += tod-qemu.o
ae23c9
 obj-$(CONFIG_KVM) += s390-skeys-kvm.o
ae23c9
 obj-$(CONFIG_KVM) += s390-stattrib-kvm.o
ae23c9
 obj-y += s390-ccw.o
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9