From: Sheng Yang <sheng@linux.intel.com>
To: "Michael S. Tsirkin" <mst@redhat.com>, Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH 6/7] KVM: assigned dev: MSI-X mask support
Date: Mon, 15 Nov 2010 16:22:49 +0800 [thread overview]
Message-ID: <201011151622.49829.sheng@linux.intel.com> (raw)
In-Reply-To: <20101115080353.GD22248@redhat.com>
On Monday 15 November 2010 16:03:53 Michael S. Tsirkin wrote:
> On Mon, Nov 15, 2010 at 03:48:46PM +0800, Sheng Yang wrote:
> > On Monday 15 November 2010 15:42:50 Michael S. Tsirkin wrote:
> > > On Mon, Nov 15, 2010 at 03:37:21PM +0800, Sheng Yang wrote:
> > > > > > We can back to them if there is someone really did it in that
> > > > > > way. But for all hypervisors using QEmu, I think we haven't seen
> > > > > > such kind of behavior yet.
> > > > >
> > > > > I would rather stick to the spec than go figure out what do
> > > > > BSD/Sun/Mac do, or will do.
> > > >
> > > > Sure, but no hurry for that. It doesn't similar to the API case, so
> > > > we can achieve it incrementally.
> > >
> > > Isn't the proposed way to solve this to move vector address/data
> > > handling into kernel too? If yes it does affect the API.
> >
> > It didn't afffect the API used by this patch. So the code can still be
> > modified after later.
>
> Then won't we have to support two APIs, forever?
In fact for this patch, the logic is pretty straightforward. I don't think this
patch would trouble us if we really have to support two APIs(userspace and in-
kernel routing table) in the end. Just check msix_mmio_write(), you would find it
just cost few lines(maybe just one line "r = -EOPNOTSUPP") to get the modification
handled in userspace. All other logic mostly remained the same as in the this
patch.
IMO Mask bit support and irq routing are two separate things. It make no sense to
block mask bit support patch due to the one idea of possible irq routing change in
the future.
--
regards
Yang, Sheng
>
> > --
> > regards
> > Yang, Sheng
next prev parent reply other threads:[~2010-11-15 8:21 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-11 7:46 [PATCH 0/7 v4] MSI-X mask support for assigned device Sheng Yang
2010-11-11 7:46 ` [PATCH 1/7] PCI: MSI: Move MSI-X entry definition to pci_regs.h Sheng Yang
2010-11-11 7:46 ` [PATCH 2/7] PCI: Add mask bit definition for MSI-X table Sheng Yang
2010-11-11 17:29 ` Jesse Barnes
2010-11-15 8:02 ` Sheng Yang
2010-11-11 7:46 ` [PATCH 3/7] KVM: Move struct kvm_io_device to kvm_host.h Sheng Yang
2010-11-11 7:46 ` [PATCH 4/7] KVM: Add kvm_get_irq_routing_entry() func Sheng Yang
2010-11-11 7:46 ` [PATCH 5/7] KVM: assigned dev: Clean up assigned_device's flag Sheng Yang
2010-11-11 7:46 ` [PATCH 6/7] KVM: assigned dev: MSI-X mask support Sheng Yang
2010-11-12 9:53 ` Michael S. Tsirkin
2010-11-12 10:13 ` Sheng Yang
2010-11-12 10:47 ` Michael S. Tsirkin
2010-11-12 10:54 ` Sheng Yang
2010-11-12 11:25 ` Michael S. Tsirkin
2010-11-15 7:37 ` Sheng Yang
2010-11-15 7:42 ` Michael S. Tsirkin
2010-11-15 7:48 ` Sheng Yang
2010-11-15 8:03 ` Michael S. Tsirkin
2010-11-15 8:22 ` Sheng Yang [this message]
2010-11-11 7:47 ` [PATCH 7/7] KVM: assigned dev: Big endian support for MSI-X MMIO Sheng Yang
2010-11-11 16:12 ` Michael S. Tsirkin
2010-11-12 2:47 ` Sheng Yang
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=201011151622.49829.sheng@linux.intel.com \
--to=sheng@linux.intel.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
--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