|
|
0727d3 |
From e0e4f01c6f4fb5881960f72ae4e80951b711131e Mon Sep 17 00:00:00 2001
|
|
|
0727d3 |
From: Stefano Garzarella <sgarzare@redhat.com>
|
|
|
0727d3 |
Date: Thu, 24 Mar 2022 16:04:57 +0100
|
|
|
0727d3 |
Subject: [PATCH 1/5] RHEL: disable "seqpacket" for "vhost-vsock-device" in
|
|
|
0727d3 |
rhel8.6.0
|
|
|
0727d3 |
MIME-Version: 1.0
|
|
|
0727d3 |
Content-Type: text/plain; charset=UTF-8
|
|
|
0727d3 |
Content-Transfer-Encoding: 8bit
|
|
|
0727d3 |
|
|
|
0727d3 |
RH-Author: Stefano Garzarella <sgarzare@redhat.com>
|
|
|
0727d3 |
RH-MergeRequest: 136: RHEL: disable "seqpacket" for "vhost-vsock-device" in rhel8.6.0 [rhel-8.7.0]
|
|
|
0727d3 |
RH-Commit: [1/1] d82ea09e123679521503689f7d9af1c03dc71bfc
|
|
|
0727d3 |
RH-Bugzilla: 2068202
|
|
|
0727d3 |
RH-Acked-by: Jason Wang <None>
|
|
|
0727d3 |
RH-Acked-by: Eugenio PĂ©rez <None>
|
|
|
0727d3 |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
0727d3 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
0727d3 |
|
|
|
0727d3 |
vhost-vsock device in RHEL 8 kernels doesn't support seqpacket.
|
|
|
0727d3 |
To avoid problems when migrating a VM from RHEL 9 host, we need to
|
|
|
0727d3 |
disable it in rhel8-* machine types.
|
|
|
0727d3 |
|
|
|
0727d3 |
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
|
|
|
0727d3 |
---
|
|
|
0727d3 |
hw/core/machine.c | 10 ++++++++++
|
|
|
0727d3 |
hw/i386/pc_piix.c | 2 ++
|
|
|
0727d3 |
hw/i386/pc_q35.c | 2 ++
|
|
|
0727d3 |
hw/s390x/s390-virtio-ccw.c | 1 +
|
|
|
0727d3 |
include/hw/boards.h | 3 +++
|
|
|
0727d3 |
5 files changed, 18 insertions(+)
|
|
|
0727d3 |
|
|
|
0727d3 |
diff --git a/hw/core/machine.c b/hw/core/machine.c
|
|
|
0727d3 |
index 024b025fc2..76fcabec7a 100644
|
|
|
0727d3 |
--- a/hw/core/machine.c
|
|
|
0727d3 |
+++ b/hw/core/machine.c
|
|
|
0727d3 |
@@ -37,6 +37,16 @@
|
|
|
0727d3 |
#include "hw/virtio/virtio.h"
|
|
|
0727d3 |
#include "hw/virtio/virtio-pci.h"
|
|
|
0727d3 |
|
|
|
0727d3 |
+GlobalProperty hw_compat_rhel_8_6[] = {
|
|
|
0727d3 |
+ /* hw_compat_rhel_8_6 bz 2068202 */
|
|
|
0727d3 |
+ /*
|
|
|
0727d3 |
+ * vhost-vsock device in RHEL 8 kernels doesn't support seqpacket, so
|
|
|
0727d3 |
+ * we need do disable it downstream on the latest hw_compat_rhel_8.
|
|
|
0727d3 |
+ */
|
|
|
0727d3 |
+ { "vhost-vsock-device", "seqpacket", "off" },
|
|
|
0727d3 |
+};
|
|
|
0727d3 |
+const size_t hw_compat_rhel_8_6_len = G_N_ELEMENTS(hw_compat_rhel_8_6);
|
|
|
0727d3 |
+
|
|
|
0727d3 |
/*
|
|
|
0727d3 |
* Mostly the same as hw_compat_6_0 and hw_compat_6_1
|
|
|
0727d3 |
*/
|
|
|
0727d3 |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
|
|
|
0727d3 |
index f03a8f0db8..ab6d03e07a 100644
|
|
|
0727d3 |
--- a/hw/i386/pc_piix.c
|
|
|
0727d3 |
+++ b/hw/i386/pc_piix.c
|
|
|
0727d3 |
@@ -998,6 +998,8 @@ static void pc_machine_rhel760_options(MachineClass *m)
|
|
|
0727d3 |
pcmc->kvmclock_create_always = false;
|
|
|
0727d3 |
/* From pc_i440fx_5_1_machine_options() */
|
|
|
0727d3 |
pcmc->pci_root_uid = 1;
|
|
|
0727d3 |
+ compat_props_add(m->compat_props, hw_compat_rhel_8_6,
|
|
|
0727d3 |
+ hw_compat_rhel_8_6_len);
|
|
|
0727d3 |
compat_props_add(m->compat_props, hw_compat_rhel_8_5,
|
|
|
0727d3 |
hw_compat_rhel_8_5_len);
|
|
|
0727d3 |
compat_props_add(m->compat_props, pc_rhel_8_5_compat,
|
|
|
0727d3 |
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
|
|
|
0727d3 |
index 5559261d9e..882fe7a68d 100644
|
|
|
0727d3 |
--- a/hw/i386/pc_q35.c
|
|
|
0727d3 |
+++ b/hw/i386/pc_q35.c
|
|
|
0727d3 |
@@ -658,6 +658,8 @@ static void pc_q35_machine_rhel860_options(MachineClass *m)
|
|
|
0727d3 |
m->desc = "RHEL-8.6.0 PC (Q35 + ICH9, 2009)";
|
|
|
0727d3 |
pcmc->smbios_stream_product = "RHEL-AV";
|
|
|
0727d3 |
pcmc->smbios_stream_version = "8.6.0";
|
|
|
0727d3 |
+ compat_props_add(m->compat_props, hw_compat_rhel_8_6,
|
|
|
0727d3 |
+ hw_compat_rhel_8_6_len);
|
|
|
0727d3 |
}
|
|
|
0727d3 |
|
|
|
0727d3 |
DEFINE_PC_MACHINE(q35_rhel860, "pc-q35-rhel8.6.0", pc_q35_init_rhel860,
|
|
|
0727d3 |
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
|
|
|
0727d3 |
index 9795eb9406..bec270598b 100644
|
|
|
0727d3 |
--- a/hw/s390x/s390-virtio-ccw.c
|
|
|
0727d3 |
+++ b/hw/s390x/s390-virtio-ccw.c
|
|
|
0727d3 |
@@ -1109,6 +1109,7 @@ static void ccw_machine_rhel860_instance_options(MachineState *machine)
|
|
|
0727d3 |
|
|
|
0727d3 |
static void ccw_machine_rhel860_class_options(MachineClass *mc)
|
|
|
0727d3 |
{
|
|
|
0727d3 |
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_6, hw_compat_rhel_8_6_len);
|
|
|
0727d3 |
}
|
|
|
0727d3 |
DEFINE_CCW_MACHINE(rhel860, "rhel8.6.0", true);
|
|
|
0727d3 |
|
|
|
0727d3 |
diff --git a/include/hw/boards.h b/include/hw/boards.h
|
|
|
0727d3 |
index 04e8759815..4ddb798144 100644
|
|
|
0727d3 |
--- a/include/hw/boards.h
|
|
|
0727d3 |
+++ b/include/hw/boards.h
|
|
|
0727d3 |
@@ -443,6 +443,9 @@ extern const size_t hw_compat_2_2_len;
|
|
|
0727d3 |
extern GlobalProperty hw_compat_2_1[];
|
|
|
0727d3 |
extern const size_t hw_compat_2_1_len;
|
|
|
0727d3 |
|
|
|
0727d3 |
+extern GlobalProperty hw_compat_rhel_8_6[];
|
|
|
0727d3 |
+extern const size_t hw_compat_rhel_8_6_len;
|
|
|
0727d3 |
+
|
|
|
0727d3 |
extern GlobalProperty hw_compat_rhel_8_5[];
|
|
|
0727d3 |
extern const size_t hw_compat_rhel_8_5_len;
|
|
|
0727d3 |
|
|
|
0727d3 |
--
|
|
|
0727d3 |
2.27.0
|
|
|
0727d3 |
|