Can be used in combination with the COMPILER_RT_EMULATOR CMake variable
and check-hwasan-lam to test LAM functionality in QEMU.
Details
- Reviewers
vitalybuka eugenis
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
120 ms | x64 windows > LLVM.Other::new-pm-lto-defaults.ll |
Event Timeline
compiler-rt/lib/hwasan/scripts/run_in_qemu_with_lam.sh | ||
---|---|---|
115 | It can be done if the custom kernel is built with a certain config to enable virtio and 9p filesytem. I don't remember the exact config required anymore. IIRC there were also permissions issues if qemu wanted to write any files in the mounted directory. I ended having to run qemu as root. For the hwasan tests scp seems to work fine. | |
158 | The nice thing about the current script is that it is self-contained. We don't need to manage a pool of qemu VMs and remember which ones need to be closed. Instead, each VM is booted up to run a single binary and then shutdown immediately. The tradeoff is that tests take longer with the current script, since we do lots of booting and shutting down. But on my 48 core machine, check-hwasan-lam finishes in 15 minutes, so I haven't felt a need to invest in making it faster. |
can we mount build dir?