All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: kvm@vger.kernel.org, Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCHv3 RFC 1/2] kvm: implement kvm_set_msi_inatomic
Date: Thu, 14 Jun 2012 10:00:07 +0300	[thread overview]
Message-ID: <20120614070007.GA6533@redhat.com> (raw)
In-Reply-To: <20120613161226.GA21821@redhat.com>

On Wed, Jun 13, 2012 at 07:12:26PM +0300, Michael S. Tsirkin wrote:
> > > > > @@ -134,10 +141,30 @@ int kvm_set_msi(struct kvm_kernel_irq_routing_entry *e,
> > > > >  	irq.level = 1;
> > > > >  	irq.shorthand = 0;
> > > > >  
> > > > > +	/* Multicast MSI doesn't really block but might take a long time. */
> > > > > +	if (unlikely(noblock && kvm_msi_is_multicast(irq.dest_id,
> > > > > +						     irq.delivery_mode)))
> > > > delivery_mode? Should be dest_mode.
> 
> Yes. Good catch, thanks.
> 
> > But you probably need to check that
> > > > delivery_mode is not ExtINT either.
> 
> It does not look like anything happens with ExtInt
> if you try to trigger it from MSI.
> 
Currently no, but it should appear as if interrupt comes from PIC.
I wouldn't allow anything but fixed mode here just to be on a safe side.
Lowest prio will have to loop even after introducing irq cache.

--
			Gleb.

  reply	other threads:[~2012-06-14  7:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-11 11:19 [PATCHv3 RFC 0/2] kvm: direct msix injection Michael S. Tsirkin
2012-06-11 11:19 ` [PATCHv3 RFC 1/2] kvm: implement kvm_set_msi_inatomic Michael S. Tsirkin
2012-06-13 13:01   ` Gleb Natapov
2012-06-13 15:59     ` Michael S. Tsirkin
2012-06-13 16:01       ` Gleb Natapov
2012-06-13 16:12         ` Michael S. Tsirkin
2012-06-14  7:00           ` Gleb Natapov [this message]
2012-06-11 11:19 ` [PATCHv3 RFC 2/2] kvm: deliver msix interrupts from irq handler Michael S. Tsirkin
2012-06-12 23:07 ` [PATCHv3 RFC 0/2] kvm: direct msix injection Marcelo Tosatti
2012-06-13  8:39   ` Michael S. Tsirkin
2012-06-13 14:14   ` Avi Kivity
2012-06-25  9:32 ` Jan Kiszka
2012-07-02 17:08   ` Alex Williamson
2012-07-06  3:01     ` Hao, Xudong
2012-07-08 22:55     ` Michael S. Tsirkin
2012-07-09 15:32       ` Jan Kiszka
2012-07-09 15:49         ` Alex Williamson

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=20120614070007.GA6533@redhat.com \
    --to=gleb@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kvm@vger.kernel.org \
    --cc=mst@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.