All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sheng Yang <sheng@linux.intel.com>
To: Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: No disable_irq for MSI/MSI-X interrupt on device assignment
Date: Mon, 4 May 2009 16:37:59 +0800	[thread overview]
Message-ID: <200905041638.00430.sheng@linux.intel.com> (raw)
In-Reply-To: <49FEA878.9050204@redhat.com>

On Monday 04 May 2009 16:34:00 Avi Kivity wrote:
> Sheng Yang wrote:
> > On Monday 04 May 2009 16:25:55 Avi Kivity wrote:
> >> Sheng Yang wrote:
> >>> Disable interrupt at interrupt handler and enable it when guest ack is
> >>> for the level triggered interrupt, to prevent reinjected interrupt.
> >>> MSI/MSI-X don't need it.
> >>>
> >>> One possible problem is multiply same vector interrupt injected between
> >>> irq handler and scheduled work handler would be merged as one for
> >>> MSI/MSI-X. But AFAIK, the drivers handle it well.
> >>>
> >>> The patch fixed the oplin card performance issue(MSI-X performance is
> >>> half of MSI/INTx).
> >>>
> >>>
> >>>  	schedule_work(&assigned_dev->interrupt_work);
> >>>
> >>> -	disable_irq_nosync(irq);
> >>> -	assigned_dev->host_irq_disabled = true;
> >>> +	if (assigned_dev->irq_requested_type & KVM_DEV_IRQ_GUEST_INTX) {
> >>> +		disable_irq_nosync(irq);
> >>> +		assigned_dev->host_irq_disabled = true;
> >>> +	}
> >>>
> >>>  out:
> >>>  	spin_unlock_irqrestore(&assigned_dev->assigned_dev_lock, flags);
> >>
> >> I don't have the spin_lock_irqrestore() here.  The patch applies, but
> >> with fuzz.  Am I missing a patch?
> >
> > Oh, it's Marcelo's patchset...
> >
> > [patch 0/4] use smp_send_reschedule in vcpu_kick / assigned dev host intx
> > race fix
>
> Okay, I am working my queue in reverse order :)
>
> But please note dependencies on other patches for me.

Yes, sorry for totally forgot (mine based on his patchset)... :(

-- 
regards
Yang, Sheng


  reply	other threads:[~2009-05-04  8:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-30  2:58 [PATCH] KVM: No disable_irq for MSI/MSI-X interrupt on device assignment Sheng Yang
2009-05-04  8:25 ` Avi Kivity
2009-05-04  8:30   ` Sheng Yang
2009-05-04  8:34     ` Avi Kivity
2009-05-04  8:37       ` Sheng Yang [this message]
2009-05-31  9:48 ` Avi Kivity

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=200905041638.00430.sheng@linux.intel.com \
    --to=sheng@linux.intel.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.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 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.