Re: [PATCH V2 0/5] vDPA/ifcvf: implement immediate initialization mechanism

2023-05-21 Thread Zhu, Lingshan
ping On 5/9/2023 2:05 AM, Zhu Lingshan wrote: Formerly, ifcvf driver has implemented a lazy-initialization mechanism for the virtqueues and other config space contents, it would store all configurations that passed down from the userspace, then load them to the device config space upon

[PATCH 0/3] vhost: Fix freezer/ps regressions

2023-05-21 Thread Mike Christie
The following patches made over Linus's tree fix the 2 bugs: 1. vhost worker task shows up as a process forked from the parent that did VHOST_SET_OWNER ioctl instead of a process under root/kthreadd. This was causing breaking scripts. 2. vhost_tasks didn't disable or add support for freeze

[PATCH 3/3] fork, vhost: Use CLONE_THREAD to fix freezer/ps regression

2023-05-21 Thread Mike Christie
When switching from kthreads to vhost_tasks two bugs were added: 1. The vhost worker tasks's now show up as processes so scripts doing ps or ps a would not incorrectly detect the vhost task as another process. 2. kthreads disabled freeze by setting PF_NOFREEZE, but vhost tasks's didn't disable or

[PATCH 2/3] signal: Don't exit for PF_USER_WORKER tasks

2023-05-21 Thread Mike Christie
vhost_tasks also need to perform cleanup before exiting so this changes the check in get_signal to be more generic so both io thread and vhost tasks can do their cleanup. Signed-off-by: Mike Christie --- kernel/signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 1/3] signal: Don't always put SIGKILL in shared_pending

2023-05-21 Thread Mike Christie
When get_pending detects the task has been marked to be killed we try to clean up the SIGKLL by doing a sigdelset and recalc_sigpending, but we still leave it in shared_pending. If the signal is being short circuit delivered there is no need to put in shared_pending so this adds a check in