From: Avi Kivity <avi@redhat.com>
To: "Yang, Sheng" <sheng.yang@intel.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: Mask bit support's API
Date: Tue, 23 Nov 2010 16:06:20 +0200 [thread overview]
Message-ID: <4CEBCA5C.8040504@redhat.com> (raw)
In-Reply-To: <201011232157.05130.sheng.yang@intel.com>
On 11/23/2010 03:57 PM, Yang, Sheng wrote:
> > >
> > > Yeah, but won't be included in this patchset.
> >
> > What API changes are needed? I'd like to see the complete API.
>
> I am not sure about it. But I suppose the structure should be the same? In fact
> it's pretty hard for me to image what's needed for virtio in the future,
> especially there is no such code now. I really prefer to deal with assigned device
> and virtio separately, which would make the work much easier. But seems you won't
> agree on that.
First, I don't really see why the two cases are different (but I don't
do a lot in this space). Surely between you and Michael, you have all
the information?
Second, my worry is a huge number of ABI variants that come from
incrementally adding features. I want to implement bigger chunks of
functionality. So I'd like to see all potential users addressed, at
least from the ABI point of view if not the implementation.
> > The API needs to be compatible with the pending bit, even if we don't
> > implement it now. I want to reduce the rate of API changes.
>
> This can be implemented by this API, just adding a flag for it. And I would still
> take this into consideration in the next API purposal.
Shouldn't kvm also service reads from the pending bitmask?
> >
> > So instead of
> >
> > - guest reads/writes msix
> > - kvm filters mmio, implements some, passes others to userspace
> >
> > we have
> >
> > - guest reads/writes msix
> > - kvm implements all
> > - some writes generate an additional notification to userspace
>
> I suppose we don't need to generate notification to userspace? Because every
> read/write is handled by kernel, and userspace just need interface to kernel to
> get/set the entry - and well, does userspace need to do it when kernel can handle
> all of them? Maybe not...
We could have the kernel handle addr/data writes by setting up an
internal interrupt routing. A disadvantage is that more work is needed
if we emulator interrupt remapping in qemu.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2010-11-23 14:06 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-23 6:09 Mask bit support's API Yang, Sheng
2010-11-23 6:17 ` Avi Kivity
2010-11-23 6:35 ` Yang, Sheng
2010-11-23 7:54 ` Avi Kivity
2010-11-23 8:30 ` Yang, Sheng
2010-11-23 12:47 ` Avi Kivity
2010-11-23 12:56 ` Michael S. Tsirkin
2010-11-23 13:57 ` Yang, Sheng
2010-11-23 14:06 ` Avi Kivity [this message]
2010-11-23 15:11 ` Michael S. Tsirkin
2010-11-23 15:24 ` Gleb Natapov
2010-11-23 16:10 ` Michael S. Tsirkin
2010-11-24 1:59 ` Yang, Sheng
2010-11-26 2:35 ` Yang, Sheng
2010-11-30 14:15 ` Avi Kivity
2010-12-01 2:36 ` Yang, Sheng
2010-12-02 13:09 ` Avi Kivity
2010-12-02 13:47 ` Michael S. Tsirkin
2010-12-02 13:56 ` Avi Kivity
2010-12-02 14:26 ` Michael S. Tsirkin
2010-12-02 14:54 ` Sheng Yang
2010-12-02 16:55 ` Michael S. Tsirkin
2010-12-03 3:03 ` Yang, Sheng
2010-11-23 12:04 ` Michael S. Tsirkin
2010-11-23 14:02 ` Yang, Sheng
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=4CEBCA5C.8040504@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
--cc=mtosatti@redhat.com \
--cc=sheng.yang@intel.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.