diff options
author | Olivier Hainque <hainque@adacore.com> | 2013-04-09 18:06:54 +0200 |
---|---|---|
committer | Stefan Weil <sw@weilnetz.de> | 2013-04-12 18:27:16 +0200 |
commit | ec9bd89fa48147e1d16e078217513c1235f9132a (patch) | |
tree | c67dfa73eba87a51b8dbef752e3881dfd4c05d8f /migration.c | |
parent | ed9164a3549f93204d6b096136cda2ce54e9f03a (diff) |
Ensure good ordering of memory instruction in cpu_exec
The IO thread, when it senses cpu_single_env == 0, expects exit_request
to be checked later on. A compiler scheduling constraint is not strong
enough to ensure this on modern architecture. A memory fence is needed
as well.
Signed-off-by: Olivier Hainque <hainque@adacore.com>
Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'migration.c')
0 files changed, 0 insertions, 0 deletions