All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pasi Kärkkäinen" <pasik@iki.fi>
To: "Chen, Tiejun" <tiejun.chen@intel.com>
Cc: Ian Campbell <ian.campbell@citrix.com>,
	"G.R." <firemeteor@users.sourceforge.net>,
	Ross Philipson <ross.philipson@citrix.com>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	Jan Beulich <JBeulich@suse.com>,
	xen-devel <xen-devel@lists.xen.org>,
	Jean Guyader <Jean.guyader@gmail.com>
Subject: Re: [PATCH 3/3] qemu-xen-trad: IGD passthrough: Expose vendor specific pci cap on host bridge.
Date: Wed, 20 Aug 2014 18:20:48 +0300	[thread overview]
Message-ID: <20140820152048.GC12451@reaktio.net> (raw)
In-Reply-To: <CAKhsbWaM9oF03Oehzi1naohWMH6XsaoDjmtX2KjPOHXqyFpXQw@mail.gmail.com>

Hello Tiejun,

Since you've been working on upstreaming the Xen IGD passthru patches to qemu-upstream,
you might be able to comment on this patch aswell.

This patch is for qemu-traditional, but this one hasn't been acked / applied yet. 
It has been floating around on xen-devel for a couple of years now.
It would be nice to get this finally merged to qemu-traditional.. 

Can you comment about best approach to implement this patch?
There was some comments/concerns about the earlier versions.

"[PATCH 3/3] qemu-xen-trad: IGD passthrough: Expose vendor specific pci cap on host bridge.":
http://lists.xenproject.org/archives/html/xen-devel/2013-02/msg00538.html

And some discussion about the patch/justification one year ago:
http://lists.xen.org/archives/html/xen-devel/2013-07/msg01376.html


Also G.R. wrote earlier on this thread:

> I proposed an alternative to shadow the registers into the PCI config
> space of the emulated host controller.
> There seems no objection on this proposal. I'll do it when I got some spare time.


Thanks,

-- Pasi


