All of lore.kernel.org
 help / color / mirror / Atom feed
* Is qemu could be a "FSM" state machine if running on a "quiet and clean" host pc without random event input?
@ 2020-05-11 14:07 tugouxp
  2020-05-13 23:22 ` John Snow
  0 siblings, 1 reply; 3+ messages in thread
From: tugouxp @ 2020-05-11 14:07 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]

Hi folks:
  i want to know about whether therr are limitations during qemu emulation systems, for exampe, did the regular bugs corener case cant be duplicated on qeme but exist on real boads?


why thing this is that , i have ever use hdl simulator (modsim and iverilog) and openrisc processor to emulate the linux and ucos running, and see the waveform of the simulateion process of the operations systems.
i found an interesting things, if i take just the tick interrupt as the only testbech event source,the  kernel simulation waveform is identical duplicated again and again, which means i can predicate future behavior.


i think this something like qemu work principle and so want to know, whether the qemu has this limitation? is the simulation proces a "FSM"  that with definition output if the input event are all regular and without random?


thank you

[-- Attachment #2: Type: text/html, Size: 1286 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is qemu could be a "FSM" state machine if running on a "quiet and clean" host pc without random event input?
  2020-05-11 14:07 Is qemu could be a "FSM" state machine if running on a "quiet and clean" host pc without random event input? tugouxp
@ 2020-05-13 23:22 ` John Snow
  2020-05-14  0:56   ` tugouxp
  0 siblings, 1 reply; 3+ messages in thread
From: John Snow @ 2020-05-13 23:22 UTC (permalink / raw)
  To: tugouxp, qemu-devel



On 5/11/20 10:07 AM, tugouxp wrote:
> Hi folks:
>   i want to know about whether therr are limitations during qemu
> emulation systems, for exampe, did the regular bugs corener case cant be
> duplicated on qeme but exist on real boads?
> 

It's possible, yes. QEMU emulates instead of simulates. We do not try to
reproduce accurate cycle timings. There may be bugs that exist in real
hardware but don't reproduce with QEMU, or, of course, the other way around.

> why thing this is that , i have ever use hdl simulator (modsim and
> iverilog) and openrisc processor to emulate the linux and ucos running,
> and see the waveform of the simulateion process of the operations systems.
> i found an interesting things, if i take just the tick interrupt as the
> only testbech event source,the  kernel simulation waveform is identical
> duplicated again and again, which means i can predicate future behavior.
> 

Yeah, we are not operating on the verilog level for any of the hardware
we emulate.

> i think this something like qemu work principle and so want to know,
> whether the qemu has this limitation? is the simulation proces a "FSM" 
> that with definition output if the input event are all regular and
> without random?
> 

Well, if you only want determinism and not accuracy, it might be
possible, but I have to admit to you that I've never tried to instrument
or measure this. I assume there are many places where cycle
indeterminancy comes in from the host system.

And I trust x86 about as far as I can throw it.

I assume there are many barriers to this, but maybe folks who worked on
the replay debugger could give some more authoritative idea.


> thank you
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:Re: Is qemu could be a "FSM" state machine if running on a "quiet and clean" host pc without random event input?
  2020-05-13 23:22 ` John Snow
@ 2020-05-14  0:56   ` tugouxp
  0 siblings, 0 replies; 3+ messages in thread
From: tugouxp @ 2020-05-14  0:56 UTC (permalink / raw)
  To: John Snow; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1861 bytes --]

Thank you, much appreciate your thought and meaningful for me!

















At 2020-05-14 07:22:12, "John Snow" <jsnow@redhat.com> wrote:
>
>
>On 5/11/20 10:07 AM, tugouxp wrote:
>> Hi folks:
>>   i want to know about whether therr are limitations during qemu
>> emulation systems, for exampe, did the regular bugs corener case cant be
>> duplicated on qeme but exist on real boads?
>> 
>
>It's possible, yes. QEMU emulates instead of simulates. We do not try to
>reproduce accurate cycle timings. There may be bugs that exist in real
>hardware but don't reproduce with QEMU, or, of course, the other way around.
>
>> why thing this is that , i have ever use hdl simulator (modsim and
>> iverilog) and openrisc processor to emulate the linux and ucos running,
>> and see the waveform of the simulateion process of the operations systems.
>> i found an interesting things, if i take just the tick interrupt as the
>> only testbech event source,the  kernel simulation waveform is identical
>> duplicated again and again, which means i can predicate future behavior.
>> 
>
>Yeah, we are not operating on the verilog level for any of the hardware
>we emulate.
>
>> i think this something like qemu work principle and so want to know,
>> whether the qemu has this limitation? is the simulation proces a "FSM" 
>> that with definition output if the input event are all regular and
>> without random?
>> 
>
>Well, if you only want determinism and not accuracy, it might be
>possible, but I have to admit to you that I've never tried to instrument
>or measure this. I assume there are many places where cycle
>indeterminancy comes in from the host system.
>
>And I trust x86 about as far as I can throw it.
>
>I assume there are many barriers to this, but maybe folks who worked on
>the replay debugger could give some more authoritative idea.
>
>
>> thank you
>> 

[-- Attachment #2: Type: text/html, Size: 2463 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-14  0:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11 14:07 Is qemu could be a "FSM" state machine if running on a "quiet and clean" host pc without random event input? tugouxp
2020-05-13 23:22 ` John Snow
2020-05-14  0:56   ` tugouxp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.