summaryrefslogtreecommitdiffstats
path: root/hw/virtio/vhost-user.c
diff options
context:
space:
mode:
authorJerome Forissier2022-10-03 16:56:41 +0200
committerPeter Maydell2022-10-10 15:52:25 +0200
commit0ff993193fe759b735e382fbe06b8258b537f95d (patch)
treee4156ab4c65523ba485d2d6dba922e2450aea587 /hw/virtio/vhost-user.c
parenttarget/arm: Use tlb_set_page_full (diff)
downloadqemu-0ff993193fe759b735e382fbe06b8258b537f95d.tar.gz
qemu-0ff993193fe759b735e382fbe06b8258b537f95d.tar.xz
qemu-0ff993193fe759b735e382fbe06b8258b537f95d.zip
hw/arm/boot: set CPTR_EL3.ESM and SCR_EL3.EnTP2 when booting Linux with EL3
According to the Linux kernel booting.rst [1], CPTR_EL3.ESM and SCR_EL3.EnTP2 must be initialized to 1 when EL3 is present and FEAT_SME is advertised. This has to be taken care of when QEMU boots directly into the kernel (i.e., "-M virt,secure=on -cpu max -kernel Image"). Cc: qemu-stable@nongnu.org Fixes: 78cb9776662a ("target/arm: Enable SME for -cpu max") Link: [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/arm64/booting.rst?h=v6.0#n321 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Message-id: 20221003145641.1921467-1-jerome.forissier@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/virtio/vhost-user.c')
0 files changed, 0 insertions, 0 deletions