From: Avi Kivity <avi@redhat.com>
To: Sasha Levin <levinsasha928@gmail.com>
Cc: louzhengwei@huawei.com, wusongwei@huawei.com,
kvm@vger.kernel.org, hanweidong@huawei.com,
qemu-devel@nongnu.org, wuchangyi@huawei.com,
xiaowei.yang@huawei.com, james.chenjiabo@huawei.com,
zanghongyong@huawei.com, cam@cs.ualberta.ca
Subject: Re: [Qemu-devel] [PATCH] ivshmem: use PIO for BAR0(Doorbell) instead of MMIO to reduce notification time
Date: Thu, 17 Nov 2011 17:10:34 +0200 [thread overview]
Message-ID: <4EC523EA.1060902@redhat.com> (raw)
In-Reply-To: <1321541329.8010.3.camel@lappy>
On 11/17/2011 04:48 PM, Sasha Levin wrote:
> On Thu, 2011-11-17 at 16:36 +0200, Avi Kivity wrote:
> > On 11/14/2011 05:56 AM, zanghongyong@huawei.com wrote:
> > > From: Hongyong Zang <zanghongyong@huawei.com>
> > >
> > > Ivshmem(nahanni) is a mechanism for sharing host memory with VMs running on the same host. Currently, guest notifies qemu by reading or writing ivshmem device's PCI MMIO BAR0(Doorbell).
> > >
> > > This patch, changes this PCI MMIO BAR0(Doorbell) to PIO. And we find guest accesses PIO BAR 30% faster than MMIO BAR.
> > >
> > > CharDriverState **eventfd_chr;
> > > CharDriverState *server_chr;
> > > - MemoryRegion ivshmem_mmio;
> > > + MemoryRegion ivshmem_pio;
> > >
> > > - pcibus_t mmio_addr;
> > > + pcibus_t pio_addr;
> >
> >
> > This is a backwards incompatible change. The way to accomplish this is
> > to add a new BAR which aliases the old one. The new BAR should not be
> > visible on guests created with -M pc-1.0 and below. Please also update
> > the spec so that driver authors can make use of the new feature.
>
> Can we add an optional BAR 3 which does exactly what BAR 0 does, but is
> in PIO space?
>
> This will allow us to extend the spec instead of changing it, and in
> turn drivers could remain compatible with QEMU and other device
> implementations.
Yes, that's what I meant.
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2011-11-17 15:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-14 3:56 [Qemu-devel] [PATCH] ivshmem: use PIO for BAR0(Doorbell) instead of MMIO to reduce notification time zanghongyong
2011-11-15 18:43 ` Cam Macdonell
2011-11-17 12:42 ` Zang Hongyong
2011-11-17 14:36 ` Avi Kivity
2011-11-17 14:48 ` Sasha Levin
2011-11-17 15:10 ` Avi Kivity [this message]
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=4EC523EA.1060902@redhat.com \
--to=avi@redhat.com \
--cc=cam@cs.ualberta.ca \
--cc=hanweidong@huawei.com \
--cc=james.chenjiabo@huawei.com \
--cc=kvm@vger.kernel.org \
--cc=levinsasha928@gmail.com \
--cc=louzhengwei@huawei.com \
--cc=qemu-devel@nongnu.org \
--cc=wuchangyi@huawei.com \
--cc=wusongwei@huawei.com \
--cc=xiaowei.yang@huawei.com \
--cc=zanghongyong@huawei.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;
as well as URLs for NNTP newsgroup(s).