]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e526ea7987675fa70a6d98ed5c343eba7ae2c8f
tree331fadf1e18ad4252a654008636278cfe385423c
parent82cc6737620c00c04deccf8670d2a2db68e09ac2
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