From: "Jan Beulich" Subject: Re: [Xen-devel] qemu(-dm): aborting on wrong mmio size? Date: Tue, 31 Jan 2012 13:14:39 +0000 Message-ID: <4F27F74F020000780007020E@nat28.tlf.novell.com> References: <4F27B5AD.9050709@redhat.com> <4F27D232020000780007012B@nat28.tlf.novell.com> <4F27CAAE.8070602@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4F27CAAE.8070602@redhat.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Laszlo Ersek Cc: Miroslav Rezanina , "xen-devel@lists.xensource.com" , Petr Matousek , qemu-devel@nongnu.org List-Id: xen-devel@lists.xenproject.org >>> On 31.01.12 at 12:04, Laszlo Ersek wrote: > On 01/31/12 11:36, Jan Beulich wrote: >>>>> On 31.01.12 at 10:34, Laszlo Ersek wrote: >=20 >>> Is it justified to kill the emulator when this happens (eg. memory >>> mapped IO with 64-bit operand)? >=20 >> The AMD manual specifies that REX.W is ignored; the Intel manual >> doesn't mention REX at all here. However, if a decoder incorrectly >> decodes the guest instruction, that's a bug there. So imo qemu >> validly treats this condition as fatal. >=20 > From the Itanium(R) SDM rev 2.3, >=20 > 10.7.2.1 I/O Port Addressing Restrictions >=20 > For the 64MB physical I/O port block the following operations are > undefined and may result in unpredictable processor operation; > references larger than 4-bytes, [...] >=20 > It seems that not only a decoding failure can trigger this. Oh, yes, I forgot that port I/O goes via MMIO on ia64. So yes, for that case your observation is correct, though killing qemu-dm in that case still seems to fall well under "undefined behavior". But improving the situation wouldn't be bad then. Jan