Updating dirty bitmap by non-atomic set bit is safe?
Hi, does anybody knows about this?
Currently, dirty bitmap is updated by generic___set_le_bit(). I checked the git log and mail archives but could not find any explanation why replacing set_bit() by generic___set_le_bit() is safe.
Thanks,
Takuya
Quoted 8 lines · Takuya Yoshikawa
Hi, does anybody knows about this?
Currently, dirty bitmap is updated by
generic___set_le_bit(). I checked the git log and mail archives but could not find any explanation why replacingset_bit()bygeneric___set_le_bit()is safe.
IIRC it's protected by the mmu spinlock.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 4 lines · Avi Kivity
Quoted 3 lines · Takuya Yoshikawa
Hi, does anybody knows about this?
Quoted 8 lines
Quoted 5 lines
Currently, dirty bitmap is updated by
generic___set_le_bit(). I checked the git log and mail archives but could not find any explanation why replacingset_bit()bygeneric___set_le_bit()is safe.IIRC it's protected by the mmu spinlock.
So the fact is the old version did extra protection, thank you.