mbox series

[0/2] powerpc: kvm: generic framework and run posix timers in task context

Message ID 20250421102837.78515-1-sshegde@linux.ibm.com (mailing list archive)
Headers show
Series powerpc: kvm: generic framework and run posix timers in task context | expand

Message

Shrikanth Hegde April 21, 2025, 10:28 a.m. UTC
From: Gautam Menghani <gautam@linux.ibm.com>

This is an effort to use the generic kvm infra which handles check for 
need_resched, handling signals etc. i.e xfer_to_guest_mode_handle_work. 

kvm guests boots and runs stress-ng CPU stressor on PowerVM and on PowerNV. 
preempt=full and preempt=lazy was tested on PowerNV and in both cases the
KVM guest boots and runs stress-ng CPU stressor.

Please let me know if any specific testing to be done.  

Kept the patches separate since they differ functionally, but kept them
is a series since 2nd patch depends on functionality of 1st. Also this
could help in git bisect.  

This is based on tip/master

Shrikanth Hegde (2):
  powerpc: kvm: use generic transfer to guest mode work
  powerpc: enable to run posix cpu timers in task context

 arch/powerpc/Kconfig         |  2 ++
 arch/powerpc/kvm/book3s_hv.c | 13 +++++++------
 arch/powerpc/kvm/powerpc.c   | 22 ++++++++--------------
 3 files changed, 17 insertions(+), 20 deletions(-)

Comments

Shrikanth Hegde April 21, 2025, 12:34 p.m. UTC | #1
On 4/21/25 15:58, Shrikanth Hegde wrote:
> From: Gautam Menghani <gautam@linux.ibm.com>
> 

I made a mistake while generating the patch. Sorry about that. i will 
fix it up in next version.
Please consider the above as:

From: Shrikanth Hegde <sshegde@linux.ibm.com>

> This is an effort to use the generic kvm infra which handles check for
> need_resched, handling signals etc. i.e xfer_to_guest_mode_handle_work.
> 
> kvm guests boots and runs stress-ng CPU stressor on PowerVM and on PowerNV.
> preempt=full and preempt=lazy was tested on PowerNV and in both cases the
> KVM guest boots and runs stress-ng CPU stressor.
> 
> Please let me know if any specific testing to be done.
> 
> Kept the patches separate since they differ functionally, but kept them
> is a series since 2nd patch depends on functionality of 1st. Also this
> could help in git bisect.
> 
> This is based on tip/master
> 
> Shrikanth Hegde (2):
>    powerpc: kvm: use generic transfer to guest mode work
>    powerpc: enable to run posix cpu timers in task context
> 
>   arch/powerpc/Kconfig         |  2 ++
>   arch/powerpc/kvm/book3s_hv.c | 13 +++++++------
>   arch/powerpc/kvm/powerpc.c   | 22 ++++++++--------------
>   3 files changed, 17 insertions(+), 20 deletions(-)
>