Received: from eggs.gnu.org ([2001:4830:134:3::10]:58762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XL8Pr-0007cT-Rd for qemu-devel@nongnu.org; Sat, 23 Aug 2014 06:19:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XL8Pk-0001Fr-Db for qemu-devel@nongnu.org; Sat, 23 Aug 2014 06:19:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XL8Pk-0001Fl-77 for qemu-devel@nongnu.org; Sat, 23 Aug 2014 06:19:16 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7NAJDPS006693 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 23 Aug 2014 06:19:14 -0400 From: Laszlo Ersek Date: Sat, 23 Aug 2014 12:19:05 +0200 Message-Id: <1408789147-18675-1-git-send-email-lersek@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] pflash (UEFI varstore) migration shortcut for libvirt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michal Privoznik , Eric Blake , "Daniel P. Berrange" , Paolo Bonzini , Kevin Wolf , Stefan Hajnoczi , Juan Quintela , David Gilbert , Laszlo Ersek , qemu devel list Libvirt is growing support for x86_64 OVMF guests: http://www.redhat.com/archives/libvir-list/2014-August/msg01045.html An important feature of such guests is the persistent store for non-volatile UEFI variables. This is implemented with if=pflash drives. The referenced libvirt patchset sets up the varstore files for single-host use. Wrt. migration, two choices have been considered: (a) full-blown live storage migration for the drives backing pflash devices, (b) vs. a shortcut that exploits the special nature of pflash drives (namely, their minuscule size, and a RAMBlock that keeps the full contents of each pflash drive visible to the guest, and is up-to-date, at all times.) Patch 1/2 is a trivial cleanup (some DPRINTF() calls in pflash_cfi01 have bit-rotted). Patch 2/2 seeks to implement choice (b), which is what the libvirt patchset relies on for migration. Thanks, Laszlo Laszlo Ersek (2): pflash_cfi01: fixup stale DPRINTF() calls pflash_cfi01: write flash contents to bdrv on incoming migration hw/block/pflash_cfi01.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) -- 1.8.3.1