|
|
9bac43 |
From 456a0426e0db531e9545042fb20ecdb1d470f8ea Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: Thomas Huth <thuth@redhat.com>
|
|
|
9bac43 |
Date: Mon, 9 Oct 2017 12:32:44 +0200
|
|
|
9bac43 |
Subject: [PATCH 25/34] s390x/ipl: The s390-ipl device is not hot-pluggable
|
|
|
9bac43 |
|
|
|
9bac43 |
RH-Author: Thomas Huth <thuth@redhat.com>
|
|
|
9bac43 |
Message-id: <1507552368-9245-9-git-send-email-thuth@redhat.com>
|
|
|
9bac43 |
Patchwork-id: 77025
|
|
|
9bac43 |
O-Subject: [RHEL-7.5 qemu-kvm-ma PATCH 08/12] s390x/ipl: The s390-ipl device is not hot-pluggable
|
|
|
9bac43 |
Bugzilla: 1492033
|
|
|
9bac43 |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: David Gibson <dgibson@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
The s390-ipl device can not be created by the user, since it is meant only
|
|
|
9bac43 |
to be instantiated once internally to load the ROMs and kernel. If the user
|
|
|
9bac43 |
tries to do a "device_add s390-ipl" via the monitor later, QEMU aborts with
|
|
|
9bac43 |
a "ROM images must be loaded at startup" error message.
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
|
|
9bac43 |
Message-Id: <1502861458-30270-1-git-send-email-thuth@redhat.com>
|
|
|
9bac43 |
Reviewed-by: David Hildenbrand <david@redhat.com>
|
|
|
9bac43 |
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
9bac43 |
(cherry picked from commit 0d4fa4996fc5ee56ea7d072e272b8e69948460a5)
|
|
|
9bac43 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
---
|
|
|
9bac43 |
hw/s390x/ipl.c | 2 ++
|
|
|
9bac43 |
1 file changed, 2 insertions(+)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c
|
|
|
9bac43 |
index cc36003..0d06fc1 100644
|
|
|
9bac43 |
--- a/hw/s390x/ipl.c
|
|
|
9bac43 |
+++ b/hw/s390x/ipl.c
|
|
|
9bac43 |
@@ -442,6 +442,8 @@ static void s390_ipl_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
dc->reset = s390_ipl_reset;
|
|
|
9bac43 |
dc->vmsd = &vmstate_ipl;
|
|
|
9bac43 |
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
|
|
|
9bac43 |
+ /* Reason: Loads the ROMs and thus can only be used one time - internally */
|
|
|
9bac43 |
+ dc->user_creatable = false;
|
|
|
9bac43 |
}
|
|
|
9bac43 |
|
|
|
9bac43 |
static const TypeInfo s390_ipl_info = {
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|