Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6937fb2b authored by Marc Zyngier's avatar Marc Zyngier Committed by Sami Tolvanen
Browse files

UPSTREAM: arm64: KVM: Fix HCR setting for 32bit guests



Commit b856a59141b1 (arm/arm64: KVM: Reset the HCR on each vcpu
when resetting the vcpu) moved the init of the HCR register to
happen later in the init of a vcpu, but left out the fixup
done in kvm_reset_vcpu when preparing for a 32bit guest.

As a result, the 32bit guest is run as a 64bit guest, but the
rest of the kernel still manages it as a 32bit. Fun follows.

Moving the fixup to vcpu_reset_hcr solves the problem for good.

Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>

Bug: 31432001
Change-Id: I8d963ab699fbc95c795c5cb5aaa188788beb38be
(cherry picked from commit 801f6772cecea6cfc7da61aa197716ab64db5f9e)
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
parent 54fbd28f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment