From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwzuH-0001LV-RY for qemu-devel@nongnu.org; Sun, 11 Oct 2009 11:00:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwzuC-0001FL-Px for qemu-devel@nongnu.org; Sun, 11 Oct 2009 11:00:21 -0400 Received: from [199.232.76.173] (port=41893 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwzuC-0001Ej-8k for qemu-devel@nongnu.org; Sun, 11 Oct 2009 11:00:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42376) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MwzuB-0008KH-HD for qemu-devel@nongnu.org; Sun, 11 Oct 2009 11:00:15 -0400 Date: Sun, 11 Oct 2009 17:00:05 +0200 From: Gleb Natapov Subject: Re: [Qemu-devel] Re: [PATCH 2/3] qemu: make cirrus init value pci spec compliant Message-ID: <20091011150005.GQ16702@redhat.com> References: <20091008160623.GA13710@redhat.com> <4ACE0FC6.3050908@redhat.com> <20091008184011.GA6576@shareable.org> <20091011133626.GA10229@redhat.com> <20091011134559.GN16702@redhat.com> <20091011135240.GA10277@redhat.com> <20091011135748.GO16702@redhat.com> <20091011143535.GA10401@redhat.com> <20091011143946.GP16702@redhat.com> <20091011144545.GB10429@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091011144545.GB10429@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Anthony Liguori , Avi Kivity , kvm-devel , "qemu-devel@nongnu.org" On Sun, Oct 11, 2009 at 04:45:46PM +0200, Michael S. Tsirkin wrote: > > AFAIR it is not writable on plain qemu. > > What makes it non-writeable? > It goes: > bios_offset = qemu_ram_alloc(bios_size); > ret = load_image(filename, qemu_get_ram_ptr(bios_offset)); > Does qemu_ram_alloc allocate read-only memory then? > Look closer. -- Gleb.