Received: from eggs.gnu.org ([2001:4830:134:3::10]:45597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQZ0p-00009g-5b for qemu-devel@nongnu.org; Mon, 30 Sep 2013 04:39:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQZ0j-0001OG-GJ for qemu-devel@nongnu.org; Mon, 30 Sep 2013 04:39:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQZ0j-0001OA-6T for qemu-devel@nongnu.org; Mon, 30 Sep 2013 04:39:21 -0400 From: Markus Armbruster References: <1375276272-15988-1-git-send-email-armbru@redhat.com> <52484426.60607@weilnetz.de> Date: Mon, 30 Sep 2013 10:39:13 +0200 In-Reply-To: <52484426.60607@weilnetz.de> (Stefan Weil's message of "Sun, 29 Sep 2013 17:15:50 +0200") Message-ID: <87a9iuk8jy.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3 for 1.6 0/8] Guest memory allocation fixes & cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: peter.maydell@linaro.org, stefano.stabellini@eu.citrix.com, mtosatti@redhat.com, agraf@suse.de, qemu-devel@nongnu.org, borntraeger@de.ibm.com, mkletzan@redhat.com, pbonzini@redhat.com, afaerber@suse.de, rth@twiddle.net Stefan Weil writes: > Am 31.07.2013 15:11, schrieb Markus Armbruster: >> All I wanted to do is exit(1) instead of abort() on guest memory >> allocation failure [07/08]. But that lead me into a minor #ifdef bog, >> and here's what I brought back. Enjoy! >> >> Testing: >> * Christian Borntraeger reports v1 works fine under LPAR (new S390 >> KVM, i.e. generic allocation) and as second guest under z/VM (old >> S390 KVM, i.e. legacy S390 allocation). Thanks for testing, and for >> catching a stupid mistake. v2 differs from v1 only in code that >> isn't reachable on S390. [...] > Two patches from this series seem to cause compiler errors > in latest QEMU ona 32 bit Ubuntu precise host: > > CC arm-softmmu/exec.o > exec.c:752:51: error: initialization from incompatible pointer type > [-Werror] > exec.c: In function 'qemu_ram_alloc_from_ptr': > exec.c:1139:32: error: comparison of distinct pointer types lacks a cast > [-Werror] > exec.c: In function 'qemu_ram_remap': > exec.c:1283:21: error: comparison of distinct pointer types lacks a cast > [-Werror] > > There is a mismatch of function prototypes (size_t <-> ram_addr_t): > > void *qemu_anon_ram_alloc(size_t size); > static void *(*phys_mem_alloc)(ram_addr_t size) = qemu_anon_ram_alloc; > > It's strange that the buildbots don't complain. Indeed. Thanks for posting a fix!