]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio: check for validity of indirect descriptors
authorYuri Benditovich <yuri.benditovich@daynix.com>
Thu, 15 May 2025 06:32:37 +0000 (09:32 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 1 Jun 2025 10:38:53 +0000 (06:38 -0400)
commitac8fc4ccacd8a77d8d56dc3990bfb221c1f48fcd
treea4a65ccb9b2f7f29ee1a267d5a207d8b66d42e10
parentd2e9b78162e31b1eaf20f3a4f563da82da56908d
virtio: check for validity of indirect descriptors

virtio processes indirect descriptors even if the respected
feature VIRTIO_RING_F_INDIRECT_DESC was not negotiated.
If qemu is used with reduced set of features to emulate the
hardware device that does not support indirect descriptors,
the will probably trigger problematic flows on the hardware
setup but do not reveal the  mistake on qemu.
Add LOG_GUEST_ERROR for such case. This will issue logs with
'-d guest_errors' in the command line

Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Message-Id: <20250515063237.808293-1-yuri.benditovich@daynix.com>
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
hw/virtio/virtio.c