KVM: PPC: Book3E: KVM HV host module doesn't work anymore

Christian Zigotzky chzigotzky at xenosoft.de
Thu Jan 2 04:21:24 AEDT 2025


On 01/01/25 14:30, Christian Zigotzky wrote:
> Hello Paolo,
>
> First, I wish you a Happy New Year. Thanks a lot for your patch! I 
> patched the RC5 of kernel 6.13 with your patch and KVM HV works! :-)
>
> kvm_hv_final.patch:
>
> virt/kvm/kvm_main.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
> index de2c11dae231..5177e56fdbd5 100644
> --- a/virt/kvm/kvm_main.c
> +++ b/virt/kvm/kvm_main.c
> @@ -2975,10 +2975,11 @@ kvm_pfn_t __kvm_faultin_pfn(const struct 
> kvm_memory_slot *slot, gfn_t gfn,
>                 .refcounted_page = refcounted_page,
>         };
>
> -       if (WARN_ON_ONCE(!writable || !refcounted_page))
> +       if (WARN_ON_ONCE(!refcounted_page))
>                 return KVM_PFN_ERR_FAULT;
>
> -       *writable = false;
> +       if (writable)
> +               *writable = false;
>         *refcounted_page = NULL;
>
>         return kvm_follow_pfn(&kfp);
> ---
>
> patch -p0 < kvm_hv_final.patch
>
> patching file a/virt/kvm/kvm_main.c
>
> Now, we have a good patch after 56 test kernels!!!!!!!!!
>
> I will test all QEMU/KVM HV components and report, if they work.
>
> Cheers,
> Christian
>
Test results:

- Guest performance: good
- Guest boot time: short
- KVM HV works (-enable-kvm)
- SMP works (-smp 4)
- QEMU User Networking (SLIRP) via VirtIO_net works (Tested it with SSH 
and with a web browser)
- QEMU USB Audio works (Tested it with some audio files in the guest system)
- VirtIO GPU works
- Virtual mouse and keyboard controller work (VirtIO input)
- 9p mount of a host folder via VirtIO works in the guest system
- Serial output from the guest works (console=ttyS0,115200)
- Shutdown and reboot work

Final result: I have not noticed any changes compared to KVM HV with 
kernel 6.12.

@Paolo
There has been a lot of work in KVM for kernel 6.13.
Could you please just explain in a few words the news about KVM? I would 
like to share the KVM news with our users.

Thanks

-- 
Sent with BrassMonkey 33.4.0 (https://github.com/wicknix/brass-monkey/releases/tag/33.4.0)



More information about the Linuxppc-dev mailing list