Thread (20 messages) 20 messages, 2 authors, 2025-01-01

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

From: Christian Zigotzky <hidden>
Date: 2024-12-26 14:27:05
Also in: regressions

On 26/12/24 08:00, Paolo Bonzini wrote:

Il mer 25 dic 2024, 13:48 Christian Zigotzky <chzigotzky@xenosoft.de 
<mailto:chzigotzky@xenosoft.de>> ha scritto:

    > But do you see anything on the host dmesg (without and with the
    > patch), for example a WARN?
    Unfortunately no log during the start of KVM HV.


Ok.

    > Also you might try edebc0a1b7ab5ff19b4f5cd011c93196fc34b3e4 + the
    > patch, to see if there are two bugs.
    >
    > Paolo
    >
    I think you mean 419cfb983ca93e75e905794521afefcfa07988bb because
    "git
    checkout edebc0a1b7ab5ff19b4f5cd011c93196fc34b3e4" doesn't work.

    Error message: fatal: reference is not a tree:
    edebc0a1b7ab5ff19b4f5cd011c93196fc34b3e4

    git checkout 419cfb983ca93e75e905794521afefcfa07988bb


That's the upstream commit that doesn't boot. 
edebc0a1b7ab5ff19b4f5cd011c93196fc34b3e4 was the rebased version of 
the same commit, where your bisection finished.

Paolo
Hi Paolo,

This has solved the issue:

cp linux-6.12.6/arch/powerpc/kvm/e500_mmu_host.c 
a/arch/powerpc/kvm/e500_mmu_host.c

cp linux-6.12.6/include/linux/kvm_host.h a/include/linux/kvm_host.h

cp linux-6.12.6/virt/kvm/kvm_main.c a/virt/kvm/kvm_main.c

cp linux-6.12.6/virt/kvm/kvm_mm.h a/virt/kvm/kvm_mm.h

I created a patch for reverting the code that leads to the issue.

Link: 
https://github.com/chzigotzky/kernels/blob/main/patches/X5000/kvm_ppc_revert.patch

Maybe you can find a hint to the issue in this revert patch.

I will further test KVM HV with the patched kernel.

Thanks,
Christian

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help