eb86ba78e5
- Fix stable issues found in upstream: hmp-Fix-loadvm-to-resume-the-VM-on-succe.patch hw-block-nvme-align-with-existing-style.patch hw-nvme-fix-missing-check-for-PMR-capabi.patch hw-nvme-fix-pin-based-interrupt-behavior.patch linux-user-aarch64-Enable-hwcap-for-RND-.patch qemu-config-load-modules-when-instantiat.patch qemu-config-parse-configuration-files-to.patch qemu-config-use-qemu_opts_from_qdict.patch runstate-Initialize-Error-to-NULL.patch target-i386-Exit-tb-after-wrmsr.patch tcg-Allocate-sufficient-storage-in-temp_.patch tcg-sparc-Fix-temp_allocate_frame-vs-spa.patch vhost-vdpa-don-t-initialize-backend_feat.patch vl-allow-not-specifying-size-in-m-when-u.patch vl-Fix-an-assert-failure-in-error-path.patch vl-plug-object-back-into-readconfig.patch vl-plumb-keyval-based-options-into-readc.patch x86-acpi-use-offset-instead-of-pointer-w.patch - Update qemu-supportconfig plugin - Fix an update-alternative warning when removing qemu-skiboot package bsc#1178678 OBS-URL: https://build.opensuse.org/request/show/903710 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=660
47 lines
1.7 KiB
Diff
47 lines
1.7 KiB
Diff
From: Jason Wang <jasowang@redhat.com>
|
|
Date: Wed, 2 Jun 2021 11:31:26 +0800
|
|
Subject: vhost-vdpa: don't initialize backend_features
|
|
|
|
Git-commit: c33f23a419f95da16ab4faaf08be635c89b96ff0
|
|
|
|
We used to initialize backend_features during vhost_vdpa_init()
|
|
regardless whether or not it was supported by vhost. This will lead
|
|
the unsupported features like VIRTIO_F_IN_ORDER to be included and set
|
|
to the vhost-vdpa during vhost_dev_start. Because the
|
|
VIRTIO_F_IN_ORDER is not supported by vhost-vdpa so it won't be
|
|
advertised to guest which will break the datapath.
|
|
|
|
Fix this by not initializing the backend_features, so the
|
|
acked_features could be built only from guest features via
|
|
vhost_net_ack_features().
|
|
|
|
Fixes: 108a64818e69b ("vhost-vdpa: introduce vhost-vdpa backend")
|
|
Cc: qemu-stable@nongnu.org
|
|
Cc: Gautam Dawar <gdawar@xilinx.com>
|
|
Signed-off-by: Jason Wang <jasowang@redhat.com>
|
|
Signed-off-by: Jose R. Ziviani <jziviani@suse.de>
|
|
---
|
|
hw/virtio/vhost-vdpa.c | 3 ---
|
|
1 file changed, 3 deletions(-)
|
|
|
|
diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c
|
|
index 01d2101d0976fdd8e407a32ec9db..5fe43a4eb5c48148085b62901ff6 100644
|
|
--- a/hw/virtio/vhost-vdpa.c
|
|
+++ b/hw/virtio/vhost-vdpa.c
|
|
@@ -275,15 +275,12 @@ static void vhost_vdpa_add_status(struct vhost_dev *dev, uint8_t status)
|
|
static int vhost_vdpa_init(struct vhost_dev *dev, void *opaque)
|
|
{
|
|
struct vhost_vdpa *v;
|
|
- uint64_t features;
|
|
assert(dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_VDPA);
|
|
trace_vhost_vdpa_init(dev, opaque);
|
|
|
|
v = opaque;
|
|
v->dev = dev;
|
|
dev->opaque = opaque ;
|
|
- vhost_vdpa_call(dev, VHOST_GET_FEATURES, &features);
|
|
- dev->backend_features = features;
|
|
v->listener = vhost_vdpa_memory_listener;
|
|
v->msg_type = VHOST_IOTLB_MSG_V2;
|
|
|