[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] intel-iommu: update root_scalable before switching as du
From: |
Peter Xu |
Subject: |
Re: [PATCH 1/2] intel-iommu: update root_scalable before switching as during post_load |
Date: |
Fri, 18 Mar 2022 15:29:51 +0800 |
On Thu, Mar 17, 2022 at 04:05:21PM +0800, Jason Wang wrote:
> 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>
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Peter Xu