All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <marc.zyngier@arm.com>
To: Andrew Jones <drjones@redhat.com>
Cc: Andre Przywara <andre.przywara@arm.com>, kvmarm@lists.cs.columbia.edu
Subject: Re: KVM on ARM crashes with new VGIC v4.7-rc7
Date: Mon, 25 Jul 2016 16:38:19 +0100	[thread overview]
Message-ID: <5796326B.4090504@arm.com> (raw)
In-Reply-To: <20160725152937.g63qlcewf5h45pi4@kamzik.localdomain>

On 25/07/16 16:29, Andrew Jones wrote:
> On Mon, Jul 25, 2016 at 04:07:20PM +0100, Marc Zyngier wrote:
>> On 25/07/16 15:28, Andrew Jones wrote:
>>> On Mon, Jul 25, 2016 at 03:05:46PM +0100, Marc Zyngier wrote:
>>>> News flash: Mark Rutland just saw it crashing on his Seattle using my
>>>> kernel that doesn't crash on mine. So we're looking at external factors
>>>> now. DT, firmware, whatever.
>>>
>>> Interesting, especially with the information that the bug is also
>>> on v7 with uboot (where it's present with 4k pages), and on v8
>>> with UEFI (where it's not present with 4k pages, only 64k)
>>
>> Here's what I get with Mark's DT:
>>
>> [    2.199618] kvm [1]: 8-bit VMID
>> [    2.202756] kvm [1]: Hyp mode initialized successfully
>> [    2.207907] kvm [1]: GICV size 0x2000 not a multiple of page size 0x10000
>> [    2.214736] kvm [1]: virtual timer IRQ4
>>
>> Somehow, we fail to detect that we cannot run with 64k pages,
>> because we cannot safely pass the 8kB region to the guest.
>> KVM should fail to initialize, or at least report that there
>> is no VGIC. Drew, is that what you have on your system as well?
> 
> Yup, precisely. I wish I would have grepped and reported that before...
> 
> I also now see that when booting with old vgic and 64k pages I get an
> additional message after the GICV... line
> 
> [    1.889241] kvm [1]: error: KVM vGIC probing failed
> 
> So we should port that error message over.

Not just the message. Somehow, the rest of KVM still thinks we have
things up and running, while we won't be able to deliver an interrupt.
Pretty shit.

Now, coming back to Stefan's issue, I see that his DT lacks a
maintenance interrupt in the GIC node, which would be another failure
mode. Except that he says that it works with the old vgic. That's weird.

Basically, our error handling is bonkers and needs fixing.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

  reply	other threads:[~2016-07-25 15:31 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-22  5:57 KVM on ARM crashes with new VGIC v4.7-rc7 Stefan Agner
2016-07-22  7:47 ` Marc Zyngier
2016-07-22  7:52   ` Auger Eric
2016-07-22  7:59     ` Marc Zyngier
2016-07-22  8:10   ` Stefan Agner
2016-07-22  9:15 ` Marc Zyngier
2016-07-22 10:42 ` Andre Przywara
2016-07-22 14:35   ` Andrew Jones
2016-07-22 15:40     ` Marc Zyngier
2016-07-22 15:42       ` Auger Eric
2016-07-22 17:38       ` Andrew Jones
2016-07-22 17:47         ` Stefan Agner
2016-07-22 17:49         ` Marc Zyngier
2016-07-22 17:56           ` Stefan Agner
2016-07-22 18:11             ` Marc Zyngier
2016-07-23  7:45               ` Stefan Agner
2016-07-23 10:20                 ` Marc Zyngier
2016-07-23 16:33                   ` Stefan Agner
2016-07-24  9:30                     ` Marc Zyngier
2016-07-25  6:28                       ` Stefan Agner
2016-07-24 12:22             ` Marc Zyngier
2016-07-24 12:36               ` Marc Zyngier
2016-07-25  6:14                 ` Stefan Agner
2016-07-25  8:11                   ` Marc Zyngier
2016-07-25  8:17                     ` Marc Zyngier
2016-07-25 13:50                       ` Andre Przywara
2016-07-25 14:05                         ` Marc Zyngier
2016-07-25 14:28                           ` Andrew Jones
2016-07-25 14:39                             ` Marc Zyngier
2016-07-25 15:07                             ` Marc Zyngier
2016-07-25 15:25                               ` Andre Przywara
2016-07-25 15:29                               ` Andrew Jones
2016-07-25 15:38                                 ` Marc Zyngier [this message]
2016-07-25 16:52                     ` Stefan Agner
2016-07-25 17:06                       ` Marc Zyngier
2016-07-25  8:42                   ` Marc Zyngier
2016-07-25  6:36                 ` Stefan Agner
2016-07-25 13:33                   ` Andre Przywara
2016-07-25 16:18                     ` Stefan Agner
2016-07-22 18:06         ` Marc Zyngier
2016-07-22 19:45           ` Andrew Jones
2016-07-22 19:54             ` Marc Zyngier
2016-07-25  9:00               ` Andrew Jones
2016-07-25  9:05                 ` Marc Zyngier
2016-07-25  9:18                   ` Andrew Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5796326B.4090504@arm.com \
    --to=marc.zyngier@arm.com \
    --cc=andre.przywara@arm.com \
    --cc=drjones@redhat.com \
    --cc=kvmarm@lists.cs.columbia.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.