Re: [Qemu-devel] [PATCH V3 05/10] intel_iommu: support device iotlb descriptor

2016-11-08 Thread Michael S. Tsirkin
On Tue, Nov 08, 2016 at 02:54:19PM +0800, Jason Wang wrote: > > > On 2016年11月08日 07:35, Peter Xu wrote: > > On Mon, Nov 07, 2016 at 03:09:50PM +0800, Jason Wang wrote: > > > > [...] > > > > > +static bool vtd_process_device_iotlb_desc(IntelIOMMUState *s, > > > +

Re: [Qemu-devel] [PATCH V3 05/10] intel_iommu: support device iotlb descriptor

2016-11-07 Thread Jason Wang
On 2016年11月08日 07:35, Peter Xu wrote: On Mon, Nov 07, 2016 at 03:09:50PM +0800, Jason Wang wrote: [...] +static bool vtd_process_device_iotlb_desc(IntelIOMMUState *s, + VTDInvDesc *inv_desc) +{ +VTDAddressSpace *vtd_dev_as; +IOMMUTLBEntry entr

Re: [Qemu-devel] [PATCH V3 05/10] intel_iommu: support device iotlb descriptor

2016-11-07 Thread Peter Xu
On Mon, Nov 07, 2016 at 03:09:50PM +0800, Jason Wang wrote: [...] > +static bool vtd_process_device_iotlb_desc(IntelIOMMUState *s, > + VTDInvDesc *inv_desc) > +{ > +VTDAddressSpace *vtd_dev_as; > +IOMMUTLBEntry entry; Since "entry" is allocated on

[Qemu-devel] [PATCH V3 05/10] intel_iommu: support device iotlb descriptor

2016-11-06 Thread Jason Wang
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: Eduardo Habkost Cc: Michael S. Tsirkin Signed-off-by: Jason Wang --- hw/i386