commit | d0a69d6321ca759bb8d47803d06ba8571ab42d07 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Sun Jun 24 19:24:42 2012 +0300 |
committer | Avi Kivity <avi@redhat.com> | Mon Jun 25 12:38:35 2012 +0300 |
tree | 6b94990e0b4d43251740fa60deef29148bce9d58 | |
parent | ab9cf4996bb989983e73da894b8dd0239aa2c3c2 [diff] |
x86, bitops: note on __test_and_clear_bit atomicity __test_and_clear_bit is actually atomic with respect to the local CPU. Add a note saying that KVM on x86 relies on this behaviour so people don't accidentaly break it. Also warn not to rely on this in portable code. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>