Re: [PATCH v4] KVM: selftests: Fix target thread to be migrated in rseq_test

2022-07-19 Thread Paolo Bonzini
On 7/19/22 04:08, Gavin Shan wrote: In rseq_test, there are two threads, which are vCPU thread and migration worker separately. Unfortunately, the test has the wrong PID passed to sched_setaffinity() in the migration worker. It forces migration on the migration worker because zeroed PID

Re: [PATCH v4] KVM: selftests: Fix target thread to be migrated in rseq_test

2022-07-19 Thread Andrew Jones
On Tue, Jul 19, 2022 at 10:08:30AM +0800, Gavin Shan wrote: > In rseq_test, there are two threads, which are vCPU thread and migration > worker separately. Unfortunately, the test has the wrong PID passed to > sched_setaffinity() in the migration worker. It forces migration on the > migration

[PATCH v4] KVM: selftests: Fix target thread to be migrated in rseq_test

2022-07-18 Thread Gavin Shan
In rseq_test, there are two threads, which are vCPU thread and migration worker separately. Unfortunately, the test has the wrong PID passed to sched_setaffinity() in the migration worker. It forces migration on the migration worker because zeroed PID represents the calling thread, which is the