From: Petr Vorel <pvorel@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>
Cc: Nicolai Stange <nstange@suse.de>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2 4/7] KVM: Add async communication helper functions
Date: Mon, 29 May 2023 10:27:30 +0200 [thread overview]
Message-ID: <20230529082730.GA18615@pevik> (raw)
In-Reply-To: <0023ff26-0798-6f37-4bb8-e733bfed1fcb@suse.cz>
> 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
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2023-05-29 8:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-26 13:34 [LTP] [PATCH v2 0/7] Two AMD SVM vulnerability tests Martin Doucha
2023-05-26 13:34 ` [LTP] [PATCH v2 1/7] KVM: Add VMSAVE/VMLOAD intercept constants Martin Doucha
2023-05-26 13:34 ` [LTP] [PATCH v2 2/7] Add test for CVE 2021-3656 Martin Doucha
2023-05-26 14:07 ` Petr Vorel
2023-05-26 14:10 ` Petr Vorel
2023-05-26 14:14 ` Petr Vorel
2023-05-26 14:27 ` Petr Vorel
2023-05-26 13:34 ` [LTP] [PATCH v2 3/7] lib: Add safe functions for pthread_kill() and mutexes Martin Doucha
2023-05-26 13:34 ` [LTP] [PATCH v2 4/7] KVM: Add async communication helper functions Martin Doucha
2023-05-29 5:51 ` Petr Vorel
2023-05-29 8:20 ` Martin Doucha
2023-05-29 8:27 ` Petr Vorel [this message]
2023-05-26 13:34 ` [LTP] [PATCH v2 5/7] KVM: Allow expected KVM_RUN errors in tst_kvm_run_instance() Martin Doucha
2023-05-26 13:34 ` [LTP] [PATCH v2 6/7] KVM: Add STGI/CLGI intercept constants Martin Doucha
2023-05-29 5:24 ` Petr Vorel
2023-05-26 13:34 ` [LTP] [PATCH v2 7/7] Add KVM test for CPU lockup through malicous SVM guest Martin Doucha
2023-05-29 10:02 ` [LTP] [PATCH v2 0/7] Two AMD SVM vulnerability tests Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230529082730.GA18615@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=mdoucha@suse.cz \
--cc=nstange@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.