From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1Prf-0005LW-0B for qemu-devel@nongnu.org; Wed, 17 Dec 2014 20:26:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1PrZ-0004QX-TD for qemu-devel@nongnu.org; Wed, 17 Dec 2014 20:26:50 -0500 Received: from ozlabs.org ([2401:3900:2:1::2]:37709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1PrZ-0004PK-Hj for qemu-devel@nongnu.org; Wed, 17 Dec 2014 20:26:45 -0500 Date: Thu, 18 Dec 2014 12:13:09 +1100 From: David Gibson Message-ID: <20141218011309.GD12159@voom.redhat.com> References: <1418382822-25151-1-git-send-email-dgilbert@redhat.com> <1418382822-25151-5-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cHMo6Wbp1wrKhbfi" Content-Disposition: inline In-Reply-To: <1418382822-25151-5-git-send-email-dgilbert@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 4/5] Split the QEMU buffered file code out List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: amit.shah@redhat.com, peter.maydell@linaro.org, qemu-devel@nongnu.org, quintela@redhat.com --cHMo6Wbp1wrKhbfi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 12, 2014 at 11:13:41AM +0000, Dr. David Alan Gilbert (git) wrot= e: > From: "Dr. David Alan Gilbert" >=20 > The splitting of qemu-file and addition of the buffered file landed > at the same time; so now split the buffered file code out. >=20 > Signed-off-by: Dr. David Alan Gilbert > --- > migration/Makefile.objs | 2 +- > migration/qemu-file-buf.c | 486 ++++++++++++++++++++++++++++++++++++++++= ++++++ > migration/qemu-file.c | 455 ----------------------------------------= --- > tests/Makefile | 3 +- > 4 files changed, 489 insertions(+), 457 deletions(-) > create mode 100644 migration/qemu-file-buf.c >=20 > diff --git a/migration/Makefile.objs b/migration/Makefile.objs > index ce1e3c7..d929e96 100644 > --- a/migration/Makefile.objs > +++ b/migration/Makefile.objs > @@ -1,6 +1,6 @@ > common-obj-y +=3D migration.o tcp.o > common-obj-y +=3D vmstate.o > -common-obj-y +=3D qemu-file.o qemu-file-unix.o qemu-file-stdio.o > +common-obj-y +=3D qemu-file.o qemu-file-buf.o qemu-file-unix.o qemu-file= -stdio.o > common-obj-y +=3D xbzrle.o > =20 > common-obj-$(CONFIG_RDMA) +=3D rdma.o > diff --git a/migration/qemu-file-buf.c b/migration/qemu-file-buf.c > new file mode 100644 > index 0000000..d33dd44 > --- /dev/null > +++ b/migration/qemu-file-buf.c > @@ -0,0 +1,486 @@ > +/* > + * QEMU System Emulator > + * > + * Copyright (c) 2003-2008 Fabrice Bellard Bit hard to believe that only Fabrice listed on this file is correct, given the buffered file stuff is fairly new. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --cHMo6Wbp1wrKhbfi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUkiolAAoJEGw4ysog2bOSvxwP+wZpJ/Ljc55tLdBB2GeqjX9y DCd9YA7jbJ36Ud1jqkirRA+xlB0d6jiu19TzqRfnOB3uaioSvUlHMo0d7JRs5DNO K0NSCyMpSCYXJNVT5kGf417fm6ymNCOSmwhG8BiSjYeeBjTno2PP1aclnT0wCBg+ dN2dArWdNffQFjZu+nJj3jdIlqCjvVsMxZaTvLeo5ZBgRnIED7Y4zIBZgZwaK4Z3 d7fYQj37Y4KcAnx6vdLF+UZ+0QeFOKS+RfICXpfq8FtEXliWtZ18YrvEaTk6NRAo g4IbeoP8VJ2WcGt+jhVbITuos9XMZzvXNIdDaqo4oWU4rTcavjoRcZzZVtXSNH+y LYNmF2AeZ8dj2l2GgQe0AlwbxX7K7eEv03GHtsGqlbmAImuGE5cudlRQXmru6AfC 02qvp3I/Mxda4J6L9hSJkB9+jXiO9VNKHYVsrmvIvaGWU1i0s2NVyrDv+FN9+SlN ELZpWDsB0Kr38j8Yqn+s079p+hXv/mTfOitgw4B/wma2dsQucYkos/SeVVteMc6Q 6kASZYO4Gi7B/T82SDSeVSLgi8KU/fCm3692qV1PtWZdM/Qml4fTy9hoxtIC/KKl vUclKD9lfswNg5+4A7IdfvYzaAra9xHgOqYPqzZsI/LHA3R7LST+IdHxn5vsOT8y z4TdUSFXfP/mvfgoY0Y0 =J3tl -----END PGP SIGNATURE----- --cHMo6Wbp1wrKhbfi--