mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
vdpa: Never set log_base addr if SVQ is enabled
Setting the log address would make the device start reporting invalid dirty memory because the SVQ vrings are located in qemu's memory. Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
6d0b222666
commit
773ebc952e
1 changed files with 2 additions and 1 deletions
|
@ -1090,7 +1090,8 @@ static int vhost_vdpa_dev_start(struct vhost_dev *dev, bool started)
|
||||||
static int vhost_vdpa_set_log_base(struct vhost_dev *dev, uint64_t base,
|
static int vhost_vdpa_set_log_base(struct vhost_dev *dev, uint64_t base,
|
||||||
struct vhost_log *log)
|
struct vhost_log *log)
|
||||||
{
|
{
|
||||||
if (vhost_vdpa_one_time_request(dev)) {
|
struct vhost_vdpa *v = dev->opaque;
|
||||||
|
if (v->shadow_vqs_enabled || vhost_vdpa_one_time_request(dev)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue