From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Sander Eikelenboom <linux@eikelenboom.it>
Cc: andrew.cooper3@citrix.com, Jan Beulich <JBeulich@suse.com>,
xen-devel@lists.xenproject.org
Subject: Re: [for-xen-4.5 PATCH v2 2/2] dpci: Add ZOMBIE state to allow the softirq to finish with the dpci_pirq.
Date: Fri, 21 Nov 2014 10:14:35 -0500 [thread overview]
Message-ID: <20141121151435.GE2886@laptop.dumpdata.com> (raw)
In-Reply-To: <1346109865.20141121135124@eikelenboom.it>
On Fri, Nov 21, 2014 at 01:51:24PM +0100, Sander Eikelenboom wrote:
>
> Friday, November 21, 2014, 12:50:16 PM, you wrote:
>
> > On November 21, 2014 2:51:33 AM EST, Jan Beulich <JBeulich@suse.com> wrote:
> >>>>> On 20.11.14 at 20:51, <konrad.wilk@oracle.com> wrote:
> >>> @@ -669,7 +670,7 @@ static void hvm_dirq_assist(struct domain *d,
> >>struct hvm_pirq_dpci *pirq_dpci)
> >>> ASSERT(d->arch.hvm_domain.irq.dpci);
> >>>
> >>> spin_lock(&d->event_lock);
> >>> - if ( pirq_dpci->state )
> >>> + if ( test_and_clear_bool(pirq_dpci->masked) )
> >>> {
> >>> struct pirq *pirq = dpci_pirq(pirq_dpci);
> >>> const struct dev_intx_gsi_link *digl;
> >>
> >>So this now guards solely against the timeout enforced EOI? Why do
> >>you no longer need to guard against cancellation (i.e. why isn't this
> >>looking at both ->state and ->masked)?
> >>
>
> > The previous state check was superfluous as the dpci_softirq would check for the valid STATE_ before calling hvm_dirq_assist (and deal with cancellation).
>
> > I actually had an cleanup patch that would have removed the 'if (pirq_dpci->state) ' and move the code for Xen 4.6.
>
> > Anyhow waiting to see if Sander was able to test with this patch.
>
> >>Jan
>
> Hi Konrad / Jan,
>
> I have tested it for 3 hours now, no host crash so far (even after applying some
> extra stress to the guest).
Yeey! Thank you for being so flexible and willing to test these patches out!
>
> --
> Sander
>
>
prev parent reply other threads:[~2014-11-21 15:14 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 22:21 [for xen-4.5 PATCH v2] Fix list corruption in dpci_softirq Konrad Rzeszutek Wilk
2014-11-19 22:21 ` [for-xen-4.5 PATCH v2 1/2] dpci: Fix list corruption if INTx device is used and an IRQ timeout is invoked Konrad Rzeszutek Wilk
2014-11-20 10:43 ` Jan Beulich
2014-11-19 22:21 ` [for-xen-4.5 PATCH v2 2/2] dpci: Add ZOMBIE state to allow the softirq to finish with the dpci_pirq Konrad Rzeszutek Wilk
2014-11-20 10:55 ` Jan Beulich
2014-11-20 19:51 ` Konrad Rzeszutek Wilk
2014-11-20 20:18 ` Sander Eikelenboom
2014-11-20 20:31 ` Konrad Rzeszutek Wilk
2014-11-21 7:51 ` Jan Beulich
2014-11-21 11:50 ` Konrad Rzeszutek Wilk
2014-11-21 12:03 ` Jan Beulich
2014-11-21 15:14 ` Konrad Rzeszutek Wilk
2014-11-21 15:55 ` Jan Beulich
2014-11-21 16:45 ` Konrad Rzeszutek Wilk
2014-11-24 8:58 ` Jan Beulich
2014-11-24 12:58 ` Sander Eikelenboom
2014-11-24 14:40 ` Is: dpci: Add 'masked' as an gate for hvm_dirq_assist to process. Was:Re: " Konrad Rzeszutek Wilk
2014-11-21 12:51 ` Sander Eikelenboom
2014-11-21 15:14 ` Konrad Rzeszutek Wilk [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=20141121151435.GE2886@laptop.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=linux@eikelenboom.it \
--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.