On Tue, Aug 06, 2013 at 11:44:52AM +0800, G.R. wrote:
> On Tue, Aug 6, 2013 at 12:15 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> > On Tue, Jul 16, 2013 at 01:55:20AM +0300, Pasi Kärkkäinen wrote:
> >> > >>How was that diagnosed? Perhaps that information can be part of the source
> >> > >>code to help in the future with diagnosiing which caps are needed and
> >> > >>which ones can be blacklisted?
> >> > >>
> >> > >
> >> > >I guess that's a question mostly for Ross/Jean as they're the original authors of the patch?
> >> >
> >> > We discovered the issue with Windows guests running the vendor
> >> > drivers for the passed in IGD graphics device. Under certain
> >> > circumstances (resuming from S3/S4 IIRC), the guest would BSOD. I
> >> > finally tracked it down to a bad state in the resuming driver
> >> > because it was not coded to handle the vendor capabilities not being
> >> > present on the host bridge. BTW, those capabilities are flags
> >> > indicating what features the IGD card has - their exact meaning is
> >> > of course proprietary.
> >> >
> >> > I cannot say it was only a problem on Windows but rather that that
> >> > is the only place we ever saw it.
> >> >
> >> > I never saw any other capabilities on the hosts bridges at that
> >> > time, just vendor ones so the patch just handled that. If there were
> >> > other capabilities, I would think it would have to be determined on
> >> > a case by case basis whether they were included. Inclusion of each
> >> > new type would have different ramifications it seems.
> >> >
> >>
> >> Thanks for the explanation. I guess parts of that should go to the patch description aswell..
> >>
> >
> > Now patch 2/3 has been applied to qemu-traditional, so only this patch 3/3 is missing from qemu-traditional from this series.
> >
> > Any other changes outstanding? or only to add some of Ross's comments to the patch description (and/or sources) ?
> >
> I'll have to rework this patch -- Jan believe the code is not very
> clean with regard to offset / size handling.
> 
> I proposed an alternative to shadow the registers into the PCI config
> space of the emulated host controller.
> There seems no objection on this proposal. I'll do it when I got some
> spare time.
> 
> > Thanks,
> >
> > -- Pasi
> >

  parent reply	other threads:[~2014-08-20 15:20 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-07 16:12 Patch series for IGD passthrough Rui Guo
2013-02-07 16:12 ` [PATCH 1/3] qemu-xen-trad/pt_msi_disable: do not clear all MSI flags Rui Guo
2013-02-07 16:12 ` [PATCH 2/3] qemu-xen-trad: Correctly expose PCH ISA bridge for IGD passthrough Rui Guo
2013-02-07 16:30   ` Jan Beulich
2013-02-07 17:43     ` G.R.
2013-02-08  7:51       ` Jan Beulich
2013-05-21 15:39         ` G.R.
2013-05-24  4:02           ` G.R.
2013-02-08 11:30       ` Stefano Stabellini
2013-02-08 11:36         ` Jan Beulich
2013-02-08 11:48           ` Stefano Stabellini
2013-05-21 15:52             ` G.R.
2013-05-21 15:57               ` Jan Beulich
2013-02-07 16:12 ` [PATCH 3/3] qemu-xen-trad: IGD passthrough: Expose vendor specific pci cap on host bridge Rui Guo
2013-02-07 16:40   ` Jan Beulich
2013-02-07 17:38     ` G.R.
2013-02-08  7:56       ` Jan Beulich
2013-06-19 10:37         ` G.R.
2013-06-21 18:03           ` Konrad Rzeszutek Wilk
2013-06-25 14:08             ` Ross Philipson
2013-06-25 14:54               ` Konrad Rzeszutek Wilk
2013-06-25 15:01                 ` Ross Philipson
2013-06-26  4:18                   ` G.R.
2013-06-26 12:53                     ` Konrad Rzeszutek Wilk
2013-06-26 17:26                       ` Ross Philipson
2013-06-27  7:27                       ` G.R.
2013-07-01 13:06                         ` Konrad Rzeszutek Wilk
2013-07-15 16:06                           ` Pasi Kärkkäinen
2013-07-15 17:47                             ` Ross Philipson
2013-07-15 22:55                               ` Pasi Kärkkäinen
2013-08-05 16:15                                 ` Pasi Kärkkäinen
2013-08-06  3:44                                   ` G.R.
2013-09-25 14:28                                     ` Pasi Kärkkäinen
2014-08-20 15:20                                     ` Pasi Kärkkäinen [this message]
2013-06-25 14:26             ` G.R.
2013-02-08 11:14 ` Patch series for IGD passthrough Stefano Stabellini
2013-03-20 17:17 ` Pasi Kärkkäinen
2013-04-15 20:48   ` Pasi Kärkkäinen
2013-04-16 10:56     ` George Dunlap
2013-04-16 15:59       ` Pasi Kärkkäinen
2013-04-18 11:48       ` Stefano Stabellini
2012-12-19 13:06         ` [PATCH v2] qemu-xen:Correctly expose PCH ISA bridge " G.R.
2012-12-20 13:13           ` Stefano Stabellini
2013-02-22 18:05           ` Ian Jackson
2013-02-25 10:10             ` Jan Beulich
2013-02-25 11:24               ` Ian Jackson
2013-02-25 11:29                 ` Jan Beulich
2013-02-25 12:49                   ` Stefano Stabellini
2013-05-07 17:12                     ` [PATCH v2] qemu-xen:Correctly expose PCH ISA bridge for IGD passthrough [and 2 more messages] Ian Jackson
2013-05-09 13:17                       ` Pasi Kärkkäinen
2013-05-10  9:12                         ` Jan Beulich
2013-05-10  9:40                           ` Pasi Kärkkäinen
2013-05-10 10:00                             ` Ian Campbell
2013-05-10 10:09                               ` George Dunlap
2013-05-10 10:33                                 ` Ian Campbell
2013-05-10 10:44                                   ` Pasi Kärkkäinen
2013-05-10 10:35                                 ` Jan Beulich
2013-02-25 16:46                   ` [PATCH v2] qemu-xen:Correctly expose PCH ISA bridge for IGD passthrough Ian Jackson
2013-04-18 11:47     ` Patch series " Stefano Stabellini
2013-05-03 15:14       ` Pasi Kärkkäinen

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=20140820152048.GC12451@reaktio.net \
    --to=pasik@iki.fi \
    --cc=JBeulich@suse.com \
    --cc=Jean.guyader@gmail.com \
    --cc=firemeteor@users.sourceforge.net \
    --cc=ian.campbell@citrix.com \
    --cc=ross.philipson@citrix.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=tiejun.chen@intel.com \
    --cc=xen-devel@lists.xen.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.