qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* qemu icount to run guest SMP code
@ 2020-07-28 12:33 Wu, Wentong
  2020-07-28 13:36 ` Peter Maydell
  0 siblings, 1 reply; 4+ messages in thread
From: Wu, Wentong @ 2020-07-28 12:33 UTC (permalink / raw)
  To: QEMU Developers

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

Hi,
We are trying to run guest SMP code with qemu icount mode, but based on my current understanding I don't think we can do that, because with icount enabled, the multi cpus will be simulated in round-robin way(tcg kick vcpu timer, or current cpu exit in order to handle interrupt or the ending of the current execution translationblock) with the single vCPU thread, so qemu is not running guest code in parallel as real hardware does, if guest code has the assumption cores run in parallel it will cause unexpected behavior.

I'm fresh man to QEMU and not sure whether the understanding is correct or not, so appreciate any comment, thanks a lot!

BR.


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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* qemu icount to run guest SMP code
@ 2020-07-27  7:25 Wu, Wentong
  0 siblings, 0 replies; 4+ messages in thread
From: Wu, Wentong @ 2020-07-27  7:25 UTC (permalink / raw)
  To: QEMU Developers, Peter Maydell

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

Hi,
We are trying to run guest SMP code with qemu icount mode, but based on my current understanding I don't think we can do that, because with icount enabled, the multi cpus will be simulated in round-robin way(tcg kick vcpu timer, or current cpu exit in order to handle interrupt or the ending of the current execution translationblock) with the single vCPU thread, so qemu is not running guest code in parallel as real hardware does, if guest code has the assumption cores run in parallel it will cause unexpected behavior. Appreciate any comment, thanks a lot!

BR,
Wentong

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

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

end of thread, other threads:[~2020-07-29  2:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-28 12:33 qemu icount to run guest SMP code Wu, Wentong
2020-07-28 13:36 ` Peter Maydell
2020-07-29  2:43   ` Wu, Wentong
  -- strict thread matches above, loose matches on Subject: below --
2020-07-27  7:25 Wu, Wentong

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).