Re: Question: KVM: Failed to bind vfio with PCI-e / SMMU on Juno-r2

2019-03-18 Thread Leo Yan
Hi Robin, On Mon, Mar 18, 2019 at 12:25:33PM +, Robin Murphy wrote: [...] > > diff --git a/arm/include/arm-common/kvm-arch.h > > b/arm/include/arm-common/kvm-arch.h > > index b9d486d..43f78b1 100644 > > --- a/arm/include/arm-common/kvm-arch.h > > +++ b/arm/include/arm-common/kvm-arch.h > >

Re: [RFC PATCH] KVM: arm/arm64: Enable direct irqfd MSI injection

2019-03-18 Thread Zenghui Yu
Hi all, On 2019/3/18 3:35, Marc Zyngier wrote: On Sun, 17 Mar 2019 14:36:13 +, Zenghui Yu wrote: Currently, IRQFD on arm still uses the deferred workqueue mechanism to inject interrupts into guest, which will likely lead to a busy context-switching from/to the kworker thread. This

Re: [RFC PATCH] KVM: arm/arm64: Enable direct irqfd MSI injection

2019-03-18 Thread Raslan, KarimAllah
On Sun, 2019-03-17 at 14:36 +, Zenghui Yu wrote: > Currently, IRQFD on arm still uses the deferred workqueue mechanism > to inject interrupts into guest, which will likely lead to a busy > context-switching from/to the kworker thread. This overhead is for > no purpose (only in my view ...) and

Re: [RFC] Question about TLB flush while set Stage-2 huge pages

2019-03-18 Thread Suzuki K Poulose
Hi ! On Sun, Mar 17, 2019 at 09:34:11PM +0800, Zenghui Yu wrote: > Hi Suzuki, > > On 2019/3/15 22:56, Suzuki K Poulose wrote: > >Hi Zhengui, > > s/Zhengui/Zheng/ > > (I think you must wanted to say "Hi" to Zheng :-) ) > Sorry about that. > > I have looked into your patch and the kernel log,

Re: [RFC PATCH] KVM: arm/arm64: Enable direct irqfd MSI injection

2019-03-18 Thread Marc Zyngier
On Sun, 17 Mar 2019 19:35:48 + Marc Zyngier wrote: [...] > A first approach would be to keep a small cache of the last few > successful translations for this ITS, cache that could be looked-up by > holding a spinlock instead. A hit in this cache could directly be > injected. Any command

Re: [PATCH v5 05/22] iommu: Introduce cache_invalidate API

2019-03-18 Thread Auger Eric
Hi Jean, On 3/18/19 12:01 PM, Jean-Philippe Brucker wrote: > On 17/03/2019 16:43, Auger Eric wrote: diff --git a/include/uapi/linux/iommu.h b/include/uapi/linux/iommu.h index 532a64075f23..e4c6a447e85a 100644 --- a/include/uapi/linux/iommu.h +++ b/include/uapi/linux/iommu.h

Re: Question: KVM: Failed to bind vfio with PCI-e / SMMU on Juno-r2

2019-03-18 Thread Robin Murphy
On 16/03/2019 04:56, Leo Yan wrote: Hi Robin, On Fri, Mar 15, 2019 at 12:54:10PM +, Robin Murphy wrote: Hi Leo, Sorry for the delay - I'm on holiday this week, but since I've made the mistake of glancing at my inbox I should probably save you from wasting any more time... Sorry for

Re: [PATCH v5 05/22] iommu: Introduce cache_invalidate API

2019-03-18 Thread Jean-Philippe Brucker
On 17/03/2019 16:43, Auger Eric wrote: >>> diff --git a/include/uapi/linux/iommu.h b/include/uapi/linux/iommu.h >>> index 532a64075f23..e4c6a447e85a 100644 >>> --- a/include/uapi/linux/iommu.h >>> +++ b/include/uapi/linux/iommu.h >>> @@ -159,4 +159,75 @@ struct iommu_pasid_table_config { >>>