Received: from eggs.gnu.org ([208.118.235.92]:42908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZKqu-00088Z-FX for qemu-devel@nongnu.org; Mon, 06 May 2013 08:49:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZKqt-0007mq-3y for qemu-devel@nongnu.org; Mon, 06 May 2013 08:49:12 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:57197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZKqs-0007mf-Qn for qemu-devel@nongnu.org; Mon, 06 May 2013 08:49:11 -0400 Received: by mail-pd0-f169.google.com with SMTP id 14so2014890pdc.28 for ; Mon, 06 May 2013 05:49:10 -0700 (PDT) From: Liu Ping Fan Date: Mon, 6 May 2013 20:48:55 +0800 Message-Id: <1367844540-9024-1-git-send-email-qemulist@gmail.com> Subject: [Qemu-devel] [PATCH v3 0/5] 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 Open issue: As to [PATCH v3 2/5] hostmem: AddressSpace has its own map and maintained by RCU prepared style, Paolo may want to use memory_region_find() to re-implement hostmem. It is still under discussion v2->v3: 1.Drop the memory region's ref in virtio-blk. Now all the reference are kept inside Vring. 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 *** BLURB HERE *** Liu Ping Fan (5): 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 exec.c | 2 + hw/block/dataplane/virtio-blk.c | 8 -- hw/virtio/dataplane/hostmem.c | 150 ++++++++++++++++++++++++--------- hw/virtio/dataplane/vring.c | 98 ++++++++++++++++----- include/exec/memory.h | 10 ++ include/hw/virtio/dataplane/hostmem.h | 33 +++++--- include/hw/virtio/dataplane/vring.h | 16 ++++- memory.c | 18 ++++ 8 files changed, 251 insertions(+), 84 deletions(-) -- 1.7.4.4