[PATCH v2 2/3] KVM: arm64: vgic-its: Clear dte when mapd unmaps a device
Zenghui Yu
yuzenghui at huawei.com
Wed Jul 10 01:54:23 PDT 2024
On 2024/7/4 22:23, Kunkun Jiang wrote:
> vgic_its_save_device_tables will traverse its->device_list to
> save dte for each device. vgic_its_restore_device_tables will
> traverse each entry of device table and check if it is valid.
> Restore if valid.
>
> But when mapd unmaps a devices, we do not invalidate the
> corresponding dte. In the scenario of continuous save
> and restore, there may be a situation where a device's dte
> is not saved but is restored. This is unreasonable and may
> cause restore to fail. This patch clears the corresponding
> dte when mapd unmaps a device.
>
> Co-developed-by: Shusen Li <lishusen2 at huawei.com>
> Singed-off-by: Shusen Li <lishusen2 at huawei.com>
^^^^^^
Please do fix the tag. checkpatch.pl should have complained about it
already if you run it.
Zenghui
More information about the linux-arm-kernel
mailing list