From: Richard Henderson <rth@twiddle.net>
To: Aurelien Jarno <aurelien@aurel32.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 1/6] target/s390x: Implement STORE FACILITIES LIST EXTENDED
Date: Tue, 9 May 2017 09:28:13 -0700 [thread overview]
Message-ID: <e88a7109-bfdf-b62b-c487-de98e7a38eaf@twiddle.net> (raw)
In-Reply-To: <20170509151730.o3un5fkhdlka2qz3@aurel32.net>
On 05/09/2017 08:17 AM, Aurelien Jarno wrote:
> Ok, thanks for the detailed explanations. Then I guess you should fold
> the following patch to correctly set the zArch active bit as done in
> s390_fill_feat_block:
>
> --- a/target/s390x/misc_helper.c
> +++ b/target/s390x/misc_helper.c
> @@ -693,6 +693,11 @@ static unsigned do_stfle(CPUS390XState *env, uint64_t words[MAX_STFL_WORDS])
>
> memset(words, 0, sizeof(uint64_t) * MAX_STFL_WORDS);
>
> + if (test_bit(S390_FEAT_ZARCH, features)) {
> + /* z/Architecture is always active if around */
> + words[0] |= 1ull << 61;
> + }
Oops, yes, good catch.
>> Which means that we cannot mask *anything* from TCG, including the useless
>> stuff like hexadecimal floating point, and still have the kernel boot. So
>> in practice a feature mask for TCG will be not only useless but actively
>> harmful.
>
> That's true if you want to boot an optimized kernel.
Well, yes. But the last time I was really looking at this (2 years ago?)
Fedora was built to use z9-109. I guess maybe Debian is the only distribution
that doesn't force some later cpu?
> As soon as you try to
> use a newer CPU like the z990, the DAT-enhancement facility bit is set
> in STFL, and the kernel try to use the idte instruction which is not
> emulated by QEMU.
Good to know. Thanks,
r~
next prev parent reply other threads:[~2017-05-09 16:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-08 15:17 [Qemu-devel] [PATCH v2 0/6] target/s390x patches Richard Henderson
2017-05-08 15:17 ` [Qemu-devel] [PATCH v2 1/6] target/s390x: Implement STORE FACILITIES LIST EXTENDED Richard Henderson
2017-05-09 8:14 ` Aurelien Jarno
2017-05-09 14:51 ` Richard Henderson
2017-05-09 15:06 ` Richard Henderson
2017-05-09 15:17 ` Aurelien Jarno
2017-05-09 16:28 ` Richard Henderson [this message]
2017-05-08 15:17 ` [Qemu-devel] [PATCH v2 2/6] target/s390x: Implement LOAD PROGRAM PARAMETER Richard Henderson
2017-05-08 23:55 ` Aurelien Jarno
2017-05-08 15:17 ` [Qemu-devel] [PATCH v2 3/6] target/s390x: Diagnose specification exception for atomics Richard Henderson
2017-05-08 23:56 ` Aurelien Jarno
2017-05-08 15:17 ` [Qemu-devel] [PATCH v2 4/6] target/s390x: Implement LOAD PAIR DISJOINT Richard Henderson
2017-05-08 23:56 ` Aurelien Jarno
2017-05-08 15:17 ` [Qemu-devel] [PATCH v2 5/6] target/s390x: Use atomic operations for COMPARE SWAP Richard Henderson
2017-05-08 23:56 ` Aurelien Jarno
2017-05-08 15:17 ` [Qemu-devel] [PATCH v2 6/6] target/s390x: Use atomic operations for LOAD AND OP Richard Henderson
2017-05-08 23:56 ` Aurelien Jarno
2017-05-08 15:53 ` [Qemu-devel] [PATCH v2 0/6] target/s390x patches no-reply
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=e88a7109-bfdf-b62b-c487-de98e7a38eaf@twiddle.net \
--to=rth@twiddle.net \
--cc=aurelien@aurel32.net \
--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).