From: Gerd Hoffmann Subject: Re: [Qemu-devel] [PATCH 1/7] xen: groundwork for xen support Date: Mon, 04 Aug 2008 20:01:37 +0200 Message-ID: <48974401.5040502@redhat.com> References: <1217865045-10722-1-git-send-email-kraxel@redhat.com> <1217865045-10722-2-git-send-email-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Blue Swirl Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org List-Id: xen-devel@lists.xenproject.org Blue Swirl wrote: > On 8/4/08, Gerd Hoffmann wrote: >> - allow xenpv machines run without disk and kernel specified >> by adding a nodisk_ok field to QEMUMachine. > > Nice idea, this would be a useful feature by itself. Yes, some embedded devices probably can use that too according to the source code comment. Guess thats why anthony suggested to do it that way, and I liked the idea too, so I just did ;) >> + $(XEN_OBJS) : CFLAGS += -Wall -Wmissing-prototypes -Wstrict-prototypes > > These aren't needed for Xen. Though I wonder why at least -Wall > -Wstrict-prototypes could not be added globally. IIRC I tried to turn them on globally and found myself swamped with warnings. So I took the easy way out and enabled them only for the xen bits I'm working on. I like those warnings, they catch sloppyness and help writing clean code. They are in no way required though. We can add them globally nevertheless, I can keep them as local patch, I don't mind much. >> + if (-1 != xen_present) > > This style looks alien to me. Do you really find it readable? Bad habit. gcc warns these days on "if (foo = 42)", so the reason to write "if (42 = foo)" is gone. I'm still doing that for -- say -- historical reasons? cheers, Gerd -- http://kraxel.fedorapeople.org/xenner/