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

2022-07-18 Thread Gavin Shan
Hi Sean, On 7/19/22 9:46 AM, Sean Christopherson wrote: On Tue, Jul 19, 2022, Gavin Shan wrote: --- v3: Improved changelog (Oliver Upon) Sorry I didn't catch v3, I saw that you waited but just didn't get to this earlier :-/ Not a problem at all :) ---

[PATCH v3] 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