Re: [RFC] powerpc/kvm: Fix spinlock member access for PREEMPT_RT

2024-10-11 Thread Paolo Bonzini
On Fri, Oct 11, 2024 at 12:04 PM Vishal Chourasia wrote: > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 8094a01974cca..568dc856f0dfa 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -168,6 +168,7 @@ config PPC > select ARCH_STACKWALK > selec

Re: [RFC] powerpc/kvm: Fix spinlock member access for PREEMPT_RT

2024-10-11 Thread Vishal Chourasia
On Thu, Oct 10, 2024 at 11:23:55PM +0200, Paolo Bonzini wrote: > On 10/10/24 20:09, Vishal Chourasia wrote: > > Hi, > > > > While building the kernel with CONFIG_PREEMPT_RT, I encountered several > > compilation errors in the PowerPC KVM code. The issues appear in > > book3s_hv_rm_mmu.c where it t

Re: [RFC] powerpc/kvm: Fix spinlock member access for PREEMPT_RT

2024-10-10 Thread Michael Ellerman
Paolo Bonzini writes: > On 10/10/24 20:09, Vishal Chourasia wrote: >> Hi, >> >> While building the kernel with CONFIG_PREEMPT_RT, I encountered several >> compilation errors in the PowerPC KVM code. The issues appear in >> book3s_hv_rm_mmu.c where it tries to access the 'rlock' member of struct >

Re: [RFC] powerpc/kvm: Fix spinlock member access for PREEMPT_RT

2024-10-10 Thread Paolo Bonzini
On 10/10/24 20:09, Vishal Chourasia wrote: Hi, While building the kernel with CONFIG_PREEMPT_RT, I encountered several compilation errors in the PowerPC KVM code. The issues appear in book3s_hv_rm_mmu.c where it tries to access the 'rlock' member of struct spinlock, which doesn't exist in the RT

[RFC] powerpc/kvm: Fix spinlock member access for PREEMPT_RT

2024-10-10 Thread Vishal Chourasia
Hi, While building the kernel with CONFIG_PREEMPT_RT, I encountered several compilation errors in the PowerPC KVM code. The issues appear in book3s_hv_rm_mmu.c where it tries to access the 'rlock' member of struct spinlock, which doesn't exist in the RT configuration. arch/powerpc/kvm/book3s_hv_r