[PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-23 Thread peng.hao2
>> >Hi, >> > >> >On Wed, Nov 21, 2018 at 04:56:54PM +0800, peng.h...@zte.com.cn wrote: >> >> >On 19/11/2018 09:10, Mark Rutland wrote: >> >> >> On Sat, Nov 17, 2018 at 10:58:37AM +0800, peng.h...@zte.com.cn wrote: >> >> On 16/11/18 00:23, peng.h...@zte.com.cn wrote: >> >> >> Hi, >> >>

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-23 Thread Christoffer Dall
On Fri, Nov 23, 2018 at 02:01:56PM +0800, peng.h...@zte.com.cn wrote: > >Hi, > > > >On Wed, Nov 21, 2018 at 04:56:54PM +0800, peng.h...@zte.com.cn wrote: > >> >On 19/11/2018 09:10, Mark Rutland wrote: > >> >> On Sat, Nov 17, 2018 at 10:58:37AM +0800, peng.h...@zte.com.cn wrote: > >> On

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-22 Thread peng.hao2
>Hi, > >On Wed, Nov 21, 2018 at 04:56:54PM +0800, peng.h...@zte.com.cn wrote: >> >On 19/11/2018 09:10, Mark Rutland wrote: >> >> On Sat, Nov 17, 2018 at 10:58:37AM +0800, peng.h...@zte.com.cn wrote: >> On 16/11/18 00:23, peng.h...@zte.com.cn wrote: >> >> Hi, >> >>> When virtual

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-22 Thread Christoffer Dall
On Wed, Nov 21, 2018 at 03:53:03PM +, Julien Thierry wrote: > > > On 21/11/18 15:24, Christoffer Dall wrote: > >On Wed, Nov 21, 2018 at 12:17:45PM +, Julien Thierry wrote: > >> > >> > >>On 21/11/18 11:06, Christoffer Dall wrote: > >>>Hi, > >>> > >>>On Wed, Nov 21, 2018 at 04:56:54PM

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-21 Thread Julien Thierry
On 21/11/18 15:24, Christoffer Dall wrote: On Wed, Nov 21, 2018 at 12:17:45PM +, Julien Thierry wrote: On 21/11/18 11:06, Christoffer Dall wrote: Hi, On Wed, Nov 21, 2018 at 04:56:54PM +0800, peng.h...@zte.com.cn wrote: On 19/11/2018 09:10, Mark Rutland wrote: On Sat, Nov 17, 2018

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-21 Thread Christoffer Dall
On Wed, Nov 21, 2018 at 12:17:45PM +, Julien Thierry wrote: > > > On 21/11/18 11:06, Christoffer Dall wrote: > >Hi, > > > >On Wed, Nov 21, 2018 at 04:56:54PM +0800, peng.h...@zte.com.cn wrote: > >>>On 19/11/2018 09:10, Mark Rutland wrote: > On Sat, Nov 17, 2018 at 10:58:37AM +0800,

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-21 Thread Julien Thierry
On 21/11/18 11:06, Christoffer Dall wrote: Hi, On Wed, Nov 21, 2018 at 04:56:54PM +0800, peng.h...@zte.com.cn wrote: On 19/11/2018 09:10, Mark Rutland wrote: On Sat, Nov 17, 2018 at 10:58:37AM +0800, peng.h...@zte.com.cn wrote: On 16/11/18 00:23, peng.h...@zte.com.cn wrote: Hi, When

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-21 Thread Christoffer Dall
Hi, On Wed, Nov 21, 2018 at 04:56:54PM +0800, peng.h...@zte.com.cn wrote: > >On 19/11/2018 09:10, Mark Rutland wrote: > >> On Sat, Nov 17, 2018 at 10:58:37AM +0800, peng.h...@zte.com.cn wrote: > On 16/11/18 00:23, peng.h...@zte.com.cn wrote: > >> Hi, > >>> When virtual machine

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-21 Thread peng.hao2
>On 19/11/2018 09:10, Mark Rutland wrote: >> On Sat, Nov 17, 2018 at 10:58:37AM +0800, peng.h...@zte.com.cn wrote: On 16/11/18 00:23, peng.h...@zte.com.cn wrote: >> Hi, >>> When virtual machine starts, hang up. >> >> I take it you mean the *guest* hangs? Because it doesn't get

Re:Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-19 Thread peng.hao2
>On 19/11/2018 09:10, Mark Rutland wrote: >> On Sat, Nov 17, 2018 at 10:58:37AM +0800, peng.h...@zte.com.cn wrote: On 16/11/18 00:23, peng.h...@zte.com.cn wrote: >> Hi, >>> When virtual machine starts, hang up. >> >> I take it you mean the *guest* hangs? Because it doesn't get

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-19 Thread Marc Zyngier
On 19/11/2018 09:10, Mark Rutland wrote: > On Sat, Nov 17, 2018 at 10:58:37AM +0800, peng.h...@zte.com.cn wrote: >>> On 16/11/18 00:23, peng.h...@zte.com.cn wrote: > Hi, >> When virtual machine starts, hang up. > > I take it you mean the *guest* hangs? Because it doesn't get a

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-19 Thread Marc Zyngier
On 19/11/2018 09:10, Mark Rutland wrote: > On Sat, Nov 17, 2018 at 10:58:37AM +0800, peng.h...@zte.com.cn wrote: >>> On 16/11/18 00:23, peng.h...@zte.com.cn wrote: > Hi, >> When virtual machine starts, hang up. > > I take it you mean the *guest* hangs? Because it doesn't get a

Re: Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-19 Thread Mark Rutland
On Sat, Nov 17, 2018 at 10:58:37AM +0800, peng.h...@zte.com.cn wrote: > >On 16/11/18 00:23, peng.h...@zte.com.cn wrote: > >>> Hi, > When virtual machine starts, hang up. > >>> > >>> I take it you mean the *guest* hangs? Because it doesn't get a timer > >>> interrupt? > >>> > The kernel

Re:Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-16 Thread peng.hao2
>On 16/11/18 00:23, peng.h...@zte.com.cn wrote: >>> Hi, When virtual machine starts, hang up. >>> >>> I take it you mean the *guest* hangs? Because it doesn't get a timer >>> interrupt? >>> The kernel version of guest is 4.16. Host support vgic_v3. >>> >>> Your host kernel is

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-16 Thread Julien Thierry
On 16/11/18 00:23, peng.h...@zte.com.cn wrote: Hi, When virtual machine starts, hang up. I take it you mean the *guest* hangs? Because it doesn't get a timer interrupt? The kernel version of guest is 4.16. Host support vgic_v3. Your host kernel is something recent, I guess? It was

Re:Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-15 Thread peng.hao2
>> >> When virtual machine starts, hang up. The kernel version of guest >> is 4.16. Host support vgic_v3. >> It was mainly due to the incorrect vgic_irq's(intid=27) group value >> during injection interruption. when kvm_vgic_vcpu_init is called, >> dist is not initialized at this time. Unable to

Re:Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-15 Thread peng.hao2
>Hi, >> When virtual machine starts, hang up. > >I take it you mean the *guest* hangs? Because it doesn't get a timer >interrupt? > >> The kernel version of guest >> is 4.16. Host support vgic_v3. > >Your host kernel is something recent, I guess? > >> It was mainly due to the incorrect

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-15 Thread Marc Zyngier
On Thu, 15 Nov 2018 15:14:08 +, Peng Hao wrote: > > When virtual machine starts, hang up. The kernel version of guest > is 4.16. Host support vgic_v3. > It was mainly due to the incorrect vgic_irq's(intid=27) group value > during injection interruption. when kvm_vgic_vcpu_init is called, >

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-15 Thread Andre Przywara
On Thu, 15 Nov 2018 23:14:08 +0800 Peng Hao wrote: Hi, > When virtual machine starts, hang up. I take it you mean the *guest* hangs? Because it doesn't get a timer interrupt? > The kernel version of guest > is 4.16. Host support vgic_v3. Your host kernel is something recent, I guess? > It

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-15 Thread Julien Thierry
On 15/11/18 10:22, peng.h...@zte.com.cn wrote: Hi Peng, On 15/11/18 15:14, Peng Hao wrote: When virtual machine starts, hang up. The kernel version of guest is 4.16. Host support vgic_v3. I don't understand the issue here. the vgic_irq->group field does not exist in 4.16 (neither in the

Re:Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-15 Thread peng.hao2
>Hi Peng, > >On 15/11/18 15:14, Peng Hao wrote: >> When virtual machine starts, hang up. The kernel version of guest >> is 4.16. Host support vgic_v3. > >I don't understand the issue here. the vgic_irq->group field does not >exist in 4.16 (neither in the first nor the last version). Nor does the

Re: [PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-15 Thread Julien Thierry
Hi Peng, On 15/11/18 15:14, Peng Hao wrote: When virtual machine starts, hang up. The kernel version of guest is 4.16. Host support vgic_v3. I don't understand the issue here. the vgic_irq->group field does not exist in 4.16 (neither in the first nor the last version). Nor does the line you