Re: [PATCH] arch/powerpc/kvm: Avoid extra checks when emulating HFSCR bits

2024-07-16 Thread Gautam Menghani
On Tue, Jul 16, 2024 at 11:17:13AM GMT, Michael Ellerman wrote: > Gautam Menghani writes: > > When a KVM guest tries to use a feature disabled by HFSCR, it exits to > > the host for emulation support, and the code checks for all bits which > > are emulated. Avoid checking all the bits by using a s

Re: [PATCH] arch/powerpc/kvm: Avoid extra checks when emulating HFSCR bits

2024-07-15 Thread Michael Ellerman
Gautam Menghani writes: > When a KVM guest tries to use a feature disabled by HFSCR, it exits to > the host for emulation support, and the code checks for all bits which > are emulated. Avoid checking all the bits by using a switch case. The patch looks fine, but I don't know what you mean by "av

Re: [PATCH] arch/powerpc/kvm: Avoid extra checks when emulating HFSCR bits

2024-07-14 Thread Gautam Menghani
Hello, Please review this patch and let me know if any changes are needed. Thanks, Gautam