mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-18 10:35:23 +00:00
vfio: fix for bug as below:
cloud-hypervisor: 763.978581807s: ERROR:pci/src/vfio.rs:651 -- failed to remove all guest memory regions from iommu table when poweroff a vm with vfio device, clh will finally remove all guest memory region from iommu table with the method unset_dma_map, not method setup_dma_map. Signed-off-by: LiYa'nan <oliverliyn@gmail.com>
This commit is contained in:
parent
e080c6e5b0
commit
acc234088f
@ -645,7 +645,7 @@ impl Drop for VfioPciDevice {
|
|||||||
|
|
||||||
if self
|
if self
|
||||||
.device
|
.device
|
||||||
.setup_dma_map(self.mem.memory().deref())
|
.unset_dma_map(self.mem.memory().deref())
|
||||||
.is_err()
|
.is_err()
|
||||||
{
|
{
|
||||||
error!("failed to remove all guest memory regions from iommu table");
|
error!("failed to remove all guest memory regions from iommu table");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user