From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAjy5-000474-My for qemu-devel@nongnu.org; Thu, 22 Mar 2012 11:30:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAjxv-0004Mk-M3 for qemu-devel@nongnu.org; Thu, 22 Mar 2012 11:30:25 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:64087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAjxv-0004Me-Ab for qemu-devel@nongnu.org; Thu, 22 Mar 2012 11:30:15 -0400 Received: by lbon3 with SMTP id n3so1796490lbo.4 for ; Thu, 22 Mar 2012 08:30:12 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4F6B3480.7010304@redhat.com> References: <1332345124-381-1-git-send-email-benoit.canet@gmail.com> <1332345124-381-5-git-send-email-benoit.canet@gmail.com> <4F6B3480.7010304@redhat.com> Date: Thu, 22 Mar 2012 15:30:12 +0000 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH V2 4/7] qed: add bdrv_invalidate_cache to be called after incoming live migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, Anthony Liguori , =?ISO-8859-1?Q?Beno=EEt_Canet?= , qemu-devel@nongnu.org, stefanha@linux.vnet.ibm.com On Thu, Mar 22, 2012 at 2:17 PM, Paolo Bonzini wrote: > Il 22/03/2012 15:15, Beno=EEt Canet ha scritto: >> >> I added this flag after seeing the following code in in bdrv_open_common= . >> >> =A0 =A0 /* >> =A0 =A0 =A0* Clear flags that are internal to the block layer before ope= ning the >> =A0 =A0 =A0* image. >> =A0 =A0 =A0*/ >> =A0 =A0 open_flags =3D flags & ~(BDRV_O_SNAPSHOT | BDRV_O_NO_BACKING); >> >> This lead me to believe that =A0bs->open_flags !=3D open_flags. > > Correct, see the first two patches in the series at > http://lists.gnu.org/archive/html/qemu-devel/2012-01/msg03467.html We mangle the flags but I guess what I'm asking is, does it even matter? Those two bits don't affect qed or qcow2 .bdrv_open(). If possible, I think we should use bs->open_flags. Stefan