|
| From: | Paolo Bonzini |
| Subject: | Re: [Qemu-devel] [PATCH/RFC 4/5] s390x/kvm: test whether a cpu is STOPPED when checking "has_work" |
| Date: | Mon, 28 Jul 2014 16:19:35 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
Il 28/07/2014 16:16, David Hildenbrand ha scritto:
> Later, another vcpu might decide to turn that vcpu back on (by e.g. sending a
> SIGP START to that vcpu).
>
> I am not sure if such a mechanism/scenario is applicable to any other arch.
> They
> all seem to reset the cs->halted flag if they know they are able to run (e.g.
> due to an interrupt) - they have no such thing as "stopped cpus", only
> "halted/waiting cpus".
On x86, INIT_RECEIVED is pretty much a stopped CPU. It can only run
(and receive interrupts) after getting a special startup interrupt ("SIPI").
Paolo
| [Prev in Thread] | Current Thread | [Next in Thread] |