From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XluTq-0002LB-Am for qemu-devel@nongnu.org; Wed, 05 Nov 2014 01:54:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XluTl-0003AP-Eu for qemu-devel@nongnu.org; Wed, 05 Nov 2014 01:54:10 -0500 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:35272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XluTl-0003AF-95 for qemu-devel@nongnu.org; Wed, 05 Nov 2014 01:54:05 -0500 Received: by mail-wi0-f180.google.com with SMTP id hi2so1067100wib.7 for ; Tue, 04 Nov 2014 22:54:04 -0800 (PST) Sender: Richard Henderson Message-ID: <5459C985.9070902@twiddle.net> Date: Wed, 05 Nov 2014 07:53:57 +0100 From: Richard Henderson MIME-Version: 1.0 References: <1415132365-16759-1-git-send-email-agraf@suse.de> In-Reply-To: <1415132365-16759-1-git-send-email-agraf@suse.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] s390x: Implement SAM{24,31,64} List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: kbastian@mail.uni-paderborn.de, qemu-devel@nongnu.org On 11/04/2014 09:19 PM, Alexander Graf wrote: > The SAM instructions simply change 2 bits in PSW.MASK to advertise > the current memory mode. While we can't fully guarantee that 31 bit > mode (or even remotely 24 bit mode) actually work correctly, we don't > check whether lpswe modifies these bits, so we shouldn't keep the > guest from executing SAM instructions either. > > This patch implements all SAM instrutions with their actual PSW changing > semantics, making more recent Linux kernels boot properly which do issue > a SAM31 call during early boot. > > Signed-off-by: Alexander Graf Ho hum. Reminds me that I should revive my tgt-s390 branch that got bogged down last year on facilities management. I think this is technically missing a SPECIFICATION exception if the PC is out of range for the new mode. But otherwise... Reviewed-by: Richard Henderson r~