On Sat, Jan 28, 2012 at 05:06:54PM -0500, Xin Tong wrote:
> What is the proper way to iterate over all vcpus in qemu ? below is what i
> use in my code. Not sure whether it is the best way, also is a a macro is
> qemu to do this ?
>
> CPUState *curr_cpu = first_cpu;
>for(; curr_cpu !
What is the proper way to iterate over all vcpus in qemu ? below is what i
use in my code. Not sure whether it is the best way, also is a a macro is
qemu to do this ?
CPUState *curr_cpu = first_cpu;
for(; curr_cpu != NULL; curr_cpu = curr_cpu->next_cpu) {
...
}