[Lldb-commits] [PATCH] D82064: [ARM64] Add QEMU testing environment setup guide for SVE testing

Diana Picus via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 25 04:42:31 PDT 2020


rovka added a comment.

Hi Omair,

If this is intended to be more generally useful, I wonder if we should rename it to something else (e.g. lldb-qemu-howto.txt) and only use AArch64 SVE as a case study.

In any case, thanks for writing this up!



================
Comment at: lldb/docs/lldb-qemu-aarch64-sve-howto.txt:5
+
+QEMU can be used to test LLDB in emulation environment in absence of actual
+hardware. This write up will help setup an QEMU environment for testing LLDB
----------------
Nitpick: "in **an** emulation environment in **the** absence of actual [...]


================
Comment at: lldb/docs/lldb-qemu-aarch64-sve-howto.txt:7
+hardware. This write up will help setup an QEMU environment for testing LLDB
+patches supporting AArch64 features like SVE, MTE, Pointer Authentication etc.
+
----------------
Isn't this guide still useful after the patches are merged?


================
Comment at: lldb/docs/lldb-qemu-aarch64-sve-howto.txt:9
+
+Ubuntu Bionic/Focal x86_64 host machine was used to test all instruction in this
+document. Please update it according to your host distribution/architecture.
----------------
Typo: all the instructions


================
Comment at: lldb/docs/lldb-qemu-aarch64-sve-howto.txt:19
+################################################################################
+#!/bin/bash
+
----------------
Would it be better for this to be an actual script in lldb/utils or somewhere similar?


================
Comment at: lldb/docs/lldb-qemu-aarch64-sve-howto.txt:78
+#
+# Build QEMU from source for AArch64 system-mode emulation
+################################################################################
----------------
Is this difficult to infer from QEMU's own docs? If not, maybe just add a link and mention only what's specific to this guide (I'm guessing the target-list).


================
Comment at: lldb/docs/lldb-qemu-aarch64-sve-howto.txt:96
+#
+# Cross compile Linux kernel
+################################################################################
----------------
Same as above, could this be just a link to the official docs?


================
Comment at: lldb/docs/lldb-qemu-aarch64-sve-howto.txt:124
+################################################################################
+#!/bin/bash
+
----------------
Same as step 1: can this live in utils?


================
Comment at: lldb/docs/lldb-qemu-aarch64-sve-howto.txt:176
+# Your default username will be the one with whom you created RootFS image.
+# Internet access inside your emulation environment run: sudo dhclient enp0s2.
+################################################################################
----------------
Nitpick: **For** Internet access [...]


================
Comment at: lldb/docs/lldb-qemu-aarch64-sve-howto.txt:217
+
+# Cross compile LLDB server for AArch64 Linux
+# Transfer LLDB server executable to emulation environment
----------------
For consistency, maybe there should be some commands here, or a link to the docs for cross-compiling.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82064/new/

https://reviews.llvm.org/D82064





More information about the lldb-commits mailing list