- kvm-qapi-machine-s390x-add-QAPI-event-SCLP_CPI_INFO_AVAI.patch [RHEL-104009 RHEL-105823 RHEL-73008] - kvm-tests-functional-add-tests-for-SCLP-event-CPI.patch [RHEL-104009 RHEL-105823 RHEL-73008] - kvm-redhat-Add-new-rhel9.8.0-and-rhel10.2.0-machine-type.patch [RHEL-104009 RHEL-105823 RHEL-73008] - kvm-vfio-rename-field-to-num_initial_regions.patch [RHEL-118810] - kvm-vfio-only-check-region-info-cache-for-initial-region.patch [RHEL-118810] - kvm-arm-create-new-rhel-10.2-specific-virt-machine-type.patch [RHEL-105826 RHEL-105828] - kvm-arm-create-new-rhel-9.8-specific-virt-machine-type.patch [RHEL-105826 RHEL-105828] - kvm-x86-create-new-rhel-10.2-specific-pc-q35-machine-typ.patch [RHEL-105826 RHEL-105828] - kvm-x86-create-new-rhel-9.8-specific-pc-q35-machine-type.patch [RHEL-105826 RHEL-105828] - kvm-rh-enable-CONFIG_USB_STORAGE_BOT.patch [RHEL-101929] - Resolves: RHEL-104009 ([IBM 10.2 FEAT] KVM: Enhance machine type definition to include CPI and PCI passthru capabilities (qemu)) - Resolves: RHEL-105823 (Add new -rhel10.2.0 machine type to qemu-kvm [s390x]) - Resolves: RHEL-73008 ([IBM 10.2 FEAT] KVM: Implement Control Program Identification (qemu)) - Resolves: RHEL-118810 ([RHEL 10.2] Windows 11 VM fails to boot up with ramfb='on' with QEMU 10.1) - Resolves: RHEL-105826 (Add new -rhel10.2.0 machine type to qemu-kvm [aarch64]) - Resolves: RHEL-105828 (Add new -rhel10.2.0 machine type to qemu-kvm [x86_64]) - Resolves: RHEL-101929 (enable 'usb-bot' device for proper support of USB CD-ROM drives via libvirt )
88 lines
2.7 KiB
Diff
88 lines
2.7 KiB
Diff
From c616ee68c53e1ebc10f95e3401e505c034aeb361 Mon Sep 17 00:00:00 2001
|
|
From: Shalini Chellathurai Saroja <shalini@linux.ibm.com>
|
|
Date: Thu, 16 Oct 2025 14:17:07 +0200
|
|
Subject: [PATCH 01/10] qapi/machine-s390x: add QAPI event
|
|
SCLP_CPI_INFO_AVAILABLE
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
RH-Author: Thomas Huth <thuth@redhat.com>
|
|
RH-MergeRequest: 412: Add -rhel9.8.0 and -rhel10.2.0 s390x machine types and enable the CPI feature
|
|
RH-Jira: RHEL-104009 RHEL-105823 RHEL-73008
|
|
RH-Acked-by: Cédric Le Goater <clg@redhat.com>
|
|
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
RH-Commit: [1/3] 24789cc7501d22168819bf459f7d880deba8b403 (thuth/qemu-kvm-cs)
|
|
|
|
JIRA: https://issues.redhat.com/browse/RHEL-73008
|
|
|
|
Add QAPI event SCLP_CPI_INFO_AVAILABLE to notify the availability
|
|
of Control-Program Identification data in QOM.
|
|
|
|
Signed-off-by: Shalini Chellathurai Saroja <shalini@linux.ibm.com>
|
|
Suggested-by: Thomas Huth <thuth@redhat.com>
|
|
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
|
|
Reviewed-by: Thomas Huth <thuth@redhat.com>
|
|
Message-ID: <20251016121708.334133-1-shalini@linux.ibm.com>
|
|
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
|
(cherry picked from commit 0ce63280dc6fe9fce1d89922f2d17dcae77827e6)
|
|
---
|
|
hw/s390x/sclpcpi.c | 4 ++++
|
|
qapi/machine-s390x.json | 21 +++++++++++++++++++++
|
|
2 files changed, 25 insertions(+)
|
|
|
|
diff --git a/hw/s390x/sclpcpi.c b/hw/s390x/sclpcpi.c
|
|
index 7aa039d510..68fc1b809b 100644
|
|
--- a/hw/s390x/sclpcpi.c
|
|
+++ b/hw/s390x/sclpcpi.c
|
|
@@ -54,6 +54,7 @@
|
|
#include "hw/s390x/event-facility.h"
|
|
#include "hw/s390x/ebcdic.h"
|
|
#include "qapi/qapi-visit-machine.h"
|
|
+#include "qapi/qapi-events-machine-s390x.h"
|
|
#include "migration/vmstate.h"
|
|
|
|
typedef struct Data {
|
|
@@ -106,6 +107,9 @@ static int write_event_data(SCLPEvent *event, EventBufferHeader *evt_buf_hdr)
|
|
e->timestamp = qemu_clock_get_ns(QEMU_CLOCK_HOST);
|
|
|
|
cpim->ebh.flags = SCLP_EVENT_BUFFER_ACCEPTED;
|
|
+
|
|
+ qapi_event_send_sclp_cpi_info_available();
|
|
+
|
|
return SCLP_RC_NORMAL_COMPLETION;
|
|
}
|
|
|
|
diff --git a/qapi/machine-s390x.json b/qapi/machine-s390x.json
|
|
index 966dbd61d2..8412668b67 100644
|
|
--- a/qapi/machine-s390x.json
|
|
+++ b/qapi/machine-s390x.json
|
|
@@ -119,3 +119,24 @@
|
|
{ 'command': 'query-s390x-cpu-polarization', 'returns': 'CpuPolarizationInfo',
|
|
'features': [ 'unstable' ]
|
|
}
|
|
+
|
|
+##
|
|
+# @SCLP_CPI_INFO_AVAILABLE:
|
|
+#
|
|
+# Emitted when the Control-Program Identification data is available
|
|
+# in the QOM tree.
|
|
+#
|
|
+# Features:
|
|
+#
|
|
+# @unstable: This event is experimental.
|
|
+#
|
|
+# Since: 10.2
|
|
+#
|
|
+# .. qmp-example::
|
|
+#
|
|
+# <- { "event": "SCLP_CPI_INFO_AVAILABLE",
|
|
+# "timestamp": { "seconds": 1401385907, "microseconds": 422329 } }
|
|
+##
|
|
+{ 'event': 'SCLP_CPI_INFO_AVAILABLE',
|
|
+ 'features': [ 'unstable' ]
|
|
+}
|
|
--
|
|
2.47.3
|
|
|