All of lore.kernel.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM: DT: Add binding for GIC virtualization extentions (VGIC)
Date: Thu, 10 May 2012 10:53:09 +0000	[thread overview]
Message-ID: <201205101053.09954.arnd@arndb.de> (raw)
In-Reply-To: <ed0ce2390716adbfc949f86c16dab996@localhost>

On Wednesday 09 May 2012, Marc Zyngier wrote:
> > 
> > Sounds good. I don't have a strong preference whether that should be a
> > property like you suggest or a separate "compatible" value, maybe Rob or
> > Grant can comment on what they prefer.
> 
> At the moment, the compatible string should be pretty explicit, as it is
> not possible to build an A7 or A15 based SoC without the virtualization
> extensions.

Ok, makes sense. Then again, if you run an A15 guests on an A15 host,
the virtual GIC would not have those extensions, right?

> > On the guest side, is it guaranteed that the virtual GIC looks like
> > a real GIC without those extensions? If the actual behavior depends on
> > the hypervisor, it might still make sense to add another flag in there
> > to tell that it's virtual, even if we don't require it for now.
> 
> Nothing is really guaranteed, as the VGIC only exposes a GIC CPU interface
> to the guest, and the distributor has to be modeled by the hypervisor. But
> if the difference is observable by the guest, is it still a GIC? And how to
> differentiate between behavior A and behavior B with a single flag?

Right, in that case, we would probably want a hypervisor specific compatible
property to identify it.
 
> My take would be that if the guest can tell the difference, than it
> shouldn't be called a GIC, and have separate bindings. Or at least a
> different compatible string that we could use to enable quirks in the
> driver.

Ok, good.

	Arnd

WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
To: Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	david.vrabel-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org,
	rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH v2] ARM: DT: Add binding for GIC virtualization extentions (VGIC)
Date: Thu, 10 May 2012 10:53:09 +0000	[thread overview]
Message-ID: <201205101053.09954.arnd@arndb.de> (raw)
In-Reply-To: <ed0ce2390716adbfc949f86c16dab996@localhost>

On Wednesday 09 May 2012, Marc Zyngier wrote:
> > 
> > Sounds good. I don't have a strong preference whether that should be a
> > property like you suggest or a separate "compatible" value, maybe Rob or
> > Grant can comment on what they prefer.
> 
> At the moment, the compatible string should be pretty explicit, as it is
> not possible to build an A7 or A15 based SoC without the virtualization
> extensions.

Ok, makes sense. Then again, if you run an A15 guests on an A15 host,
the virtual GIC would not have those extensions, right?

> > On the guest side, is it guaranteed that the virtual GIC looks like
> > a real GIC without those extensions? If the actual behavior depends on
> > the hypervisor, it might still make sense to add another flag in there
> > to tell that it's virtual, even if we don't require it for now.
> 
> Nothing is really guaranteed, as the VGIC only exposes a GIC CPU interface
> to the guest, and the distributor has to be modeled by the hypervisor. But
> if the difference is observable by the guest, is it still a GIC? And how to
> differentiate between behavior A and behavior B with a single flag?

Right, in that case, we would probably want a hypervisor specific compatible
property to identify it.
 
> My take would be that if the guest can tell the difference, than it
> shouldn't be called a GIC, and have separate bindings. Or at least a
> different compatible string that we could use to enable quirks in the
> driver.

Ok, good.

	Arnd

  reply	other threads:[~2012-05-10 10:53 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-09 17:57 [PATCH v2] ARM: DT: Add binding for GIC virtualization extentions (VGIC) Marc Zyngier
2012-05-09 17:57 ` Marc Zyngier
2012-05-09 19:21 ` Arnd Bergmann
2012-05-09 19:21   ` Arnd Bergmann
2012-05-09 19:36   ` Marc Zyngier
2012-05-09 19:36     ` Marc Zyngier
2012-05-09 20:27     ` Arnd Bergmann
2012-05-09 20:27       ` Arnd Bergmann
2012-05-09 20:42       ` Marc Zyngier
2012-05-09 20:42         ` Marc Zyngier
2012-05-09 20:47         ` Arnd Bergmann
2012-05-09 20:47           ` Arnd Bergmann
2012-05-09 21:34           ` Marc Zyngier
2012-05-09 21:34             ` Marc Zyngier
2012-05-10 10:53             ` Arnd Bergmann [this message]
2012-05-10 10:53               ` Arnd Bergmann
2012-05-10 11:11               ` Marc Zyngier
2012-05-10 11:11                 ` Marc Zyngier
2012-05-11 15:11             ` Grant Likely
2012-05-11 15:11               ` Grant Likely
2012-05-11 15:10           ` Grant Likely
2012-05-11 15:10             ` Grant Likely
2012-05-11 14:14 ` David Vrabel
2012-05-11 14:14   ` David Vrabel
2012-05-11 14:42   ` Marc Zyngier
2012-05-11 14:42     ` Marc Zyngier
2012-05-11 14:43     ` David Vrabel
2012-05-11 14:43       ` David Vrabel
2012-05-11 15:15       ` Grant Likely
2012-05-11 15:15         ` Grant Likely

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=201205101053.09954.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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.