From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:50782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaIGz-0006w7-1L for qemu-devel@nongnu.org; Mon, 12 Dec 2011 21:39:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaIGx-0000jf-Py for qemu-devel@nongnu.org; Mon, 12 Dec 2011 21:39:17 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:33445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaIGx-0000ii-CK for qemu-devel@nongnu.org; Mon, 12 Dec 2011 21:39:15 -0500 Received: from huawei.com (szxga03-in [172.24.2.9]) by szxga03-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LW4003X8FAP0D@szxga03-in.huawei.com> for qemu-devel@nongnu.org; Tue, 13 Dec 2011 10:37:38 +0800 (CST) Received: from szxrg01-dlp.huawei.com ([172.24.2.119]) by szxga03-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LW4000I1FAPTH@szxga03-in.huawei.com> for qemu-devel@nongnu.org; Tue, 13 Dec 2011 10:37:37 +0800 (CST) Date: Tue, 13 Dec 2011 09:42:45 +0800 From: zanghongyong@huawei.com Message-id: <1323740568-17692-1-git-send-email-zanghongyong@huawei.com> MIME-version: 1.0 Content-type: text/plain Content-transfer-encoding: 7BIT Subject: [Qemu-devel] [PATCH v3 0/3] ivshmem: add a new PIO BAR4(Doorbell) besides MMIO BAR0 to reduce notification time List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, kvm@vger.kernel.org Cc: wusongwei@huawei.com, hanweidong@huawei.com, louzhengwei@huawei.com, xiaowei.yang@huawei.com, zanghongyong@huawei.com, avi@redhat.com, cam@cs.ualberta.ca From: Hongyong Zang This patch series, adds a PIO BAR4 for guest notifying qemu. And the new notification way of PIO BAR4 reduces 30% time in comparison with the original MMIO BAR0 way. Meantime, this patch adds a memory API named kvm_set_ioeventfd_pio_long which is about ioeventfd for PIO long. Also, this patch introduces a new feature named IVSHMEM_PIO_NOTIFY to make PIO BAR4 disappeared for compatible with machine type pc-1.0 or blow. Notes: the patch series are based on the former patch "[PATCH] ivshmem: fix guest unable to start with ioeventfd". In v3, some changes come from Avi and Cam's comments: -split the v2 patch to an infrastructure patch(memory API) and an ivshmem patch -change BAR3 to BAR4 so that the shared memory region could be made a 64-bit BAR(take BAR2 and BAR3) -make BAR4 disappeared for compatible with machine type pc-1.0 or blow -update the ivshmem spec Hongyong Zang (3): memory: add a memory API about ioeventfd for PIO long ivshmem: add a new PIO BAR4(Doorbell) to reduce notification time ivshmem: update the spec docs/specs/ivshmem_device_spec.txt | 8 ++++++-- hw/ivshmem.c | 34 ++++++++++++++++++++++++++++++++-- hw/pc_piix.c | 28 ++++++++++++++++++++++++++++ kvm-all.c | 23 +++++++++++++++++++++++ kvm-stub.c | 5 +++++ kvm.h | 1 + memory.c | 20 ++++++++++++++++---- 7 files changed, 111 insertions(+), 8 deletions(-)