* [Qemu-devel] QEMU: DBT vs. Interpretation
@ 2015-01-26 20:54 Javier Picorel
2015-01-28 13:40 ` Paolo Bonzini
2015-01-28 15:10 ` Laurent Desnogues
0 siblings, 2 replies; 5+ messages in thread
From: Javier Picorel @ 2015-01-26 20:54 UTC (permalink / raw)
To: qemu-devel
Hi,
We are trying to make QEMU deterministic for
architectural simulation. In the absence of I/O,
let’s say only executing user code or exceptions,
is there any source of indeterminism (e.g., non
deterministic compiler optimizations, TB indeterminism)
of QEMU’s DBT versus a canonical interpreter? Thanks!
Regards,
Javier
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] QEMU: DBT vs. Interpretation
2015-01-26 20:54 [Qemu-devel] QEMU: DBT vs. Interpretation Javier Picorel
@ 2015-01-28 13:40 ` Paolo Bonzini
2015-01-28 15:10 ` Laurent Desnogues
1 sibling, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2015-01-28 13:40 UTC (permalink / raw)
To: Javier Picorel, qemu-devel
On 26/01/2015 21:54, Javier Picorel wrote:
> Hi,
>
> We are trying to make QEMU deterministic for
> architectural simulation. In the absence of I/O,
> let’s say only executing user code or exceptions,
> is there any source of indeterminism (e.g., non
> deterministic compiler optimizations, TB indeterminism)
> of QEMU’s DBT versus a canonical interpreter? Thanks!
No, there isn't.
Paolo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] QEMU: DBT vs. Interpretation
2015-01-26 20:54 [Qemu-devel] QEMU: DBT vs. Interpretation Javier Picorel
2015-01-28 13:40 ` Paolo Bonzini
@ 2015-01-28 15:10 ` Laurent Desnogues
2015-01-28 15:39 ` Peter Maydell
1 sibling, 1 reply; 5+ messages in thread
From: Laurent Desnogues @ 2015-01-28 15:10 UTC (permalink / raw)
To: Javier Picorel; +Cc: qemu-devel@nongnu.org
On Mon, Jan 26, 2015 at 9:54 PM, Javier Picorel <javier.picorel@epfl.ch> wrote:
> Hi,
>
> We are trying to make QEMU deterministic for
> architectural simulation. In the absence of I/O,
> let’s say only executing user code or exceptions,
> is there any source of indeterminism (e.g., non
> deterministic compiler optimizations, TB indeterminism)
> of QEMU’s DBT versus a canonical interpreter? Thanks!
I have only hit two sources of variations:
- time; for instance SPEC 2000 173.gcc dumps time at
the end, so you'll get slightly different results each run
- environment variables which are parsed by the runtime
at process start; to get around that issue you'll have
to reintroduce -ignore-environment which was removed
some time ago (see commit
fc9c54124d134dbd76338a92a91804dab2df8166)
A "canonical interpreter" would have the same issues.
HTH,
Laurent
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] QEMU: DBT vs. Interpretation
2015-01-28 15:10 ` Laurent Desnogues
@ 2015-01-28 15:39 ` Peter Maydell
2015-01-28 15:53 ` Laurent Desnogues
0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2015-01-28 15:39 UTC (permalink / raw)
To: Laurent Desnogues; +Cc: Javier Picorel, qemu-devel@nongnu.org
On 28 January 2015 at 15:10, Laurent Desnogues
<laurent.desnogues@gmail.com> wrote:
> - environment variables which are parsed by the runtime
> at process start; to get around that issue you'll have
> to reintroduce -ignore-environment which was removed
> some time ago (see commit
> fc9c54124d134dbd76338a92a91804dab2df8166)
Wouldn't just running QEMU under 'env -i' have the same
effect?
thanks
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] QEMU: DBT vs. Interpretation
2015-01-28 15:39 ` Peter Maydell
@ 2015-01-28 15:53 ` Laurent Desnogues
0 siblings, 0 replies; 5+ messages in thread
From: Laurent Desnogues @ 2015-01-28 15:53 UTC (permalink / raw)
To: Peter Maydell; +Cc: Javier Picorel, qemu-devel@nongnu.org
On Wed, Jan 28, 2015 at 4:39 PM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 28 January 2015 at 15:10, Laurent Desnogues
> <laurent.desnogues@gmail.com> wrote:
>> - environment variables which are parsed by the runtime
>> at process start; to get around that issue you'll have
>> to reintroduce -ignore-environment which was removed
>> some time ago (see commit
>> fc9c54124d134dbd76338a92a91804dab2df8166)
>
> Wouldn't just running QEMU under 'env -i' have the same
> effect?
I didn't know about env -i and it indeed works fine!
Thanks,
Laurent
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-01-28 15:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-26 20:54 [Qemu-devel] QEMU: DBT vs. Interpretation Javier Picorel
2015-01-28 13:40 ` Paolo Bonzini
2015-01-28 15:10 ` Laurent Desnogues
2015-01-28 15:39 ` Peter Maydell
2015-01-28 15:53 ` Laurent Desnogues
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).