Received: from eggs.gnu.org ([2001:4830:134:3::10]:45632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkghD-00025c-HH for qemu-devel@nongnu.org; Thu, 15 Sep 2016 20:08:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkgh8-0005B2-FW for qemu-devel@nongnu.org; Thu, 15 Sep 2016 20:07:58 -0400 Sender: Paolo Bonzini References: <1473982972-8884-1-git-send-email-jsnow@redhat.com> From: Paolo Bonzini Message-ID: <1189107a-cd3c-44c4-e38b-0ebb5a350132@redhat.com> Date: Fri, 16 Sep 2016 02:06:50 +0200 MIME-Version: 1.0 In-Reply-To: <1473982972-8884-1-git-send-email-jsnow@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 0/2] block: allow flush on devices with open tray List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , qemu-block@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, qemu-stable@nongnu.org, qemu-devel@nongnu.org On 16/09/2016 01:42, John Snow wrote: > One more try. > > The move to blk_flush altered the behavior of migration and flushing > nodes that are not reachable via the guest, but are still reachable > via QEMU and may or may not need to be flushed. > > This is likely the simplest solution for now until we nail down our > policy a bit more. > > This is intended for 2.6.2 and/or 2.7.1, to fix problems with libvirt > et al being unable to migrate QEMU when the CDROM tray is open. > > v3: > Trying to take a hint from Kevin, reinstating bdrv_flush_all. > If it's not what we want, we can try moving back to v2, > acknowledging that a nicer solution in the future: > (A) Can skip flushing on devices that just don't need it, and > (B) Optionally institutes some sort of flush-on-eject policy. If you move flushing from platform_fixed_ioport_writew's blk_flush_all to blk_flush calls in pci_piix3_xen_ide_unplug, you can get rid of blk_flush_all completely. Paolo