From patchwork Tue Nov 16 16:25:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 519205 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp7367955imj; Tue, 16 Nov 2021 08:30:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzas4qgkCPiSqsx4t2flcMv3/aP8izsT+1s3SayK5WNFuc0WIhEpBriBVuev8j2PRqXMMuJ X-Received: by 2002:a05:620a:1294:: with SMTP id w20mr7554250qki.197.1637080211815; Tue, 16 Nov 2021 08:30:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637080211; cv=none; d=google.com; s=arc-20160816; b=zqZtO5TkP/5yvtse86UR1ISIsZhq4uk6WQaojmhVj5i/u3JwKQQCt15krlGz1XILj1 eV6JjcYcvgGVhdTnSt7d4/tq63Wgym05T/vCZmnhdN287R0nakU/2O3hQQplJsPzeSDM oyIBVuewOIhnD3pLdCU6AG/aEKkdrjckENB670x0t7FetO9hlY/fwy746DmK3Z4lg/30 8euuBEd8OAKohJ7vrdATzs3Xg//NXlXwDShNW+i7ASqtd3SZbSu/3TeDT9vRMSLAzD0W C/hl+O8vLYSo6eth2AkZiD03J6tH517URf7941V4PToqBsSqN25Ilum1Z68vn6rEazXH SS3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=hp+3+9AUZf48hagv9aooEUSQ5CMyks7M2uw5VJWYugU=; b=PQz82Y5pZkNQsacYRvUkDDr9NFsdB+JHORZENYEP9HjowXSnMn0llGurYlGL6HJ58P iEffZJMitPWfL8ZdorB4UdrlNQMx2sMs42KqclMWFXaxpYwUfuyGPq+QLTTcj+GNG9bz hB5/hG6sWOwXD8ebcM5G0MJy6X+Nw7tTyKSwQLm3KpBL40BjqwZM9cnQ8jxCOdn83vXF p2hciwmM+L7lZo+j0HcjwrB5vm31J5rFDHetkV8jyOYvGyfMb4ZndNcp56EYrtD2Q4aZ 7ZeqxQ+2ekPsHCANSpZd+dbJyGoVcI1SuMZ1Y9q4SE2LjHEeTcKcSQaM6tunYIzRQlig o1iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gWtyV0vD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l8si14894628qtk.351.2021.11.16.08.30.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Nov 2021 08:30:11 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gWtyV0vD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn1LX-0001lo-8q for patch@linaro.org; Tue, 16 Nov 2021 11:30:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn1Gu-0004Zl-6W for qemu-devel@nongnu.org; Tue, 16 Nov 2021 11:25:24 -0500 Received: from [2a00:1450:4864:20::336] (port=37724 helo=mail-wm1-x336.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn1Gs-0004CJ-H2 for qemu-devel@nongnu.org; Tue, 16 Nov 2021 11:25:23 -0500 Received: by mail-wm1-x336.google.com with SMTP id k37-20020a05600c1ca500b00330cb84834fso2466195wms.2 for ; Tue, 16 Nov 2021 08:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hp+3+9AUZf48hagv9aooEUSQ5CMyks7M2uw5VJWYugU=; b=gWtyV0vDYq0MArlCyWINj5Fvf5hBiw9DdW/uHF7PCyhhz3DbRVKX5kbR9yK3VU1Pwl DNN4nEI9CscKYVg0/+K45wxEGeOPhvzMma6Nm2dbv/MCRBRl0iw+7PR96Qyi3IT1ezYm 83phF0V7A270RLemr7y0VmK9z4P3Fr+qh6Eij4M+doiBMxzp3nR5lP3BuG1LfvhiblI2 SH9KLm/PZWzAcuXPztiT2+SmTpGeA7Pk0/M+wunl6oSjkA+ufWJbBU+amrChT5w7rywD EZ7Dw1OoaZw+gPb3Zi1KixtXQh/x2Or1hUt+vPk/f/Qw09T3bI/dmaHZmiHwkwQ2Gr08 XHSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hp+3+9AUZf48hagv9aooEUSQ5CMyks7M2uw5VJWYugU=; b=JSjTJcJO7dyphpcUbVYyeQGEWXGn8zrGeT67x3Hw/a/HtO4htfYPvn9/nMBjpf7saJ lts9oKD0aldGOsqnKa5uffLx2+x+768FItOD2wwwx7EgmZw9qlpgJzZdnG7n6dU7hECE ioAihXNn6uqcgSxthNM/j0H4Y3sTfIt+CnYelnvIzb4cLZgYtBSW/D4BLuRPzLtsfSN6 msGrZ2mXcPze0s8hLQ1UFyO6hU27bClyE/XfmFu5AC/EpZh51n/zUaScBQxohK7ORMAw 0TyLeO2YG0tgfY1Yvx2E+0DkKnXNmi28wiTRrW3L5pU3DVspLz6f56OFMnKrJ7qmdhHn GDsg== X-Gm-Message-State: AOAM531byoGxfEuCEk4s3cR5U9bPm9Fn6E5Za7upDBcC/SNbDxGUpv/l Jek8GwAvh15dnhbxEPCbzWdm7A== X-Received: by 2002:a05:600c:21cd:: with SMTP id x13mr71920016wmj.52.1637079920847; Tue, 16 Nov 2021 08:25:20 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id w4sm5956224wrs.88.2021.11.16.08.25.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 08:25:19 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 987BB1FF9A; Tue, 16 Nov 2021 16:25:15 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: richard.henderson@linaro.org Subject: [PULL 3/7] tests/vm: don't build using TCG by default Date: Tue, 16 Nov 2021 16:25:11 +0000 Message-Id: <20211116162515.4100231-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211116162515.4100231-1-alex.bennee@linaro.org> References: <20211116162515.4100231-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::336 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Thomas Huth , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Willian Rampazzo , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" While it is useful to run these images using TCG their performance will not be anything like the native guests. Don't do it by default. Fixes: https://gitlab.com/qemu-project/qemu/-/issues/393 Signed-off-by: Alex Bennée Reviewed-by: Willian Rampazzo Reviewed-by: Richard Henderson Message-Id: <20211115142915.3797652-4-alex.bennee@linaro.org> diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include index f8ca619cf2..ae91f5043e 100644 --- a/tests/vm/Makefile.include +++ b/tests/vm/Makefile.include @@ -2,14 +2,22 @@ .PHONY: vm-build-all vm-clean-all +HOST_ARCH = $(if $(ARCH),$(ARCH),$(shell uname -m)) + EFI_AARCH64 = $(wildcard $(BUILD_DIR)/pc-bios/edk2-aarch64-code.fd) -IMAGES := freebsd netbsd openbsd centos fedora haiku.x86_64 +X86_IMAGES := freebsd netbsd openbsd centos fedora haiku.x86_64 ifneq ($(GENISOIMAGE),) -IMAGES += ubuntu.i386 centos +X86_IMAGES += ubuntu.i386 centos ifneq ($(EFI_AARCH64),) -IMAGES += ubuntu.aarch64 centos.aarch64 +ARM64_IMAGES += ubuntu.aarch64 centos.aarch64 +endif endif + +ifeq ($(HOST_ARCH),x86_64) +IMAGES=$(X86_IMAGES) $(if $(USE_TCG),$(ARM64_IMAGES)) +else ifeq ($(HOST_ARCH),aarch64) +IMAGES=$(ARM64_IMAGES) $(if $(USE_TCG),$(X86_IMAGES)) endif IMAGES_DIR := $(HOME)/.cache/qemu-vm/images @@ -43,7 +51,7 @@ else endif @echo " vm-build-haiku.x86_64 - Build QEMU in Haiku VM" @echo "" - @echo " vm-build-all - Build QEMU in all VMs" + @echo " vm-build-all - Build QEMU in: $(IMAGES)" @echo " vm-clean-all - Clean up VM images" @echo @echo "For trouble-shooting:" @@ -56,6 +64,7 @@ endif @echo ' EXTRA_CONFIGURE_OPTS="..." - Pass to configure step' @echo " J=[0..9]* - Override the -jN parameter for make commands" @echo " LOG_CONSOLE=1 - Log console to file in: ~/.cache/qemu-vm " + @echo " USE_TCG=1 - Use TCG for cross-arch images" @echo " QEMU=/path/to/qemu - Change path to QEMU binary" ifeq ($(HAVE_PYTHON_YAML),yes) @echo " QEMU_CONFIG=/path/conf.yml - Change path to VM configuration .yml file."