Skip to contentSkip to conversation

goal of tb_lock in cpu-exec?

Qemu-devel Frederic Konrad 1 participant 1 message Jan 8, 2015

lore
Share & tools
lore
#0 lore raw

Hi everybody and happy new year,

I wondered what is the goal of tb_lock in cpu-exec.c.

According to the exec-all.h it's to protect tbs and page table but why do we have to cover the whole cpu_exec function?

I'm asking this because we planned to reuse tb_lock to protect every access to tb_ctx by replacing spinlock by QemuMutex.

Anybody has a clue?

Thanks,
Fred