From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ef5Ro-0001Qp-M2 for qemu-devel@nongnu.org; Fri, 26 Jan 2018 09:57:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ef5Ro-0003TT-1B for qemu-devel@nongnu.org; Fri, 26 Jan 2018 09:57:44 -0500 Received: from mail-ot0-x241.google.com ([2607:f8b0:4003:c0f::241]:43877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ef5Rh-0003P1-1T for qemu-devel@nongnu.org; Fri, 26 Jan 2018 09:57:43 -0500 Received: by mail-ot0-x241.google.com with SMTP id p36so611596otd.10 for ; Fri, 26 Jan 2018 06:57:36 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <3d73ed91-c1be-4d32-e3de-b945dea52ae5@amsat.org> References: <1512670493-18114-1-git-send-email-peter.maydell@linaro.org> <1512670493-18114-2-git-send-email-peter.maydell@linaro.org> <3d73ed91-c1be-4d32-e3de-b945dea52ae5@amsat.org> From: Peter Maydell Date: Fri, 26 Jan 2018 14:34:04 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Qemu-arm] [PATCH 1/6] hw/arm/virt: Check that the CPU realize method succeeded List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= Cc: qemu-arm , QEMU Developers , "Richard W . M . Jones" , Eduardo Habkost , "patches@linaro.org" On 26 January 2018 at 14:32, Philippe Mathieu-Daud=C3=A9 = wrote: > On 12/07/2017 03:14 PM, Peter Maydell wrote: >> We were passing a NULL error pointer to the object_property_set_bool() >> call that realizes the CPU object. This meant that we wouldn't detect >> failure, and would plough blindly on to crash later trying to use a >> NULL CPU object pointer. Detect errors and fail instead. >> >> In particular, this will be necessary to detect the user error >> of using "-cpu host" without "-enable-kvm" once we make the host >> CPU type be registered unconditionally rather than only in >> kvm_arch_init(). >> >> Signed-off-by: Peter Maydell > > Reviewed-by: Philippe Mathieu-Daud=C3=A9 Thanks; I already put this patch in master (commit c88bc3e0dbe7), though. -- PMM