Bug 15691 - riscv64 default virtual memory address to Sv39 in qemu
Summary: riscv64 default virtual memory address to Sv39 in qemu
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: virtual machines (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.2 M3
Assignee: Yash Shinde
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-12-12 14:34 UTC by Sundeep Kokkonda
Modified: 2025-02-06 05:35 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sundeep Kokkonda 2024-12-12 14:34:58 UTC
RISC-V offers several virtual memory address schemes (Sv39, Sv48, and Sv57),
but ASan currently supports only Sv39 on RISC-V64.

For riscv64, Asan's tuning for Sv39 can be enabled in qemu by default.

Additional info in - https://git.openembedded.org/openembedded-core/commit/?id=4b4450ff695ef73bf7a2437e142d2e0730d6a547
Comment 1 Randy MacLeod 2024-12-12 15:56:51 UTC
No objections in the bug review but it is odd that qemu isn't doing this already. Please work with qemu upstream to see if the default can be changed there.
Comment 2 Randy MacLeod 2025-01-20 19:40:23 UTC
Sundeep, 
YP release 5.2-M2 will be built soon so we are one release until feature freeze.
Please have someone on the team look at the qemu source and our qemu recipe to see if we can safely change the default virtual memory address scheme.
Comment 3 Randy MacLeod 2025-01-21 19:08:33 UTC
Add Raj from WR who may have some guidance on options or interest in ensuring that the qemuriscv64 "BSP" configuration. Raj, perhaps you and Sundeep can talk since you're in the same timzeone.