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

2019-03-13 Thread Leo Yan
Hi Eric & all, On Mon, Mar 11, 2019 at 10:35:01PM +0800, Leo Yan wrote: [...] > So now I made some progress and can see the networking card is > pass-through to guest OS, though the networking card reports errors > now. Below is detailed steps and info: > > - Bind devices in the same IOMMU gro

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

2019-03-13 Thread Zheng Xiang
On 2019/3/13 2:18, Marc Zyngier wrote: > Hi Zheng, > > On 12/03/2019 15:30, Zheng Xiang wrote: >> Hi Marc, >> >> On 2019/3/12 19:32, Marc Zyngier wrote: >>> Hi Zheng, >>> >>> On 11/03/2019 16:31, Zheng Xiang wrote: Hi all, While a page is merged into a transparent huge page, KVM

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

2019-03-13 Thread Leo Yan
On Wed, Mar 13, 2019 at 04:00:48PM +0800, Leo Yan wrote: [...] > - The second question is for GICv2m. If I understand correctly, when > passthrough PCI-e device to guest OS, in the guest OS we should > create below data path for PCI-e devices: >

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

2019-03-13 Thread Auger Eric
Hi Leo, + Robin On 3/13/19 9:00 AM, Leo Yan wrote: > Hi Eric & all, > > On Mon, Mar 11, 2019 at 10:35:01PM +0800, Leo Yan wrote: > > [...] > >> So now I made some progress and can see the networking card is >> pass-through to guest OS, though the networking card reports errors >> now. Below i

Re: [RFC] arm/cpu: fix soft lockup panic after resuming from stop

2019-03-13 Thread Steven Price
On 12/03/2019 14:12, Marc Zyngier wrote: > Hi Peter, > > On 12/03/2019 10:08, Peter Maydell wrote: >> On Tue, 12 Mar 2019 at 06:10, Heyi Guo wrote: >>> >>> When we stop a VM for more than 30 seconds and then resume it, by qemu >>> monitor command "stop" and "cont", Linux on VM will complain of "s

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

2019-03-13 Thread Auger Eric
Hi Leo, On 3/13/19 11:01 AM, Leo Yan wrote: > On Wed, Mar 13, 2019 at 04:00:48PM +0800, Leo Yan wrote: > > [...] > >> - The second question is for GICv2m. If I understand correctly, when >> passthrough PCI-e device to guest OS, in the guest OS we should >> create below data path for PCI-e d

Re: Re: [RFC] arm/cpu: fix soft lockup panic after resuming from stop

2019-03-13 Thread Steven Price
On 13/03/2019 01:57, Heyi Guo wrote: > Dear all, > > Really appreciate your comments and information. For "Live Physical > Time", is there any document to tell the whole story? And may I know the > timeline to make it happen? The documentation is available here: https://developer.arm.com/docs/den

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

2019-03-13 Thread Auger Eric
Hi, On 3/13/19 11:01 AM, Auger Eric wrote: > Hi Leo, > > + Robin > > On 3/13/19 9:00 AM, Leo Yan wrote: >> Hi Eric & all, >> >> On Mon, Mar 11, 2019 at 10:35:01PM +0800, Leo Yan wrote: >> >> [...] >> >>> So now I made some progress and can see the networking card is >>> pass-through to guest OS,

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

2019-03-13 Thread Leo Yan
Hi Eric, On Wed, Mar 13, 2019 at 11:01:33AM +0100, Auger Eric wrote: [...] > > I want to confirm, if this is the recommended mode for > > passthrough PCI-e device to use msi both in host OS and geust OS? > > Or it's will be fine for host OS using msi and guest OS using > > INTx mode? >

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

2019-03-13 Thread Leo Yan
On Wed, Mar 13, 2019 at 11:24:25AM +0100, Auger Eric wrote: [...] > >> I am stucking at the network card cannot receive interrupts in guest > >> OS. So took time to look into the code and added some printed info to > >> help me to understand the detailed flow, below are two main questions > >> I

Re: [PATCH] KVM: arm/arm64: Set ICH_HCR_EN in guest anyway when using gicv4

2019-03-13 Thread Marc Zyngier
On 12/03/2019 15:48, Marc Zyngier wrote: > Nianyao, > > Please do not send patches as HTML. Or any email as HTML. Please make > sure that you only send plain text emails on any mailing list (see point > #6 in Documentation/process/submitting-patches.rst). > > On 12/03/2019 12:22, Tangnianyao (ICT

Re: [RFC] arm/cpu: fix soft lockup panic after resuming from stop

2019-03-13 Thread Heyi Guo
Dear all, Really appreciate your comments and information. For "Live Physical Time", is there any document to tell the whole story? And may I know the timeline to make it happen? Thanks, Heyi On 2019/3/12 22:12, Marc Zyngier wrote: Hi Peter, On 12/03/2019 10:08, Peter Maydell wrote: On Tu

RE: [PATCH] KVM: arm/arm64: Set ICH_HCR_EN in guest anyway when using gicv4

2019-03-13 Thread Shameerali Kolothum Thodi
Hi Marc, > -Original Message- > From: kvmarm-boun...@lists.cs.columbia.edu > [mailto:kvmarm-boun...@lists.cs.columbia.edu] On Behalf Of Marc Zyngier > Sent: 13 March 2019 11:59 > To: Tangnianyao (ICT) ; Christoffer Dall > ; james.mo...@arm.com; julien.thie...@arm.com; > suzuki.poul...@arm.

Re: [PATCH] KVM: arm/arm64: Set ICH_HCR_EN in guest anyway when using gicv4

2019-03-13 Thread Marc Zyngier
On 13/03/2019 15:59, Shameerali Kolothum Thodi wrote: Hi Shameer, >> Can you please give the following patch a go? I can't test it, but hopefully >> you can. > > Thanks for your quick response. I just did a quick test on one of our > platforms > with VHE+GICv4 and it seems to fix the performanc