From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDDwF-0006L5-PM for qemu-devel@nongnu.org; Wed, 06 Mar 2013 07:59:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDDwE-00089f-OF for qemu-devel@nongnu.org; Wed, 06 Mar 2013 07:59:19 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:61704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDDwE-00089X-At for qemu-devel@nongnu.org; Wed, 06 Mar 2013 07:59:18 -0500 Received: by mail-wg0-f48.google.com with SMTP id 16so7303206wgi.3 for ; Wed, 06 Mar 2013 04:59:17 -0800 (PST) Date: Wed, 6 Mar 2013 13:59:12 +0100 From: Stefan Hajnoczi Message-ID: <20130306125912.GF1954@stefanha-thinkpad.muc.redhat.com> References: <24E144B8C0207547AD09C467A8259F7557A70D81@lisa.maurer-it.com> <51275C5A.50301@redhat.com> <24E144B8C0207547AD09C467A8259F7557A70E6A@lisa.maurer-it.com> <51276D7F.2050000@redhat.com> <24E144B8C0207547AD09C467A8259F7557A7F6FB@lisa.maurer-it.com> <5127AFDC.1060403@redhat.com> <24E144B8C0207547AD09C467A8259F7557A7F7B2@lisa.maurer-it.com> <5127B3B3.20308@redhat.com> <24E144B8C0207547AD09C467A8259F7557AC2821@lisa.maurer-it.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24E144B8C0207547AD09C467A8259F7557AC2821@lisa.maurer-it.com> Subject: Re: [Qemu-devel] [PATCH v4 0/6] Efficient VM backup for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dietmar Maurer Cc: Kevin Wolf , Paolo Bonzini , "qemu-devel@nongnu.org" , Wenchao Xia On Mon, Feb 25, 2013 at 04:35:09PM +0000, Dietmar Maurer wrote: > > >>> If we use nbd, how can we pass additional information to the other > > >>> side, for example information about unallocated regions? > > >>> > > >> > > >> You can either send trim commands, or just skip those regions and let > > >> the other side figure it out. > > > > > > But we are lost if we want to transfer something else? I am currently > > > not sure what we want to transfer, but I am sure we will find something in > > future. > > > > > > Or can we simply add a header to each write with additional information? > > > > Let's discuss it once we have a clearer picture of what that additional info would > > be. > > OK, just discovered such case. > > For example it would be nice to pass the size of the devices somehow? That is not necessary since the management tool that starts the VMA write process can pass this info (from 'query-block' QMP command): $ vma-writer --output backup-20130201.vma \ --add-file path/to/vm-config.xml \ --vmstate /tmp/backup-20130201.vmstate \ --nbd /tmp/backup-20130201.nbd \ --blockdev name=virtio-drive0,size=64424509440 \ --blockdev name=virtio-drive1,size=128849018880 Note that this syntax uses Paolo's suggestions for UNIX domain sockets and NBD named exports. Stefan