xlab-uiuc / qemu_ECPT

Official QEMU mirror. Please see http://wiki.qemu.org/Contribute/SubmitAPatch for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website.
http://www.qemu.org
Other
0 stars 0 forks source link

Fix hack that avoids translation failure warning #2

Open siyuanchai1999 opened 6 months ago

siyuanchai1999 commented 6 months ago

Uncomment this line will trigger a translation failure warning due to the fact that we get an incorrect mmu_idx (MMU_USER_IDX) but to a kernel address space (cpu_entry area).

We hacked it by setting every address translation tracing request as with privilege of kernel; however, ideally, we want it to formulate the request with correct privilege. More details can be found at comment in the commit (https://github.com/xlab-uiuc/qemu_ECPT/commit/aa4cf6e2e3a1904380f3395f23b6c5146f35dcda).

This can be reproduced by running a simple mem_test workload: (https://github.com/xlab-uiuc/linux_gen/blob/b08fc54c80b642bc921794be809538eb854c80ef/run_ECPT_execlog#L107)