From 4eccda49693a2c75f906dffda47abbeb4197d12e Mon Sep 17 00:00:00 2001 From: Sandeep Gundlupet Raju Date: Fri, 19 Jan 2024 13:41:55 -0700 Subject: qemu: Rename qemu-xen to qemu-xen_7.1 Rename qemu-xen to qemu-xen_7.1 inclusion file and update the same in qemu-xilinx_2023 qemu_7.1 recipes. Signed-off-by: Sandeep Gundlupet Raju Signed-off-by: Mark Hatle --- ...plugging-emulated-devices-skip-virtio-dev.patch | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-7.1/0001-xen-when-unplugging-emulated-devices-skip-virtio-dev.patch (limited to 'meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-7.1/0001-xen-when-unplugging-emulated-devices-skip-virtio-dev.patch') diff --git a/meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-7.1/0001-xen-when-unplugging-emulated-devices-skip-virtio-dev.patch b/meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-7.1/0001-xen-when-unplugging-emulated-devices-skip-virtio-dev.patch new file mode 100644 index 00000000..71dfb3be --- /dev/null +++ b/meta-xilinx-virtualization/recipes-devtools/qemu/qemu-xilinx-7.1/0001-xen-when-unplugging-emulated-devices-skip-virtio-dev.patch @@ -0,0 +1,51 @@ +From e2b85efc82bc26a838f666c8282528ee38cf6377 Mon Sep 17 00:00:00 2001 +From: Juergen Gross +Date: Tue, 16 Mar 2021 14:00:33 +0100 +Subject: [PATCH 1/8] xen: when unplugging emulated devices skip virtio devices + +Virtio devices should never be unplugged at boot time, as they are +similar to pci passthrough devices. + +Signed-off-by: Juergen Gross +Acked-by: Stefano Stabellini +--- + hw/i386/xen/xen_platform.c | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/hw/i386/xen/xen_platform.c b/hw/i386/xen/xen_platform.c +index a64265cca0..39bbb12675 100644 +--- a/hw/i386/xen/xen_platform.c ++++ b/hw/i386/xen/xen_platform.c +@@ -30,6 +30,7 @@ + #include "hw/pci/pci.h" + #include "hw/xen/xen_common.h" + #include "migration/vmstate.h" ++#include "hw/virtio/virtio-bus.h" + #include "hw/xen/xen-legacy-backend.h" + #include "trace.h" + #include "sysemu/xen.h" +@@ -114,7 +115,8 @@ static void unplug_nic(PCIBus *b, PCIDevice *d, void *o) + /* We have to ignore passthrough devices */ + if (pci_get_word(d->config + PCI_CLASS_DEVICE) == + PCI_CLASS_NETWORK_ETHERNET +- && strcmp(d->name, "xen-pci-passthrough") != 0) { ++ && strcmp(d->name, "xen-pci-passthrough") != 0 ++ && !qdev_get_child_bus(&d->qdev, TYPE_VIRTIO_BUS)) { + object_unparent(OBJECT(d)); + } + } +@@ -191,6 +193,11 @@ static void unplug_disks(PCIBus *b, PCIDevice *d, void *opaque) + return; + } + ++ /* Ignore virtio devices */ ++ if (qdev_get_child_bus(&d->qdev, TYPE_VIRTIO_BUS)) { ++ return; ++ } ++ + switch (pci_get_word(d->config + PCI_CLASS_DEVICE)) { + case PCI_CLASS_STORAGE_IDE: + pci_xen_ide_unplug(DEVICE(d), aux); +-- +2.25.1 + -- cgit v1.2.3-54-g00ecf