qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Proper way to walk through all vpcus


From: Xin Tong
Subject: [Qemu-devel] Proper way to walk through all vpcus
Date: Sat, 28 Jan 2012 17:06:54 -0500

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) {
               ...
       }

Thanks

Xin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]