From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbU3g-0001J6-Oy for qemu-devel@nongnu.org; Mon, 04 Jun 2012 05:58:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbU3e-0004v8-KP for qemu-devel@nongnu.org; Mon, 04 Jun 2012 05:58:44 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:46537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbU3e-0004ur-BK for qemu-devel@nongnu.org; Mon, 04 Jun 2012 05:58:42 -0400 From: Isaku Yamahata Date: Mon, 4 Jun 2012 18:58:38 +0900 Message-Id: Subject: [Qemu-devel] [PATCH v3 0/2] postcopy migration: umem: Linux char device for postcopy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: benoit.hudzia@gmail.com, aarcange@redhat.com, aliguori@us.ibm.com, quintela@redhat.com, stefanha@gmail.com, t.hirofuchi@aist.go.jp, dlaor@redhat.com, satoshi.itoh@aist.go.jp, mdroth@linux.vnet.ibm.com, yoshikawa.takuya@oss.ntt.co.jp, owasserm@redhat.com, avi@redhat.com, pbonzini@redhat.com This is Linux kernel driver for qemu/kvm postcopy live migration. This is used by qemu/kvm postcopy live migration patch. TODO: - Consider FUSE/CUSE option So far several mmap patches for FUSE/CUSE are floating around. (their purpose isn't different from our purpose, though). They haven't merged into the upstream yet. The driver specific part in qemu patches is modularized. So I expect it wouldn't be difficult to switch kernel driver to CUSE based driver. ioctl commands: UMEM_INIT: initialize umem device for qemu UMEM_MAKE_VMA_ANONYMOUS: make the specified vma in the qemu process This is _NOT_ implemented yet. anonymous I'm not sure whether this can be implemented or not. --- Changes v2 -> v3: - make fault handler killable - make use of read()/write() - documentation Changes version 1 -> 2: - make ioctl structures padded to align - un-KVM KVM_VMEM -> UMEM - dropped some ioctl commands as Avi requested Isaku Yamahata (2): export necessary symbols umem: chardevice for kvm postcopy Documentation/misc-devices/umem.txt | 303 ++++++++++++ drivers/char/Kconfig | 10 + drivers/char/Makefile | 1 + drivers/char/umem.c | 900 +++++++++++++++++++++++++++++++++++ include/linux/umem.h | 42 ++ mm/memcontrol.c | 1 + mm/mempolicy.c | 1 + mm/shmem.c | 1 + 8 files changed, 1259 insertions(+), 0 deletions(-) create mode 100644 Documentation/misc-devices/umem.txt create mode 100644 drivers/char/umem.c create mode 100644 include/linux/umem.h