From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: Re: [PATCH 2/3] qemu: make cirrus init value pci spec compliant Date: Sun, 11 Oct 2009 17:00:05 +0200 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 Cc: Anthony Liguori , Avi Kivity , kvm-devel , "qemu-devel@nongnu.org" To: "Michael S. Tsirkin" Return-path: Content-Disposition: inline In-Reply-To: <20091011144545.GB10429@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.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.