Received: from eggs.gnu.org ([2001:4830:134:3::10]:42343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beN75-00026C-Gh for qemu-devel@nongnu.org; Mon, 29 Aug 2016 10:00:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beN70-0000BV-4O for qemu-devel@nongnu.org; Mon, 29 Aug 2016 10:00:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beN6z-0000BR-Pd for qemu-devel@nongnu.org; Mon, 29 Aug 2016 10:00:29 -0400 Date: Mon, 29 Aug 2016 16:00:25 +0200 From: Kashyap Chamarthy Message-ID: <20160829140025.tbqvdprxzwolvaha@eukaryote> References: <110743700.1285610.1472475080274.ref@mail.yahoo.com> <110743700.1285610.1472475080274@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <110743700.1285610.1472475080274@mail.yahoo.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] A question about postcopy safety List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: liutgnu@yahoo.com Cc: "dgilbert@redhat.com" , qemu-devel@nongnu.org On Mon, Aug 29, 2016 at 12:51:20PM +0000, liutgnu@yahoo.com wrote: > Hi=A0David,I'm studying the process of postcopy migration, and I found > that the memory pages migrated from source to destination are not > encrypted. Does this make the VM vulnerable if it's memory has been > tampered with during postcopy migration? If you already haven't, you might want to take a look at this post, which discusses the security details during live migration with post-copy. https://www.berrange.com/posts/2016/08/16/improving-qemu-security-part-7-= tls-support-for-migration/ It also has an example of setting the 'tls-creds' field with 'migrate-set-parameters' QMP command to use TLS, before triggering 'migrate' QMP command. > I think precopy has less risk because the source's memory is always > altering. If one page is tampered with during network transfer, with > source still running, then a later version of that page may keep > updating. So it would be quite difficult to track all different page > versions, and tamper with the final version of one page. >=20 > But when it comes to postcopy, the situation is riskier because one > specific page is only transferred once. It's easy to capture all > transferring memory pages, tamper and resend. >=20 > When the memory been tampered with, the safety of the VM will be > compromised. >=20 > Any ideas? thank you!Liutao --=20 /kashyap