From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Jeremy Fitzhardinge <Jeremy.Fitzhardinge@citrix.com>
Subject: Re: [Xen-devel] [PATCH 0/5] Xen PV on HVM fixes
Date: Thu, 2 Dec 2010 14:42:28 +0000 [thread overview]
Message-ID: <alpine.DEB.2.00.1012020518200.14723@kaball-desktop> (raw)
In-Reply-To: <4CF69840.3040704@goop.org>
On Wed, 1 Dec 2010, Jeremy Fitzhardinge wrote:
> On 12/01/2010 10:22 AM, Stefano Stabellini wrote:
> > Hi all,
> > this patch series is a collection of fixes for Xen PV on HVM.
> >
> > The first two patches fix two pirq remapping problems with MSIs, they
> > have been sent to the list few times already for comments.
> > The three following patches are new and fix save/restore bugs.
>
> Are you targeting these at 3.6.37-rc?
Yes, because the bugs are pretty serious.
> If so, each changelog commit
> should explicitly say what bug is being fixed, and what the impact of
> the bug is. The last 3 are OK, but it isn't clear to me whether the
> first two are strictly bugfixes or not.
>
The first patch fixes find_unbound_pirq that otherwise would be based on
PHYSDEVOP_get_nr_pirqs that is actually not supported by Xen,
therefore it would fail. So find_unbound_pirq would return a number
starting from nr_irqs that might very well be out of range in Xen.
The symptom of this bug is that when you passthrough an MSI capable pci
device to a PV on HVM guest, Linux would fail to enable MSIs on the
device.
The second patch fixes a bug in xen_hvm_setup_msi_irqs that manifests
itself when trying to enable the same MSI for the second time: qemu is
responsible for remapping MSIs into pirqs and considers the old MSI to
pirq mapping still valid at this point but xen_hvm_setup_msi_irqs
would try to assign a new pirq anyway.
A simple way to reproduce this bug is to assign an MSI capable network
card to a PV on HVM guest, if the user brings down the corresponding
ethernet interface and up again, Linux would fail to enable MSIs on the
device.
I have updated the first two commit messages with these info, the branch
is still the same:
git://xenbits.xen.org/people/sstabellini/linux-pvhvm.git 2.6.37-rc4-pvhvm-fixes
prev parent reply other threads:[~2010-12-02 14:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-01 18:22 Stefano Stabellini
2010-12-01 18:23 ` [PATCH 1/5] xen: use PHYSDEVOP_get_free_pirq to implement find_unbound_pirq stefano.stabellini
2010-12-01 18:23 ` [PATCH 2/5] xen: fix MSI setup and teardown for PV on HVM guests stefano.stabellini
2010-12-01 18:23 ` [PATCH 3/5] xen: resume the pv console for hvm guests too stefano.stabellini
2010-12-01 18:23 ` [PATCH 4/5] xen: fix save/restore for PV on HVM guests with pirq remapping stefano.stabellini
2010-12-01 18:23 ` [PATCH 5/5] xen: unplug the emulated devices at resume time stefano.stabellini
2010-12-01 18:47 ` [Xen-devel] [PATCH 0/5] Xen PV on HVM fixes Jeremy Fitzhardinge
2010-12-02 14:42 ` Stefano Stabellini [this message]
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.00.1012020518200.14723@kaball-desktop \
--to=stefano.stabellini@eu.citrix.com \
--cc=Jeremy.Fitzhardinge@citrix.com \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xen-devel@lists.xensource.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®