aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/altera-fpga2sdram.c
diff options
context:
space:
mode:
authorSi-Wei Liu <[email protected]>2023-10-21 02:25:19 -0700
committerMichael S. Tsirkin <[email protected]>2023-11-01 09:20:00 -0400
commit86f6c224c97911b4392cb7b402e6a4ed323a449e (patch)
tree8e390d759719a35753e486accf0480511e08eb80 /drivers/fpga/altera-fpga2sdram.c
parent2eacf4b5e3ebe771f0fca0c8913c5a10a1953b72 (diff)
vdpa_sim: implement .reset_map support
In order to reduce excessive memory mapping cost in live migration and VM reboot, it is desirable to decouple the vhost-vdpa IOTLB abstraction from the virtio device life cycle, i.e. mappings can be kept intact across virtio device reset. Leverage the .reset_map callback, which is meant to destroy the iotlb on the given ASID and recreate the 1:1 passthrough/identity mapping. To be consistent, the mapping on device creation is initiailized to passthrough/identity with PA 1:1 mapped as IOVA. With this the device .reset op doesn't have to maintain and clean up memory mappings by itself. Additionally, implement .compat_reset to cater for older userspace, which may wish to see mapping to be cleared during reset. Signed-off-by: Si-Wei Liu <[email protected]> Tested-by: Stefano Garzarella <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Tested-by: Lei Yang <[email protected]>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions