From: Coiby Xu <coiby.xu@gmail.com>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: Kevin Wolf <kwolf@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Raphael Norwitz <raphael.norwitz@nutanix.com>
Subject: Re: intermittent hang in qos-test for qemu-system-i386 on 32-bit arm host
Date: Mon, 12 Jul 2021 06:19:37 +0800 [thread overview]
Message-ID: <20210711221937.dhklrohhkvlypl5h@Rk> (raw)
In-Reply-To: <d21e1a9e-1df4-4fce-d6de-e7a15131b684@linaro.org>
On Sun, Jul 11, 2021 at 06:23:41AM -0700, Richard Henderson wrote:
>On 7/11/21 5:16 AM, Peter Maydell wrote:
>>On Sun, 11 Jul 2021 at 13:10, Coiby Xu <coiby.xu@gmail.com> wrote:
>>>
>>>Hi Peter,
>>>
>>>On Sat, Jul 10, 2021 at 02:30:36PM +0100, Peter Maydell wrote:
>>>>I've noticed recently that intermittently 'make check' will hang on
>>>>my aarch32 test system (really an aarch64 box with an aarch32 chroot).
>>>
>>>I have a newbie question. How do you do an aarch32 chroot on an aarch64
>>>box? At least, this issue seems to be not reproducible on an aarch64 box
>>>directly. I specifically ran the qos-test for 5 consecutive times and
>>>each time the test could finish successfully,
>>
>>Your aarch64 host CPU needs to support aarch32 at EL0 (some
>>AArch64 CPUs are pure-64 bit these days). The host kernel needs
>>to implement the 32-bit compat layer. It probably also needs to be
>>built for 4K pages (which mostly means "not RedHat"). Then you can
>>set up the 32-bit chroot however you'd normally set up a chroot
>>(for Debian you can do this with debootstrap; other distros will vary;
>>schroot is also a bit nicer than raw chroot IMHO.)
>
>If you do have a kernel built with 64k pages ("RedHat"), but you do
>have a host cpu that supports aarch32 at EL1 and EL0, then you can run
>aarch32 under KVM.
>
>The command-line I use is
>
>../run/bin/qemu-system-aarch64 -m 4096 -smp 8 -nographic \
> -M virt -cpu host,aarch64=off --accel kvm \
> -kernel vmlinuz-4.19.0-16-armmp-lpae \
> -initrd initrd.img-4.19.0-16-armmp-lpae \
> -append 'console=ttyAMA0 root=/dev/vda2' \
> -drive if=none,file=hda.q,format=qcow2,id=hd,discard=on \
> -device virtio-blk-device,drive=hd \
> -netdev tap,id=tap0,br=virbr0,helper=/usr/libexec/qemu-bridge-helper \
> -device virtio-net-device,netdev=tap0
>
>I believe that I had to perform the install under tcg because I
>couldn't find the right magic to boot off the debian cdrom with kvm.
Thanks for the instructions! Since this issue is also reproducible on
qemu-system-i386 guest x86-64 Linux host according to Peter's new email,
I'll check it on i386 guest first.
>
>
>r~
--
Best regards,
Coiby
next prev parent reply other threads:[~2021-07-11 22:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-10 13:30 intermittent hang in qos-test for qemu-system-i386 on 32-bit arm host Peter Maydell
2021-07-11 12:08 ` Coiby Xu
2021-07-11 12:16 ` Peter Maydell
2021-07-11 13:23 ` Richard Henderson
2021-07-11 14:21 ` Peter Maydell
2021-07-11 14:27 ` Richard Henderson
2021-07-11 22:19 ` Coiby Xu [this message]
2021-07-11 15:53 ` Peter Maydell
2021-07-11 22:20 ` Coiby Xu
2021-07-11 22:50 ` Coiby Xu
2021-07-12 9:39 ` Peter Maydell
2021-07-16 12:30 ` Coiby Xu
2021-07-16 14:31 ` Kevin Wolf
2021-07-22 8:45 ` Claudio Fontana
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=20210711221937.dhklrohhkvlypl5h@Rk \
--to=coiby.xu@gmail.com \
--cc=kwolf@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=raphael.norwitz@nutanix.com \
--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).