>> But why do you need that many remote calls during init? Aren't the >> initial ioctls issued by the vcpu threads themselves? > > Yes, but system_reset is called from the io-thread, and it fires a lot > of ioctls. > > However, I have an already working version that does a much better job > than that. > Will post today with details > >
Btw, The approach I've taken (code to follow), was to register reset functions that issues ioctls in a separate handler, that later calls all of them already in the vcpu-thread. So, no code movement, and thus, no races. reset code is responsible for most remote calls in qemu. One of the only ones we still have left is the gdb stuff. Do you have any suggestion to do that without the current on_vcpu mechanism? -- Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."