Skip to contentSkip to conversation

Updating dirty bitmap by non-atomic set bit is safe?

DISCUSSION Takuya Yoshikawa 2 participants 3 messages Mar 23, 2010 KVM

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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 replacing set_bit() by generic___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
#2 lore raw
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 replacing set_bit() by generic___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.