All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paraschiv, Andra-Irina" <andraprs@amazon.com>
To: Ian Jackson <ian.jackson@citrix.com>
Cc: "sstabellini@kernel.org" <sstabellini@kernel.org>,
	"Paraschiv, Andra-Irina" <andraprs@amazon.com>,
	"andrew.cooper3@citrix.com" <andrew.cooper3@citrix.com>,
	"jbeulich@suse.com" <jbeulich@suse.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	"Woodhouse, David" <dwmw@amazon.co.uk>,
	"roger.pau@citrix.com" <roger.pau@citrix.com>
Subject: Re: [PATCH qemu-xen-traditional] xen/pt: allow QEMU to request MSI unmasking at bind time
Date: Tue, 9 Oct 2018 15:23:55 +0000	[thread overview]
Message-ID: <1539098633397.3404@amazon.com> (raw)
In-Reply-To: <23484.45915.156520.714628@mariner.uk.xensource.com>

> > >Ian, any objections?
>
> Sorry for dropping this.  It's been a while!

No problem, Ian, we have this heads-up now.

>
> > >> > When a MSI interrupt is bound to a guest using
> > >> > xc_domain_update_msi_irq (XEN_DOMCTL_bind_pt_irq) the interrupt
> > >> > is left masked by default.
> > >> >
> > >> > This causes problems with guests that first configure
> > >> > interrupts and clean the per-entry MSIX table mask bit and
> > >> > afterwards enable MSIX globally. In such scenario the Xen
> > >> > internal msixtbl handlers would not detect the unmasking of
> > >> > MSIX entries because vectors are not yet registered since MSIX
> > >> > is not enabled, and vectors would be left masked.
> > >> >
> > >> > Introduce a new flag in the gflags field to signal Xen whether
> > >> > a MSI interrupt should be unmasked after being bound.
> > >> >
> > >> > This also requires to track the mask register for MSI
> > >> > interrupts, so QEMU can also notify to Xen whether the MSI
> > >> > interrupt should be bound masked or unmasked
>
> I searched my email archives but I haven't been able to find a copy of
> the actual patch.  Was it ever sent to me ?
> 
> Also, qemu-trad is quite deeply frozen.  I'd like an explanation of
> the practical impact of this bug, and the use cases where the fix is
> needed, to justify the change.  Sorry to be awkward.

That's the link to the patch for qemu-xen-traditional:
https://lists.xenproject.org/archives/html/xen-devel/2018-06/msg01248.html

(https://lists.xenproject.org/archives/html/xen-devel/2018-06/msg01373.html - added you in CC)

The issue was notified here - https://lists.xenproject.org/archives/html/xen-devel/2018-05/msg01238.html and fixes were added in xen and qemu. QEMU needs to interact with Xen to have guest interrupts masked/unmasked.

This patch is a backport from qemu.

One of the use cases where this fix is needed is: guest OS is Windows and the host has the latest stable version of xen and qemu-xen-traditional. Using this environment, setting up a PCI device (using MSI/MSI-X interrupts) will not successfully finish.

Thanks,
Andra

>
> Regards,
> Ian.



Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-10-09 15:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-26  1:34 [PATCH] xen vtd : set msi guest_masked 0 by default Jianzhong,Chang
2016-01-26 12:56 ` Jan Beulich
2016-01-26 22:24   ` Tian, Kevin
2016-03-07  8:12   ` jzh Chang
2016-03-07 10:57     ` Jan Beulich
2018-05-21 11:46 ` David Woodhouse
2018-05-21 12:10   ` Roger Pau Monné
2018-05-23  7:01     ` David Woodhouse
2018-06-18  9:35       ` [PATCH qemu-xen-traditional] xen/pt: allow QEMU to request MSI unmasking at bind time Andra Paraschiv
2018-06-18 11:43         ` Roger Pau Monné
2018-06-21  8:37           ` Paraschiv, Andra-Irina
2018-07-31 10:22             ` Woodhouse, David
2018-09-17  8:40               ` Paraschiv, Andra-Irina
2018-10-09 13:55                 ` Ian Jackson
2018-10-09 15:23                   ` Paraschiv, Andra-Irina [this message]
2018-10-10 14:56                     ` Ian Jackson
2018-10-10 19:06                       ` Paraschiv, Andra-Irina
2018-06-18 10:31       ` xen vtd : set msi guest_masked 0 by default Paraschiv, Andra-Irina

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=1539098633397.3404@amazon.com \
    --to=andraprs@amazon.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dwmw@amazon.co.uk \
    --cc=ian.jackson@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.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.