From: "Alex Bennée" <alex.bennee@linaro.org>
To: alvise rigo <a.rigo@virtualopensystems.com>
Cc: mttcg@listserver.greensocs.com,
Claudio Fontana <claudio.fontana@huawei.com>,
QEMU Developers <qemu-devel@nongnu.org>,
"Emilio G. Cota" <cota@braap.org>,
Jani Kokkonen <jani.kokkonen@huawei.com>,
VirtualOpenSystems Technical Team <tech@virtualopensystems.com>
Subject: Re: [Qemu-devel] [RFC 0/5] Slow-path for atomic instruction translation
Date: Wed, 27 May 2015 09:51:15 +0100 [thread overview]
Message-ID: <87twuypfng.fsf@linaro.org> (raw)
In-Reply-To: <CAH47eN1D2Lt2UHcczU+b=zizF3oc7vxZXJyhUYaktb-nc6bADg@mail.gmail.com>
alvise rigo <a.rigo@virtualopensystems.com> writes:
> I'm going to respin these patches soon, I've found some issues that
> I'm addressing now.
Thanks, please feel free to add me to your CC list.
>
> Thank you for your feedback,
> alvise
>
> On Tue, May 26, 2015 at 11:51 PM, Emilio G. Cota <cota@braap.org> wrote:
>> On Mon, May 11, 2015 at 11:10:05 +0200, alvise rigo wrote:
>>> the last commit was b8df9208f357d2b36e1b19634aea973618dc7ba8.
>>
>> Thanks.
>>
>> Unfortunately a segfault still happens very early:
>>
>> $ gdb arm-softmmu/qemu-system-arm
>> GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
>> Copyright (C) 2012 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
>> and "show warranty" for details.
>> This GDB was configured as "x86_64-linux-gnu".
>> For bug reporting instructions, please see:
>> <http://bugs.launchpad.net/gdb-linaro/>...
>> Reading symbols from /local/home/cota/src/qemu/arm-softmmu/qemu-system-arm...done.
>> (gdb) set args -M vexpress-a9 -kernel img/arm/zImage -drive file=img/arm/rootfs.ext2,if=sd -append "console=ttyAMA0,115200 root=/dev/mmcblk0" -net nic,model=lan9118 -net user -nographic -smp 1
>> (gdb) r
>> Starting program: /local/home/cota/src/qemu/arm-softmmu/qemu-system-arm -M vexpress-a9 -kernel img/arm/zImage -drive file=img/arm/rootfs.ext2,if=sd -append "console=ttyAMA0,115200 root=/dev/mmcblk0" -net nic,model=lan9118 -net user -nographic -smp 1
>> [Thread debugging using libthread_db enabled]
>> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>> [New Thread 0x7fffe9447700 (LWP 4309)]
>> [New Thread 0x7fffe5246700 (LWP 4310)]
>> WARNING: Image format was not specified for 'img/arm/rootfs.ext2' and probing guessed raw.
>> Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
>> Specify the 'raw' format explicitly to remove the restrictions.
>> [New Thread 0x7fffe4a45700 (LWP 4311)]
>> audio: Could not init `oss' audio driver
>>
>> Program received signal SIGUSR1, User defined signal 1.
>> [Switching to Thread 0x7fffe4a45700 (LWP 4311)]
>> pthread_cond_wait@@GLIBC_2.3.2 ()
>> at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
>> 162 ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory.
>> (gdb) cont
>> Continuing.
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x0000555555655c34 in test_bit (addr=<optimized out>, nr=<optimized out>)
>> at /local/home/cota/src/qemu/include/qemu/bitops.h:119
>> 119 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1)));
>> (gdb) bt
>> #0 0x0000555555655c34 in test_bit (addr=<optimized out>, nr=<optimized out>)
>> at /local/home/cota/src/qemu/include/qemu/bitops.h:119
>> #1 cpu_physical_memory_excl_is_dirty (addr=18446744073709551615)
>> at /local/home/cota/src/qemu/include/exec/ram_addr.h:214
>> #2 tlb_set_page (cpu=<optimized out>, vaddr=<optimized out>, paddr=503316480,
>> prot=<optimized out>, mmu_idx=3, size=<optimized out>)
>> at /local/home/cota/src/qemu/cputlb.c:327
>> #3 0x0000555555712091 in arm_cpu_handle_mmu_fault (cs=0x55555632c4e0,
>> address=<optimized out>, access_type=0, mmu_idx=3)
>> at /local/home/cota/src/qemu/target-arm/helper.c:5726
>> #4 0x0000555555704f70 in tlb_fill (cs=0x55555632c4e0, addr=<optimized out>,
>> is_write=<optimized out>, mmu_idx=<optimized out>, retaddr=140737065132893)
>> at /local/home/cota/src/qemu/target-arm/op_helper.c:69
>> #5 0x000055555565733f in helper_le_ldul_mmu (env=0x555556334730,
>> addr=503316484, mmu_idx=3, retaddr=<optimized out>)
>> at /local/home/cota/src/qemu/softmmu_template.h:190
>> #6 0x00007fffe6c623db in code_gen_buffer ()
>> #7 0x00005555556148ba in cpu_tb_exec (
>> tb_ptr=0x7fffe6c62320 "A\213n\374\205\355\017\205\207", cpu=0x55555632c4e0)
>> at /local/home/cota/src/qemu/cpu-exec.c:199
>> #8 cpu_arm_exec (env=0x555556334730)
>> at /local/home/cota/src/qemu/cpu-exec.c:519
>> #9 0x000055555563a880 in tcg_cpu_exec (env=0x555556334730)
>> at /local/home/cota/src/qemu/cpus.c:1354
>> #10 tcg_exec_all () at /local/home/cota/src/qemu/cpus.c:1387
>> #11 qemu_tcg_cpu_thread_fn (arg=<optimized out>)
>> at /local/home/cota/src/qemu/cpus.c:1032
>> #12 0x00007ffff40dfe9a in start_thread (arg=0x7fffe4a45700)
>> at pthread_create.c:308
>> #13 0x00007ffff3e0d38d in clone ()
>> at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
>> #14 0x0000000000000000 in ?? ()
>>
>> Emilio
--
Alex Bennée
prev parent reply other threads:[~2015-05-27 8:51 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 15:38 [Qemu-devel] [RFC 0/5] Slow-path for atomic instruction translation Alvise Rigo
2015-05-06 15:38 ` [Qemu-devel] [RFC 1/5] exec: Add new exclusive bitmap to ram_list Alvise Rigo
2015-05-07 17:12 ` Richard Henderson
2015-05-11 7:48 ` alvise rigo
2015-05-06 15:38 ` [Qemu-devel] [RFC 2/5] Add new TLB_EXCL flag Alvise Rigo
2015-05-07 17:25 ` Richard Henderson
2015-05-11 7:47 ` alvise rigo
2015-05-06 15:38 ` [Qemu-devel] [RFC 3/5] softmmu: Add helpers for a new slow-path Alvise Rigo
2015-05-07 17:56 ` Richard Henderson
2015-05-11 8:07 ` alvise rigo
2015-05-06 15:38 ` [Qemu-devel] [RFC 4/5] tcg-op: create new TCG qemu_ldlink and qemu_stcond instructions Alvise Rigo
2015-05-07 17:58 ` Richard Henderson
2015-05-11 8:12 ` alvise rigo
2015-05-06 15:38 ` [Qemu-devel] [RFC 5/5] target-arm: translate: implement qemu_ldlink and qemu_stcond ops Alvise Rigo
2015-05-06 15:51 ` [Qemu-devel] [RFC 0/5] Slow-path for atomic instruction translation Paolo Bonzini
2015-05-06 16:00 ` Mark Burton
2015-05-06 16:21 ` alvise rigo
2015-05-06 15:55 ` Mark Burton
2015-05-06 16:19 ` alvise rigo
2015-05-06 16:20 ` Mark Burton
2015-05-08 15:22 ` Alex Bennée
2015-05-11 9:08 ` alvise rigo
2015-05-08 18:29 ` Emilio G. Cota
2015-05-11 9:10 ` alvise rigo
2015-05-26 21:51 ` Emilio G. Cota
2015-05-27 7:20 ` alvise rigo
2015-05-27 8:51 ` Alex Bennée [this message]
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=87twuypfng.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=a.rigo@virtualopensystems.com \
--cc=claudio.fontana@huawei.com \
--cc=cota@braap.org \
--cc=jani.kokkonen@huawei.com \
--cc=mttcg@listserver.greensocs.com \
--cc=qemu-devel@nongnu.org \
--cc=tech@virtualopensystems.com \
/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).