All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Stabellini <sstabellini@kernel.org>
To: Julien Grall <julien@xen.org>
Cc: "Bertrand Marquis" <Bertrand.Marquis@arm.com>,
	Xen-devel <xen-devel@lists.xenproject.org>,
	"iwj@xenproject.org" <iwj@xenproject.org>,
	"sstabellini@kernel.org" <sstabellini@kernel.org>,
	"Rahul Singh" <Rahul.Singh@arm.com>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"George Dunlap" <george.dunlap@citrix.com>,
	"Jan Beulich" <jbeulich@suse.com>, "Wei Liu" <wl@xen.org>,
	"Paul Durrant" <paul@xen.org>,
	"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [PATCH v8 2/5] xen/arm: Enable the existing x86 virtual PCI support for ARM
Date: Fri, 15 Oct 2021 12:47:17 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.21.2110151235100.31303@sstabellini-ThinkPad-T480s> (raw)
In-Reply-To: <a45077dc-e144-4427-9ae2-5815045ecaec@xen.org>

On Fri, 15 Oct 2021, Julien Grall wrote:
> On 15/10/2021 18:33, Bertrand Marquis wrote:
> > > On 15 Oct 2021, at 18:25, Julien Grall <julien@xen.org> wrote:
> > > 
> > > Hi Bertrand,
> > > 
> > > On 15/10/2021 17:51, Bertrand Marquis wrote:
> > > > diff --git a/xen/drivers/passthrough/pci.c
> > > > b/xen/drivers/passthrough/pci.c
> > > > index 3aa8c3175f..35e0190796 100644
> > > > --- a/xen/drivers/passthrough/pci.c
> > > > +++ b/xen/drivers/passthrough/pci.c
> > > > @@ -756,6 +756,19 @@ int pci_add_device(u16 seg, u8 bus, u8 devfn,
> > > >       if ( !pdev->domain )
> > > >       {
> > > >           pdev->domain = hardware_domain;
> > > > +#ifdef CONFIG_ARM
> > > > +        /*
> > > > +         * On ARM PCI devices discovery will be done by Dom0. Add vpci
> > > > handler
> > > > +         * when Dom0 inform XEN to add the PCI devices in XEN.
> > > > +         */
> > > > +        ret = vpci_add_handlers(pdev);
> > > 
> > > I don't seem to find the code to remove __init_hwdom in this series. Are
> > > you intending to fix it separately?
> > 
> > Yes I think it is better to fix that in a new patch as it will require some
> > discussion as it will impact the x86 code if I just remove the flag now.
> For the future patch series, may I ask to keep track of outstanding issues in
> the commit message (if you don't plan to address them before commiting) or
> after --- (if they are meant to be addressed before commiting)?
> 
> In this case, the impact on Arm is this would result to an hypervisor crash if
> called. If we drop __init_hwdom, the impact on x86 is Xen text will slightly
> be bigger after the boot time.
> 
> AFAICT, the code is not reachable on Arm (?). Therefore, one could argue we
> this can wait after the week-end as this is a latent bug. Yet, I am not really
> comfortable to see knowningly buggy code merged.
> 
> Stefano, would you be willing to remove __init_hwdom while committing it? If
> not, can you update the commit message and mention this patch doesn't work as
> intended?

I prefer not to do a change like this on commit as it affects x86.

I added a note in the commit message about it. I also added Roger's ack
that was given to the previous version. FYI this is the only outstanding
TODO as far as I am aware (there are other pending patch series of
course).

After reviewing the whole series again, checking it against all the
reviewers comments, and making it go through gitlab-ci, I committed the
series.

Thank you all for all the efforts that went into this. We made it :-)


  reply	other threads:[~2021-10-15 19:48 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-15 16:51 [PATCH v8 0/5] PCI devices passthrough on Arm Bertrand Marquis
2021-10-15 16:51 ` [PATCH v8 1/5] xen/vpci: Move ecam access functions to common code Bertrand Marquis
2021-10-15 16:51 ` [PATCH v8 2/5] xen/arm: Enable the existing x86 virtual PCI support for ARM Bertrand Marquis
2021-10-15 17:25   ` Julien Grall
2021-10-15 17:33     ` Bertrand Marquis
2021-10-15 18:38       ` Julien Grall
2021-10-15 19:47         ` Stefano Stabellini [this message]
2021-10-16 10:28           ` Roger Pau Monné
2021-10-18  7:09             ` Jan Beulich
2021-10-18 10:38               ` [PATCH v8 2/5] xen/arm: Enable the existing x86 virtual PCI support for ARM [and 1 more messages] Ian Jackson
2021-10-18 10:47                 ` Bertrand Marquis
2021-10-18 11:04                 ` Jan Beulich
2021-10-18  7:51         ` [PATCH v8 2/5] xen/arm: Enable the existing x86 virtual PCI support for ARM Jan Beulich
2021-10-18  8:05           ` Bertrand Marquis
2021-10-18  7:47   ` Jan Beulich
2021-10-18  8:03     ` Roger Pau Monné
2021-10-18  8:38       ` Jan Beulich
2021-10-18 10:06     ` Oleksandr Andrushchenko
2021-10-18 10:11     ` Bertrand Marquis
2021-10-18 10:29       ` Jan Beulich
2021-10-18 14:07         ` Oleksandr Andrushchenko
2021-10-18 14:19           ` Jan Beulich
2021-10-18 14:37             ` Oleksandr Andrushchenko
2021-10-18 15:15               ` Jan Beulich
2021-10-15 16:51 ` [PATCH v8 3/5] tools/libxl: Modify libxl__arch_domain_init_hw_description Bertrand Marquis
2021-10-15 16:51 ` [PATCH v8 4/5] tools/libxl_arm: Modify libxl__prepare_dtb Bertrand Marquis
2021-10-15 16:51 ` [PATCH v8 5/5] arm/libxl: Emulated PCI device tree node in libxl Bertrand Marquis

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=alpine.DEB.2.21.2110151235100.31303@sstabellini-ThinkPad-T480s \
    --to=sstabellini@kernel.org \
    --cc=Bertrand.Marquis@arm.com \
    --cc=Rahul.Singh@arm.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@citrix.com \
    --cc=iwj@xenproject.org \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=paul@xen.org \
    --cc=roger.pau@citrix.com \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.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.