[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150915181319.097e341c.cornelia.huck@de.ibm.com>
Date: Tue, 15 Sep 2015 18:13:19 +0200
From: Cornelia Huck <cornelia.huck@...ibm.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: Jason Wang <jasowang@...hat.com>, gleb@...nel.org,
kvm@...r.kernel.org, linux-kernel@...r.kernel.org, mst@...hat.com
Subject: Re: [PATCH V6 6/6] kvm: add fast mmio capabilitiy
On Tue, 15 Sep 2015 17:07:55 +0200
Paolo Bonzini <pbonzini@...hat.com> wrote:
> On 15/09/2015 08:41, Jason Wang wrote:
> > +With KVM_CAP_FAST_MMIO, a zero length mmio eventfd is allowed for
> > +kernel to ignore the length of guest write and get a possible faster
> > +response. Note the speedup may only work on some specific
> > +architectures and setups. Otherwise, it's as fast as wildcard mmio
> > +eventfd.
>
> I don't really like tying the capability to MMIO, especially since
> zero length ioeventfd is already accepted for virtio-ccw.
Actually, zero length ioeventfd does not make sense for virtio-ccw; we
just don't check it (although we probably should).
>
> What about the following?
>
> diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
> index 7a3cb48a644d..247944071cc8 100644
> --- a/Documentation/virtual/kvm/api.txt
> +++ b/Documentation/virtual/kvm/api.txt
> @@ -1627,11 +1627,10 @@ to the registered address is equal to datamatch in struct kvm_ioeventfd.
> For virtio-ccw devices, addr contains the subchannel id and datamatch the
> virtqueue index.
>
> -With KVM_CAP_FAST_MMIO, a zero length mmio eventfd is allowed for
> -kernel to ignore the length of guest write and get a possible faster
> -response. Note the speedup may only work on some specific
> -architectures and setups. Otherwise, it's as fast as wildcard mmio
> -eventfd.
> +With KVM_CAP_IOEVENTFD_ANY_LENGTH, a zero length ioeventfd is allowed, and
> +the kernel will ignore the length of guest write and get a faster vmexit.
s/get/may get/ ?
> +The speedup may only apply to specific architectures, but the ioeventfd will
> +work anyway.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists