Il 16/03/2012 18:25, Lee Essen ha scritto: > Correct … but actually this raises another question … why create a separate > pointer to kvm_state… > > KVMState *s = kvm_state; > > … why not just use kvm_state throughout the function? > > This seems to be a common approach in many of the functions in kvm-all.c … is > there a reason?
It's historical due to the way things were done in the qemu-kvm fork. It was done this way in order to let qemu.git and qemu-kvm.git share a bit more code, IIUC. Paolo