From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuP4O-00065D-Jb for qemu-devel@nongnu.org; Tue, 10 Jun 2014 12:38:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuP4G-0003dz-Aj for qemu-devel@nongnu.org; Tue, 10 Jun 2014 12:38:44 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:50489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuP4G-0003dI-3H for qemu-devel@nongnu.org; Tue, 10 Jun 2014 12:38:36 -0400 Received: by mail-lb0-f169.google.com with SMTP id s7so4155500lbd.28 for ; Tue, 10 Jun 2014 09:38:34 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <539730FD.8070204@redhat.com> References: <1402411908-25821-1-git-send-email-peter.maydell@linaro.org> <1402411908-25821-2-git-send-email-peter.maydell@linaro.org> <53972F12.4030900@redhat.com> <539730FD.8070204@redhat.com> From: Peter Maydell Date: Tue, 10 Jun 2014 17:38:14 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 1/2] hw/arm/virt: Provide flash devices for boot ROMs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Michael Casadevall , QEMU Developers , Christoffer Dall , Patch Tracking On 10 June 2014 17:23, Paolo Bonzini wrote: > Il 10/06/2014 18:17, Peter Maydell ha scritto: > >>>> >> + create_one_flash("virt.flash0", flashbase, flashsize); >>>> >> + create_one_flash("virt.flash1", flashbase + flashsize, >>>> >> flashsize); >>> >>> > >>> > >>> > What happens if you specify both -bios and -drive if=pflash? Can you >>> > check >>> > that the user does not specify both? >> >> We'll create the device and then overlay it with the "ROM" >> image, same as for vexpress. (If the bios image is short >> then the underlying pflash contents will be visible.) > > > Could you provide slightly saner semantics for -M virt? :) Heh. How about: * if both bios_name and pflash drive 0 specified, this is an error * otherwise use whichever we have * (NB that bios_name + pflash drive 1 is a reasonable combination) vexpress should do this too, for consistency. (Actually ideally I'd just make bios_name be a convenient shortcut for specifying a block backend for pflash that's readonly and permits undersized backing files, but I don't think we can easily do that right now.) thanks -- PMM