]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
KVM: PPC: Fix vmx/vsx mixup in mmio emulation
authorFabiano Rosas <farosas@linux.ibm.com>
Tue, 25 Jan 2022 21:56:52 +0000 (18:56 -0300)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:18:52 +0000 (15:18 +0200)
commit16bc8800ff1bb76f2ac33526395f72719792a8a2
tree39d46d1cd94dd6afa9930f01e17da8ee2c3474b4
parentde174f44d5d2a6ce138d48828d45701e8d9ab63d
KVM: PPC: Fix vmx/vsx mixup in mmio emulation

BugLink: https://bugs.launchpad.net/bugs/1971497
[ Upstream commit b99234b918c6e36b9aa0a5b2981e86b6bd11f8e2 ]

The MMIO emulation code for vector instructions is duplicated between
VSX and VMX. When emulating VMX we should check the VMX copy size
instead of the VSX one.

Fixes: acc9eb9305fe ("KVM: PPC: Reimplement LOAD_VMX/STORE_VMX instruction ...")
Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220125215655.1026224-3-farosas@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/powerpc/kvm/powerpc.c