Revision cd461c8445392d02c268d79f7ed68387b440c4b3 authored by lyx634449800 on 08 April 2024, 02:00:03 UTC, committed by Michael Tokarev on 09 April 2024, 17:42:59 UTC
The set_config callback function vhost_vdpa_device_get_config in
vdpa-dev does not fetch the current device status from the hardware
device, causing the guest os to not receive the latest device status
information.

The hardware updates the config status of the vdpa device and then
notifies the os. The guest os receives an interrupt notification,
triggering a get_config access in the kernel, which then enters qemu
internally. Ultimately, the vhost_vdpa_device_get_config function of
vdpa-dev is called

One scenario encountered is when the device needs to bring down the
vdpa net device. After modifying the status field of virtio_net_config
in the hardware, it sends an interrupt notification. However, the guest
os always receives the STATUS field as VIRTIO_NET_S_LINK_UP.

Signed-off-by: Yuxue Liu <yuxue.liu@jaguarmicro.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20240408020003.1979-1-yuxue.liu@jaguarmicro.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 6ae72f609a21cfc56bf655cd4bcded5d07691ce7)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
1 parent b57b102
Raw File
.git-blame-ignore-revs
#
# List of code-formatting clean ups the git blame can ignore
#
#   git blame --ignore-revs-file .git-blame-ignore-revs
#
# or
#
#   git config blame.ignoreRevsFile .git-blame-ignore-revs
#

# gdbstub: clean-up indents
ad9e4585b3c7425759d3eea697afbca71d2c2082

# e1000e: fix code style
0eadd56bf53ab196a16d492d7dd31c62e1c24c32

# target/riscv: coding style fixes
8c7feddddd9218b407792120bcfda0347ed16205

# replace TABs with spaces
48805df9c22a0700fba4b3b548fafaa21726ca68
back to top