|
From: | Jason Wang |
Subject: | Re: [Qemu-devel] [PATCH] virtio: unbreak virtio-pci with IOMMU after caching ring translations |
Date: | Fri, 3 Mar 2017 17:11:07 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 2017年03月02日 18:30, Paolo Bonzini wrote:
On 02/03/2017 08:47, Jason Wang wrote:Fixes: c611c76417f5 ("virtio: add MemoryListener to cache ring translations") Cc: Paolo Bonzini <address@hidden> Signed-off-by: Jason Wang <address@hidden>This is very ugly. I guess it's better than broken IOMMU ... Paolo?Maybe we can delay the registering of memory listener on bus master enabling or status setting.Can we add a callback to PCIDeviceClass, and invoke it from pci_init_bus_master? Paolo
This looks pci specific, I post a fix that reset the dma_as during status set which can solve this issue too. Please have a look.
Thanks
[Prev in Thread] | Current Thread | [Next in Thread] |