<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15691</bug_id>
          
          <creation_ts>2024-12-12 14:34:58 +0000</creation_ts>
          <short_desc>riscv64 default virtual memory address to Sv39 in qemu</short_desc>
          <delta_ts>2025-02-06 05:35:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>virtual machines</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sundeep Kokkonda">sundeep.kokkonda</reporter>
          <assigned_to name="Yash Shinde">Yash.Shinde</assigned_to>
          <cc>kexin.hao</cc>
    
    <cc>raj.khem</cc>
    
    <cc>Rajeshkumar.Ramasamy</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100420</commentid>
    <comment_count>0</comment_count>
    <who name="Sundeep Kokkonda">sundeep.kokkonda</who>
    <bug_when>2024-12-12 14:34:58 +0000</bug_when>
    <thetext>RISC-V offers several virtual memory address schemes (Sv39, Sv48, and Sv57),
but ASan currently supports only Sv39 on RISC-V64.

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

Additional info in - https://git.openembedded.org/openembedded-core/commit/?id=4b4450ff695ef73bf7a2437e142d2e0730d6a547</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100431</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-12-12 15:56:51 +0000</bug_when>
    <thetext>No objections in the bug review but it is odd that qemu isn&apos;t doing this already. Please work with qemu upstream to see if the default can be changed there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100702</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-20 19:40:23 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100710</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-21 19:08:33 +0000</bug_when>
    <thetext>Add Raj from WR who may have some guidance on options or interest in ensuring that the qemuriscv64 &quot;BSP&quot; configuration. Raj, perhaps you and Sundeep can talk since you&apos;re in the same timzeone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100851</commentid>
    <comment_count>4</comment_count>
    <who name="Yash Shinde">Yash.Shinde</who>
    <bug_when>2025-02-06 05:35:23 +0000</bug_when>
    <thetext>Fix merged in oe-core master:

https://git.openembedded.org/openembedded-core/commit/?id=5e749a2576698e390392b5d522a2dc5fdc9556cd</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>