Received: from eggs.gnu.org ([2001:4830:134:3::10]:41413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bouUL-00041J-VL for qemu-devel@nongnu.org; Tue, 27 Sep 2016 11:40:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bouUK-0000ow-54 for qemu-devel@nongnu.org; Tue, 27 Sep 2016 11:40:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bouUJ-0000oO-UU for qemu-devel@nongnu.org; Tue, 27 Sep 2016 11:40:08 -0400 From: Markus Armbruster References: <87h998nvf6.fsf@dusky.pond.sub.org> <6280ba63-cbe9-c2d3-ba8f-7de1369f059e@redhat.com> <87vaxojgqw.fsf@dusky.pond.sub.org> <87ponvxcit.fsf@dusky.pond.sub.org> <7046636c-a89b-2991-083f-bf73bb29f070@redhat.com> <87lgydii9w.fsf@dusky.pond.sub.org> <1764179128.3091209.1474985640517.JavaMail.zimbra@redhat.com> Date: Tue, 27 Sep 2016 17:40:05 +0200 In-Reply-To: <1764179128.3091209.1474985640517.JavaMail.zimbra@redhat.com> (Paolo Bonzini's message of "Tue, 27 Sep 2016 10:14:00 -0400 (EDT)") Message-ID: <874m51e4h6.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v11 0/8] Add a generic loader List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , Peter Crosthwaite , Alistair Francis , "qemu-devel@nongnu.org Developers" , Christopher Covington Paolo Bonzini writes: > It does whatever cpu_physical_memory_write_rom (and hence > cpu_memory_rw_debug, which has more callers) do. > >> What happens when you try to monkey-patch and address that isn't >> connected to anything? > > /dev/null > >> What happens when you try to monkey-patch some device's ROM? > > Overwritten. > >> Memory-mapped I/O? > > Ignored. > >> What happens when you monkey-patch persistent memory, such as pflash >> backed by a block backend? > > Overwritten (but not flushed). > >> What happens if the address range crosses device boundaries? > > Writes over each area separately. Rejecting the ones that don't actually load stuff would be nice, but not a condition for merging this. >> >> If we decide to use this argument for the present interface design, I >> >> want it recorded in the code and commit messages. >> >> Fair request, don't you think? > > Yes, of course. Okay, looking forward to these improvements. Thanks!