Re: [Qemu-devel] [RFC PATCH 6/8] intel_iommu: support device iotlb descriptor

2016-03-29 Thread Peter Xu
On Wed, Mar 30, 2016 at 01:08:45PM +0800, Jason Wang wrote: [...] > >> +} else { > >> +sz = VTD_PAGE_SIZE; > >> +} > >> + > >> +entry.target_as = &vtd_dev_as->as; > >> +entry.addr_mask = sz - 1; > >> +entry.iova = addr; > >> +memory_region_notify_iommu(entry.target

Re: [Qemu-devel] [RFC PATCH 6/8] intel_iommu: support device iotlb descriptor

2016-03-29 Thread Jason Wang
On 03/28/2016 11:37 AM, Peter Xu wrote: > On Fri, Mar 25, 2016 at 10:13:27AM +0800, Jason Wang wrote: >> This patch enables device IOTLB support for intel iommu. The major >> work is to implement QI device IOTLB descriptor processing and notify >> the device through iommu notifier. >> >> Cc: Paol

Re: [Qemu-devel] [RFC PATCH 6/8] intel_iommu: support device iotlb descriptor

2016-03-27 Thread Peter Xu
On Fri, Mar 25, 2016 at 10:13:27AM +0800, Jason Wang wrote: > This patch enables device IOTLB support for intel iommu. The major > work is to implement QI device IOTLB descriptor processing and notify > the device through iommu notifier. > > Cc: Paolo Bonzini > Cc: Richard Henderson > Cc: Eduard