From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UY606-0000ci-CQ for qemu-devel@nongnu.org; Thu, 02 May 2013 22:45:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UY604-0002Fk-El for qemu-devel@nongnu.org; Thu, 02 May 2013 22:45:34 -0400 Received: from mail-qe0-f51.google.com ([209.85.128.51]:47137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UY604-0002FT-9k for qemu-devel@nongnu.org; Thu, 02 May 2013 22:45:32 -0400 Received: by mail-qe0-f51.google.com with SMTP id x7so685649qeu.10 for ; Thu, 02 May 2013 19:45:31 -0700 (PDT) From: Liu Ping Fan Date: Fri, 3 May 2013 10:45:16 +0800 Message-Id: <1367549122-2948-1-git-send-email-qemulist@gmail.com> Subject: [Qemu-devel] [PATCH v2 0/6] proposal to make hostmem listener RAM unplug safe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Anthony Liguori , Jan Kiszka , Vasilis Liaskovitis , Stefan Hajnoczi , Paolo Bonzini v1->v2: 1.split RCU prepared style update and monitor the RAM-Device refcnt into two patches (patch 2,4) 2.introduce AddrSpaceMem, which is similar to HostMem, but based on address space, while the original HostMem only server system memory address space Liu Ping Fan (6): hostmem: make hostmem single, not per Vring related hostmem: AddressSpace has its own map and maintained by RCU prepared style memory: add ref/unref interface for MemroyRegionOps hostmem: hostmem listener pin RAM-Device by refcnt Vring: use hostmem's RAM safe api virtio-blk: release reference to RAM's memoryRegion exec.c | 1 + hw/block/dataplane/virtio-blk.c | 52 ++++++++--- hw/virtio/dataplane/hostmem.c | 168 +++++++++++++++++++++++++-------- hw/virtio/dataplane/vring.c | 100 +++++++++++++++----- include/exec/memory.h | 11 ++ include/hw/virtio/dataplane/hostmem.h | 25 +++--- include/hw/virtio/dataplane/vring.h | 5 +- memory.c | 18 ++++ 8 files changed, 289 insertions(+), 91 deletions(-) -- 1.7.4.4