From: Richard Henderson <rth@twiddle.net>
To: qemu-devel@nongnu.org, Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH 08/10] target-s390x: implement STFLE instruction
Date: Tue, 26 May 2015 09:00:34 -0700 [thread overview]
Message-ID: <556498A2.3050601@twiddle.net> (raw)
In-Reply-To: <20150526060313.GC29207@aurel32.net>
On 05/25/2015 11:03 PM, Aurelien Jarno wrote:
> On 2015-05-25 16:08, Richard Henderson wrote:
>> On 05/24/2015 04:47 PM, Aurelien Jarno wrote:
>>> Cc: Alexander Graf <agraf@suse.de>
>>> Cc: Richard Henderson <rth@twiddle.net>
>>> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
>>
>> Sadly, implementing this breaks current kernels.
>> I did this about two years ago and havn't figured
>> out what to do about it.
>>
>> The silly code in head.S doesn't check for just the
>> facilities that it needs, it checks for all facilities
>> that specific processors provide.
>>
>> If we don't e.g. pretend that we have HFP, despite the
>> fact that no one uses it, the kernel won't boot.
>
> How does it breaks? This patch only enable bits corresponding to
> facility that we fully implement (that's a reason why the patchset
> doesn't enable LD facility for example). So it should not be a problem,
> at least I have been able to boot kernels successfully.
>
Unless the facilities provided are a strict superset of those required by the
kernel, it aborts the boot. Extremely early in the process. As Alex said,
it's possible to compile a kernel without this, but none of the vendor-built
kernels do so. Which raises the bar to what a user needs to do to install.
See linux/arch/s390/kernel/head.S,
# List of facilities that are required. If not all facilities are present
# the kernel will crash. Format is number of facility words with bits set,
# followed by the facility words.
#if defined(CONFIG_MARCH_Z13)
.long 3, 0xc100eff2, 0xf46ce800, 0x00400000
#elif defined(CONFIG_MARCH_ZEC12)
.long 3, 0xc100eff2, 0xf46ce800, 0x00400000
#elif defined(CONFIG_MARCH_Z196)
.long 2, 0xc100eff2, 0xf46c0000
#elif defined(CONFIG_MARCH_Z10)
.long 2, 0xc100eff2, 0xf0680000
#elif defined(CONFIG_MARCH_Z9_109)
.long 1, 0xc100efc2
#elif defined(CONFIG_MARCH_Z990)
.long 1, 0xc0002000
#elif defined(CONFIG_MARCH_Z900)
.long 1, 0xc0000000
#endif
r~
next prev parent reply other threads:[~2015-05-26 16:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-24 23:47 [Qemu-devel] [PATCH 00/10] target-s390x: TCG fixes and improvements Aurelien Jarno
2015-05-24 23:47 ` [Qemu-devel] [PATCH 01/10] target-s390x: fix PSW value on dynamical exception from helpers Aurelien Jarno
2015-05-24 23:47 ` [Qemu-devel] [PATCH 02/10] target-s390x: fix MMU index computation Aurelien Jarno
2015-05-24 23:47 ` [Qemu-devel] [PATCH 03/10] target-s390x: define default NaN values Aurelien Jarno
2015-05-24 23:47 ` [Qemu-devel] [PATCH 04/10] target-s390x: silence NaNs for LOAD LENGTHENED and LOAD ROUNDED Aurelien Jarno
2015-05-24 23:47 ` [Qemu-devel] [PATCH 05/10] target-s390x: detect tininess before rounding for FP operations Aurelien Jarno
2015-05-24 23:47 ` [Qemu-devel] [PATCH 06/10] target-s390x: improve facilities list Aurelien Jarno
2015-05-24 23:47 ` [Qemu-devel] [PATCH 07/10] target-s390x: enable fully implemented facilities Aurelien Jarno
2015-05-25 20:39 ` Alexander Graf
2015-05-25 21:02 ` Aurelien Jarno
2015-05-25 21:04 ` Alexander Graf
2015-05-25 21:13 ` Aurelien Jarno
2015-05-25 21:47 ` Alexander Graf
2015-05-26 6:02 ` Aurelien Jarno
2015-05-26 8:29 ` Alexander Graf
2015-05-26 9:05 ` Aurelien Jarno
2015-05-26 10:19 ` Alexander Graf
2015-05-24 23:47 ` [Qemu-devel] [PATCH 08/10] target-s390x: implement STFLE instruction Aurelien Jarno
2015-05-25 23:08 ` Richard Henderson
2015-05-25 23:14 ` Alexander Graf
2015-05-26 6:03 ` Aurelien Jarno
2015-05-26 16:00 ` Richard Henderson [this message]
2015-05-26 22:03 ` Aurelien Jarno
2015-05-27 14:31 ` Richard Henderson
2015-05-27 14:55 ` Alexander Graf
2015-05-27 15:57 ` Aurelien Jarno
2015-05-28 1:55 ` Alexander Graf
2015-05-24 23:47 ` [Qemu-devel] [PATCH 09/10] target-s390x: move a few instructions to the correct facility Aurelien Jarno
2015-05-24 23:47 ` [Qemu-devel] [PATCH 10/10] target-s390x: implement LAY and LAEY instructions Aurelien Jarno
2015-05-28 22:03 ` [Qemu-devel] [PATCH 00/10] target-s390x: TCG fixes and improvements Alexander Graf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=556498A2.3050601@twiddle.net \
--to=rth@twiddle.net \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).