[LTP] [PATCH v2 4/7] KVM: Add async communication helper functions

Petr Vorel pvorel@suse.cz
Mon May 29 10:27:30 CEST 2023


> On 29. 05. 23 7:51, Petr Vorel wrote:
> > Hi Martin,

> > > Test programs using these functions must have at least two host threads.
> > IMHO we don't have flags to require this. I guess KVM hosts nowadays should have
> > more than 2 threads (these tests are for bare metal), thus we don't have to note
> > this also in the code, right?

> We have tst_test.min_cpus, used e.g. in kvm_svm03. But this is a note to
> programmers that they must use pthreads, otherwise tst_kvm_wait_guest() will
> always time out or lock up. The signaling can work even on single CPU unless
> you somehow manage to break task switching in the host kernel (like in
> kvm_svm03).

+1, thanks!

Kind regards,
Petr


More information about the ltp mailing list