Handle init/sipi in a main cpu exec loop. (v2)
authorGleb Natapov <gleb@redhat.com>
Wed, 17 Jun 2009 20:26:59 +0000 (23:26 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Jun 2009 15:15:28 +0000 (10:15 -0500)
commit1db623da86af4863c184e96ecc4423dae64236af
tree0824d788e214876bdc2b9816fcdb6bfb91b64b20
parent15a7d71f146e186e90fcacd6a04ad334d04e6236
Handle init/sipi in a main cpu exec loop. (v2)

This should fix compilation problem in case of CONFIG_USER_ONLY.

Currently INIT/SIPI is handled in the context of CPU that sends IPI.
This patch changes this to handle them like all other events in a main
cpu exec loop. When KVM will gain thread per vcpu capability it will
be much more clear to handle those event by cpu thread itself and not
modify one cpu's state from the context of the other.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cpu-all.h
cpu-exec.c
hw/apic.c
target-i386/cpu.h
target-i386/exec.h
target-i386/helper.c