summary refs log tree commit diff stats
path: root/hw/virtio/virtio-net-pci.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2022-03-17 16:05:21 +0800
committerMichael S. Tsirkin <mst@redhat.com>2022-05-16 04:38:40 -0400
commitceb058955ab529937498acfd3c9259a2a64b2d4e (patch)
tree4544ec4a5208a639b4bb637e875307c57df1e6bf /hw/virtio/virtio-net-pci.c
parentea97a1bde7b7940bb2100b645b6f1abc7330e248 (diff)
downloadfocaccia-qemu-ceb058955ab529937498acfd3c9259a2a64b2d4e.tar.gz
focaccia-qemu-ceb058955ab529937498acfd3c9259a2a64b2d4e.zip
intel-iommu: update root_scalable before switching as during post_load
We need check whether passthrough is enabled during
vtd_switch_address_space() by checking the context entries. This
requires the root_scalable to be set correctly otherwise we may try to
check legacy rsvd bits instead of scalable ones.

Fixing this by updating root_scalable before switching the address
spaces during post_load.

Fixes: fb43cf739e ("intel_iommu: scalable mode emulation")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220317080522.14621-1-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'hw/virtio/virtio-net-pci.c')
0 files changed, 0 insertions, 0 deletions