From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsA5Y-0000Ie-Od for qemu-devel@nongnu.org; Tue, 31 Jan 2012 04:33:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsA5O-0002zr-NA for qemu-devel@nongnu.org; Tue, 31 Jan 2012 04:33:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:22019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsA5O-0002zj-GY for qemu-devel@nongnu.org; Tue, 31 Jan 2012 04:33:10 -0500 Message-ID: <4F27B5AD.9050709@redhat.com> Date: Tue, 31 Jan 2012 10:34:37 +0100 From: Laszlo Ersek MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] qemu(-dm): aborting on wrong mmio size? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "xen-devel@lists.xensource.com" , qemu-devel@nongnu.org Cc: Miroslav Rezanina , Petr Matousek Hi, in the qemu-xen-unstable tree (git://xenbits.xen.org/qemu-xen-unstable.git), the do_inp() function [i386-dm/helper2.c] makes the process exit if the operand size is wrong. Blame: 6040eea5 ("More files imported from xen-unstable 17192:59b8768d0d0d"). In the qemu tree (git://git.qemu.org/qemu.git), the do_inp() function [xen-all.c] does the same (via hw_error() / abort()). Blame: 9ce94e7c ("xen: Initialize event channels and io rings"). Is it justified to kill the emulator when this happens (eg. memory mapped IO with 64-bit operand)? What would happen on real hardware? If it's "undefined", wouldn't it be "better" (for some definition of "better") to return a constant? Thank you, Laszlo