From: "Alex Bennée" <alex.bennee@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org
Subject: Re: [Qemu-devel] [PATCH 0/5] target/arm: KVM vs ARMISARegisters
Date: Thu, 01 Nov 2018 17:26:44 +0000 [thread overview]
Message-ID: <87sh0k6757.fsf@linaro.org> (raw)
In-Reply-To: <20181024113709.16599-1-richard.henderson@linaro.org>
Richard Henderson <richard.henderson@linaro.org> writes:
> My previous patch set for replacing feature bits with id registers
> failed to consider that these id registers are beginning to control
> migration, and thus we must fill them in for KVM as well.
>
> Thus, we want to initialize these values within CPU from the host.
>
> Finally, re-send the T32EE conversion patch, fixing the build
> failure on an arm32 host in kvm32.c.
>
> Tested on arm64; cross-build tested for arm32.
I'm still seeing the following assert on qemu-test:
qemu-system-aarch64: /home/alex/lsrc/qemu.git/target/arm/cpu.c:832: arm_cpu_realizefn: Assertion `cpu_isar_feature(arm_div, cpu)' failed.
Which is a regression caused by:
7e0cf8b: target/arm: Convert division from feature bits to isar0 tests
I think the problem is the we trip over the assert because:
/* Some features automatically imply others: */
if (arm_feature(env, ARM_FEATURE_V8)) {
if (arm_feature(env, ARM_FEATURE_M)) {
set_feature(env, ARM_FEATURE_V7);
} else {
set_feature(env, ARM_FEATURE_V7VE);
}
}
Allows:
if (arm_feature(env, ARM_FEATURE_V7VE)) {
assert(cpu_isar_feature(arm_div, cpu));
Which isn't strictly true on kvm guests.
>
>
> r~
>
>
> Richard Henderson (5):
> target/arm: Install ARMISARegisters from kvm host
> target/arm: Fill in ARMISARegisters for kvm64
> target/arm: Introduce read_sys_reg32 for kvm32
> target/arm: Fill in ARMISARegisters for kvm32
> target/arm: Convert t32ee from feature bit to isar3 test
>
> target/arm/cpu.h | 6 +++-
> target/arm/kvm_arm.h | 1 +
> linux-user/elfload.c | 2 +-
> target/arm/cpu.c | 4 ---
> target/arm/helper.c | 2 +-
> target/arm/kvm.c | 1 +
> target/arm/kvm32.c | 75 +++++++++++++++++++++++++-------------------
> target/arm/kvm64.c | 63 +++++++++++++++++++++++++++++++++++--
> target/arm/machine.c | 3 +-
> 9 files changed, 114 insertions(+), 43 deletions(-)
--
Alex Bennée
next prev parent reply other threads:[~2018-11-01 17:26 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-24 11:37 [Qemu-devel] [PATCH 0/5] target/arm: KVM vs ARMISARegisters Richard Henderson
2018-10-24 11:37 ` [Qemu-devel] [PATCH 1/5] target/arm: Install ARMISARegisters from kvm host Richard Henderson
2018-11-02 14:24 ` Peter Maydell
2018-10-24 11:37 ` [Qemu-devel] [PATCH 2/5] target/arm: Fill in ARMISARegisters for kvm64 Richard Henderson
2018-10-29 14:58 ` Peter Maydell
2018-10-29 16:03 ` Richard Henderson
2018-11-02 14:37 ` Peter Maydell
2018-10-24 11:37 ` [Qemu-devel] [PATCH 3/5] target/arm: Introduce read_sys_reg32 for kvm32 Richard Henderson
2018-10-24 12:49 ` Richard Henderson
2018-11-02 14:30 ` Peter Maydell
2018-11-02 14:37 ` Richard Henderson
2018-10-24 11:37 ` [Qemu-devel] [PATCH 4/5] target/arm: Fill in ARMISARegisters " Richard Henderson
2018-10-29 15:13 ` Peter Maydell
2018-10-29 15:21 ` Peter Maydell
2018-10-29 15:40 ` Marc Zyngier
2018-10-29 15:48 ` Peter Maydell
2018-10-29 15:56 ` Marc Zyngier
2018-10-24 11:37 ` [Qemu-devel] [PATCH 5/5] target/arm: Convert t32ee from feature bit to isar3 test Richard Henderson
2018-11-02 14:34 ` Peter Maydell
2018-11-01 17:26 ` Alex Bennée [this message]
2018-11-01 17:30 ` [Qemu-devel] [PATCH 0/5] target/arm: KVM vs ARMISARegisters Peter Maydell
2018-11-01 18:09 ` Peter Maydell
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=87sh0k6757.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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).