|author||Gleb Natapov <firstname.lastname@example.org>||2009-10-14 15:52:32 +0200|
|committer||Marcelo Tosatti <email@example.com>||2009-10-14 15:35:06 -0300|
|parent||Complete cpu initialization before signaling main thread. (diff)|
Don't sync mpstate to/from kernel when unneeded.
mp_state, unlike other cpu state, can be changed not only from vcpu context it belongs to, but by other vcpus too. That makes its loading from kernel/saving back not safe if mp_state value is changed inside kernel between load and save. For example vcpu 1 loads mp_sate into user-space and the state is RUNNING, vcpu 0 sends INIT/SIPI to vcpu 1 so in-kernel mp_sate becomes SIPI, vcpu 1 save user-space copy into kernel and calls vcpu_run(). SIPI sate is lost. The patch copies mp_sate into kernel only when it is knows that int-kernel value is outdated. This happens on reset and vmload. Signed-off-by: Gleb Natapov <firstname.lastname@example.org> Signed-off-by: Marcelo Tosatti <email@example.com>
Diffstat (limited to 'Makefile.target')
0 files changed, 0 insertions, 0 deletions