Skip to contentSkip to conversation

still trying to use TLS

Qemu-devel Rafael Ávila de Espíndola 1 participant 1 message Sep 13, 2004

lore
Share & tools
lore
#0 lore raw

I have successfully fixed the problem of the code generated by one thread being invalid for another. The solution is to generate code with the gs prefix and compute the offsets from gs:0.

One think that is missing is to simulate the per thread gdt that the kernel maintains (ie. alter the simulated gdt when clone is called with CLONE_SETTLS). I will study how qemu simulates the segments and see if I can implement that.

Rafael