Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: arm64: vgic-its: Clear DTE when MAPD unmaps a device
commit e964912 upstream. 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 device, it does not invalidate the corresponding DTE. In the scenario of continuous saves and restores, 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. Cc: [email protected] Fixes: 57a9a11 ("KVM: arm64: vgic-its: Device table save/restore") Co-developed-by: Shusen Li <[email protected]> Signed-off-by: Shusen Li <[email protected]> Signed-off-by: Kunkun Jiang <[email protected]> [Jing: Update with entry write helper] Signed-off-by: Jing Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information