[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Get only TCG code without execution
From: |
Jamie Lokier |
Subject: |
Re: [Qemu-devel] Get only TCG code without execution |
Date: |
Fri, 20 Jan 2012 19:40:56 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Peter Maydell wrote:
> > "guest binaries don't actually rely that much on the memory model."
> >
> > I think the reason is those guest binaries are single thread. Memory model
> > is
> > important in multi-threaded case. BTW, our binary translator now can
> > translate
> > x86 binary to ARM binary, and ARM has weaker memory model than x86.
>
> Yes. At the moment this works for QEMU on ARM hosts because in
> system mode QEMU itself is single-threaded so the nastier interactions
> between multiple guest CPUs don't occur (just about every memory model
> defines that memory interactions within a single thread of execution
> behave in the obvious manner).
> I also had in mind that guest binaries
> tend to make fairly stereotypical use of things like LDREX/STREX
> rather than relying on obscure details like their interaction with
> plain load/stores.
As x86 doesn't use or need barrier instructions, when translating x86
to (say) run on ARM host, multi-threaded code that needs barriers
isn't easy to detect, so barriers may be required between every memory
access in the generated ARM code.
-- Jamie
- Re: [Qemu-devel] Get only TCG code without execution, (continued)
- Re: [Qemu-devel] Get only TCG code without execution, Peter Maydell, 2012/01/16
- Re: [Qemu-devel] Get only TCG code without execution, 陳韋任, 2012/01/17
- Re: [Qemu-devel] Get only TCG code without execution, Peter Maydell, 2012/01/17
- Re: [Qemu-devel] Get only TCG code without execution, Rajat Goyal, 2012/01/19
- Re: [Qemu-devel] Get only TCG code without execution, Peter Maydell, 2012/01/19
- Re: [Qemu-devel] Get only TCG code without execution, 陳韋任, 2012/01/20
- Re: [Qemu-devel] Get only TCG code without execution, 陳韋任, 2012/01/20
- Re: [Qemu-devel] Get only TCG code without execution, Peter Maydell, 2012/01/20
- Re: [Qemu-devel] Get only TCG code without execution, 陳韋任, 2012/01/20
- Re: [Qemu-devel] Get only TCG code without execution, Peter Maydell, 2012/01/20
- Re: [Qemu-devel] Get only TCG code without execution,
Jamie Lokier <=