On 2024/8/27 21:39, Lin Yikai wrote:
Identify "$CROSS_COMPILE" to enable vm_test for cross-compile situation. Additionally, use "-cpu cortex-a57" flag to accommodate the majority of QEMU CPU lists, avoiding using "-cpu host," which can cause qemu_system_aarch64 start failure on x86_64 host.
Signed-off-by: Lin Yikai yikai.lin@vivo.com
tools/testing/selftests/bpf/README.rst | 12 ++++++++- tools/testing/selftests/bpf/vmtest.sh | 37 +++++++++++++++++++++----- 2 files changed, 42 insertions(+), 7 deletions(-)
Hi Yikai,
Your patch reminds me of a previous commit [0], which was able to support running vmtest in cross platform for all arch.
Link: https://lore.kernel.org/all/20240328124916.293173-2-pulehui@huaweicloud.com/ [0]