From: "Michael S. Tsirkin" <mst@redhat.com>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: Avi Kivity <avi@redhat.com>,
Marcelo Tosatti <mtosatti@redhat.com>, kvm <kvm@vger.kernel.org>,
Alex Williamson <alex.williamson@redhat.com>,
Jesse Barnes <jbarnes@virtuousgeek.org>
Subject: Re: [PATCH] KVM: Allow host IRQ sharing for assigned PCI 2.3 devices
Date: Tue, 10 Jan 2012 23:36:10 +0200 [thread overview]
Message-ID: <20120110213609.GA20988@redhat.com> (raw)
In-Reply-To: <4F0CAB14.8030602@web.de>
On Tue, Jan 10, 2012 at 10:18:12PM +0100, Jan Kiszka wrote:
> On 2012-01-10 21:44, Michael S. Tsirkin wrote:
> > On Tue, Jan 10, 2012 at 08:40:59PM +0100, Jan Kiszka wrote:
> >> On 2012-01-10 20:04, Michael S. Tsirkin wrote:
> >>>>> But IMO this
> >>>>> shows it is a more generic interface.
> >>>>
> >>>> I'm worried about adding something new that will soon become obsolete
> >>>> again. That's wasted effort IMHO unless we say today that there will be
> >>>> no in-kernel MSI-X support.
> >>>>
> >>>> Jan
> >>>
> >>> Yes. But as we are adding a new interface maybe it's better to add a
> >>> more generic one? I don't insist as I don't have a specific proposal,
> >>> just something to consider.
> >>
> >> I could imagine defining an extensible IRQ masking interface, e.g. with
> >> flags that select the type, but only implementing it for INTx for now.
> >>
> >> Jan
> >>
> >
> > I guess if we pass in the IRQ# the type can be inferred and does not
> > need to be passed in.
>
> What kind of number, a GSI? We do not yet track what is behind a GSI, do we?
>
> Hmm, I think this requires more careful thoughts. What should be the
> semantic of "mask" for the addressed device behind the IRQ? For assigned
> legacy IRQ it's clear: mask at config space level. For assigned MSI-X it
> should be masking at vector level. What about assigned MSI?
> What about
> irqfds? How to deal with future IRQ sources?
For correctness, it is enough to mask in host kernel.
Masking at device level is an optimization:
e.g. you don't mask immediately either.
> No, I think it is better to directly associate the masking feature
> directly with the source instead of doing this via some handle,
> potentially addressing the whole world. If there is a need for
> KVM_IRQFD_MASK, then let's introduce it. As a separate API.
>
> Jan
>
That's an option too.
--
MST
next prev parent reply other threads:[~2012-01-10 21:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-09 14:03 [PATCH] KVM: Allow host IRQ sharing for assigned PCI 2.3 devices Jan Kiszka
2012-01-09 19:45 ` Alex Williamson
2012-01-09 21:25 ` Jan Kiszka
2012-01-09 22:05 ` Alex Williamson
2012-01-09 22:26 ` Jan Kiszka
2012-01-10 13:47 ` Jan Kiszka
2012-01-10 23:41 ` Alex Williamson
2012-01-11 9:47 ` Michael S. Tsirkin
2012-01-10 16:17 ` Michael S. Tsirkin
2012-01-10 17:29 ` Jan Kiszka
2012-01-10 18:10 ` Michael S. Tsirkin
2012-01-10 18:21 ` Jan Kiszka
2012-01-10 18:31 ` Michael S. Tsirkin
2012-01-10 18:43 ` Jan Kiszka
2012-01-10 19:04 ` Michael S. Tsirkin
2012-01-10 19:40 ` Jan Kiszka
2012-01-10 20:44 ` Michael S. Tsirkin
2012-01-10 21:18 ` Jan Kiszka
2012-01-10 21:36 ` Michael S. Tsirkin [this message]
2012-01-12 15:49 ` [PATCH v2] " Jan Kiszka
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=20120110213609.GA20988@redhat.com \
--to=mst@redhat.com \
--cc=alex.williamson@redhat.com \
--cc=avi@redhat.com \
--cc=jan.kiszka@web.de \
--cc=jbarnes@virtuousgeek.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox