Re: [PATCH 1/3] KVM: PPC: Fix kernel crash with PR KVM

2020-03-21 Thread Michael Ellerman
On Wed, 2020-03-18 at 17:43:30 UTC, Greg Kurz wrote: > With PR KVM, shutting down a VM causes the host kernel to crash: > > [ 314.219284] BUG: Unable to handle kernel data access on read at > 0xc0080176c638 > [ 314.219299] Faulting instruction address: 0xc00800d4ddb0 > cpu 0x0: Vector:

Re: [PATCH 1/3] KVM: PPC: Fix kernel crash with PR KVM

2020-03-18 Thread Sean Christopherson
On Wed, Mar 18, 2020 at 06:43:30PM +0100, Greg Kurz wrote: > It turns out that this is only relevant to PR KVM actually. And both > 32 and 64 backends need vcpu->arch.book3s to be valid when calling > kvmppc_mmu_destroy_pr(). So instead of calling kvmppc_mmu_destroy() > from kvm_arch_vcpu_destroy()