On 9/25/19 11:03 AM, David Hildenbrand wrote: > On 20.09.19 10:03, Janosch Frank wrote: >> + >> +int main(void) >> +{ >> + report_prefix_push("smp"); >> + >> + if (smp_query_num_cpus() == 1) { >> + report_abort("need at least 2 cpus for this test"); >> + goto done; >> + } > > You should rather sense if CPU with the addr 1 is available. AFAIR, the > number of CPUs and the CPU addresses are two types of shoes. > Yes and no, if we don't have more than one cpu we certainly don't have cpu 1. And for what I've seen up to now QEMU assigns cpus linearly.
Attachment:
signature.asc
Description: OpenPGP digital signature