Received: from eggs.gnu.org ([140.186.70.92]:51709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB8gg-0008LZ-5X for qemu-devel@nongnu.org; Tue, 04 Oct 2011 13:21:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RB8gf-00051n-87 for qemu-devel@nongnu.org; Tue, 04 Oct 2011 13:21:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB8gf-00051j-17 for qemu-devel@nongnu.org; Tue, 04 Oct 2011 13:21:49 -0400 From: Juan Quintela In-Reply-To: <1317744432-1874-3-git-send-email-marcandre.lureau@redhat.com> (=?utf-8?Q?=22Marc-Andr=C3=A9?= Lureau"'s message of "Tue, 4 Oct 2011 18:07:12 +0200") References: <1317744432-1874-1-git-send-email-marcandre.lureau@redhat.com> <1317744432-1874-3-git-send-email-marcandre.lureau@redhat.com> Date: Tue, 04 Oct 2011 19:21:33 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] hda: do not mix output and input stream states, RHBZ #740493 Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9_Lureau?= Cc: alevy@redhat.com, yhalperi@redhat.com, qemu-devel@nongnu.org, =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , kraxel@redhat.com "Marc-Andr=C3=A9 Lureau" wrote: > Windows 7 may use the same stream number for input and output. > Current code will confuse streams. > > NB: I wonder if this patch breaks migration code because of > this change: > - VMSTATE_BOOL_ARRAY(running, HDAAudioState, 16), > + VMSTATE_BOOL_ARRAY(running, HDAAudioState, 2 * 16), It does :-( Two questions to know how to handle this. a) My understanding of this patch is that we move from an array of 16 bools representing anything to one array where the 1st 16 represent if there are input and the 2nd 16's reprosenting if there are output for that channel. So, what we should do if we migrate from one old version that only has 16 bools? My understanding is that copying directly is not gonna work? b) Just in case it makes "compatibility" easier. Is the running array normally all false or similar? If so, we could just sent the other 16th values only if they are different of false. (if this is true, it is interesting to put in the 1st slots the ones that are more probable to be true). Later, Juan.