diff options
author | Yifei Jiang | 2020-11-30 02:28:10 +0100 |
---|---|---|
committer | Alistair Francis | 2020-12-18 06:56:43 +0100 |
commit | c63ca4ff7f81116c26984973052991ff0bd7caec (patch) | |
tree | d9d6c2f36ef5968566403ccfe3638eadbd471751 /subprojects/libvhost-user | |
parent | hw/core/register.c: Don't use '#' flag of printf format (diff) | |
download | qemu-c63ca4ff7f81116c26984973052991ff0bd7caec.tar.gz qemu-c63ca4ff7f81116c26984973052991ff0bd7caec.tar.xz qemu-c63ca4ff7f81116c26984973052991ff0bd7caec.zip |
target/riscv: Fix the bug of HLVX/HLV/HSV
We found that the hypervisor virtual-machine load and store instructions,
included HLVX/HLV/HSV, couldn't access guest userspace memory.
In the riscv-privileged spec, HLVX/HLV/HSV is defined as follow:
"As usual when V=1, two-stage address translation is applied, and
the HS-level sstatus.SUM is ignored."
But get_physical_address() doesn't ignore sstatus.SUM, when HLVX/HLV/HSV
accesses guest userspace memory. So this patch fixes it.
Signed-off-by: Yifei Jiang <jiangyifei@huawei.com>
Signed-off-by: Yipeng Yin <yinyipeng1@huawei.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20201130012810.899-1-jiangyifei@huawei.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'subprojects/libvhost-user')
0 files changed, 0 insertions, 0 deletions