KVM: PPC: Book3S HV: Initialise vcpu MSR with MSR_ME
authorNicholas Piggin <npiggin@gmail.com>
Wed, 11 Aug 2021 16:00:35 +0000 (02:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Aug 2021 06:37:17 +0000 (16:37 +1000)
commitfd42b7b09c602c904452c0c3e5955ca21d8e387a
tree331fadf1e18ad4252a654008636278cfe385423c
parent0eb596f1e6103ebe122792a425b88c5dc21c4087
KVM: PPC: Book3S HV: Initialise vcpu MSR with MSR_ME

It is possible to create a VCPU without setting the MSR before running
it, which results in a warning in kvmhv_vcpu_entry_p9() that MSR_ME is
not set. This is pretty harmless because the MSR_ME bit is added to
HSRR1 before HRFID to guest, and a normal qemu guest doesn't hit it.

Initialise the vcpu MSR with MSR_ME set.

Reported-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210811160134.904987-2-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c