Received: from eggs.gnu.org ([2001:4830:134:3::10]:38949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDsOV-0006XX-EK for qemu-devel@nongnu.org; Mon, 26 Aug 2013 04:43:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VDsOP-0004Iy-4x for qemu-devel@nongnu.org; Mon, 26 Aug 2013 04:43:27 -0400 References: <1377249737-12570-1-git-send-email-aik@ozlabs.ru> <24C2B209-2082-4AF8-A8FB-1FF8A8B7751B@suse.de> <1377468637.3819.27.camel@pasglop> <87vc2tysur.fsf@linux.vnet.ibm.com> <1377498171.3819.37.camel@pasglop> Mime-Version: 1.0 (1.0) In-Reply-To: <1377498171.3819.37.camel@pasglop> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <9B59EB2A-3DB8-499F-9C94-7CB03704E429@suse.de> From: Alexander Graf Date: Mon, 26 Aug 2013 10:43:13 +0200 Subject: Re: [Qemu-devel] [PATCH] spapr-vscsi: Adding VSCSI capabilities List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt Cc: Alexey Kardashevskiy , Paolo Bonzini , "qemu-ppc@nongnu.org" , "qemu-devel@nongnu.org" , Nikunj A Dadhania Am 26.08.2013 um 08:22 schrieb Benjamin Herrenschmidt : > On Mon, 2013-08-26 at 06:44 +0100, Alexander Graf wrote: >>> + cap.flags =3D 0; >>> + cap.migration.ecl =3D 0; >>> + cap.reserve.type =3D 0; >>> + cap.migration.common.server_support =3D 0; >>> + cap.reserve.common.server_support =3D 0; >>=20 >> My question stands unanswered. Is this just memset(0)? >=20 > If it is, then why bother reading it in the first place ? :-) Because this is a revision that incorporates other feedback from that same r= eview, so I'm quite sure he just missed it :) >=20 > Note that even if it is, I'd rather keep it that way as we are > eventually going to populate some stuff and so we have just the > placeholders to do it. Do we ever need to preserve random fields in that struct? Or would it be cle= arer to just set the whole thing to 0 and then go from there? It's definitely a case-by-case decision which way is better, but setting all= fields by hand gives you potential for missing to set one. Alex >=20 > Cheers, > Ben. >=20 >=20