Jason Wang ceb058955a 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>
2022-05-16 04:38:40 -04:00
..
2022-05-02 17:03:02 +02:00
2022-05-07 07:46:59 +02:00
2022-05-03 15:52:33 +04:00
2022-05-08 18:52:37 +01:00
2022-04-26 12:25:14 +02:00
2022-04-29 10:48:48 +10:00
2022-05-02 17:03:03 +02:00
2022-05-02 17:03:03 +02:00
2022-05-02 17:03:03 +02:00