From patchwork Mon Aug 1 15:36:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 594719 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp3575723maz; Mon, 1 Aug 2022 08:43:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uN1YunBS+rRggAqJSi32fwSZM3lOsOm0T1AFkaqnANpogPvMtTYmbVW2qdbZYWXAU3G/Gp X-Received: by 2002:ac8:5e0d:0:b0:31f:239c:99c6 with SMTP id h13-20020ac85e0d000000b0031f239c99c6mr14946513qtx.189.1659368598175; Mon, 01 Aug 2022 08:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659368598; cv=none; d=google.com; s=arc-20160816; b=zvCJEgiJnBEt+OECb5nti9O8dvFnJFX0J9uGy5hgYM0tSmcL7BXPvA7bPMC8Oodnnn guRKPzyHUtOtMySbJ1XAQJBGtSLySpBdfaZ3J/tv8sWlZMRpEdJ6E1OkiIsUEynlC8bq MCia2dNb+VlGbOVmO+iAsw7oQUYUD8VmGAOYEqTAurBH2AkVBRsAJJSO8uiKyLmoZWXI NZOWb5A7AAW0ZTzP4kfzGuCzSKlj7/twwNaqqTGly850jtpdOBgwSHOlz9w4OrwM8lVj hmXxdh1bhwmdMqalza/ZUY5fbgld9iibUtZ1INqjz+CAcatkWS6c0am1mKl6d5wJuGZc 6Uzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=Ipf2GTEsKt1D5ZFSIONpxUko5GzazWg9tTGt6/Pqvzs=; b=ZqShiFfQrTUHsIBmY+2ewoRDxMz+iYFFItQ5TFdwn2ErMNloc/xOnHIFBVyy/EML0y UG99TcfcoWZEUjqPsSK7OCOz17R4RMWZRLi/rCx8YFsw491uWMZ7+RBGEfZ2OwL7Xji1 Cz9i2dMqo1qpVRgo7G1YIeeH+SGyCWMwufs+7I4kkSC0u6yCGhDUqi0y132uKeWxK0hf bZ8HUFLrl0a14HVakLBxTkiLv5O2gJQADEKtsao4MzGE/ABZ79i3DLfisMfK0fwzohWt a3qYLMFvjfhgi9lvAtuaSAykAn328cmv1lKTZHfWoCdl/HkZkm2jeKHUc2sJ6SkjRK3W 3zIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WCss6kAZ; 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=pass (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 j13-20020ac8440d000000b00305118d30b8si6103451qtn.208.2022.08.01.08.43.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Aug 2022 08:43:18 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=WCss6kAZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIXZd-0001bR-9S for patch@linaro.org; Mon, 01 Aug 2022 11:43:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIXSm-0005Ky-DX for qemu-devel@nongnu.org; Mon, 01 Aug 2022 11:36:13 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:40847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oIXSk-0006gs-OK for qemu-devel@nongnu.org; Mon, 01 Aug 2022 11:36:11 -0400 Received: by mail-wm1-x329.google.com with SMTP id ay11-20020a05600c1e0b00b003a3013da120so7611623wmb.5 for ; Mon, 01 Aug 2022 08:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc; bh=Ipf2GTEsKt1D5ZFSIONpxUko5GzazWg9tTGt6/Pqvzs=; b=WCss6kAZmxyOwNaQLQz70U5Qr6bt+RJYYHajWxqXQbeNjuKzKEUSu6EWg1STfKZcDh lhKmnNUK2f9jF3zjX7CgKA9Ujjs8z/3KNwbxfVJGNzMw2naWVxhuU+VBzJCsthdgTiKa B1IoA+d6JPhgs7b2/ymTXXZHmfyVS05kz6G9s2tGNKEhNV55yUMxSYQ1GCBJSBm+xxer qv5lAqtkQPyp1jijWfFHsciMWjUwJ+8c6Sw7bqnS2uzo9+ighNJ6ECyqXWTYi6Fjaeh9 GA9EtLpKZz65KbH6/CIb5f+ZxHZxYZGOxpo6lyNH8xQHvNULwGvAv6HAWaaR7CEmP/vR x9ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc; bh=Ipf2GTEsKt1D5ZFSIONpxUko5GzazWg9tTGt6/Pqvzs=; b=c2XIZWeu6BcTrucMu8oGmH1KLR6Q/D5yYbe/zkVIn2HSeKJB4ubhr93YGr79PZhWEk DZ0zZkjCDBFOikjsLdzmFZ54GYclX2E1dC1U251AI0XZsiKjw7xtsMA7ZmUTrNbum8pM /F3cNw5l6FedP2CNWA9r+JiP7/I+taLXGoqNd0i9bhCGM5G9+XtPbbGDeAQ4hdHw+KyE iVZiWFMFzdD/L8qmMcC1Mm5OJ/B3EbuCfVUvv0i6UlmtTaz7DdKaGtQ0KJYxjwVRDYaz 7s2K0A6gTknTVwe7fSwxcfRjOaU+ECM20OSljat2dIdv5sdrBmkt6iycMfT2dezdWR7n gYlA== X-Gm-Message-State: AJIora8Tk+SpojBUHUS/Jsty+/312X1Ym3v30GH9N6aq8FmmKHcnY+Ik DTJdtga/i9xH9jSW2ngcrRUkXGy5xTZpKg== X-Received: by 2002:a05:600c:19d2:b0:3a3:3aca:a83d with SMTP id u18-20020a05600c19d200b003a33acaa83dmr11808295wmq.88.1659368169273; Mon, 01 Aug 2022 08:36:09 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id l16-20020a5d4bd0000000b0022059422255sm7109295wrt.69.2022.08.01.08.36.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Aug 2022 08:36:08 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 1/3] target/arm: Use kvm_arm_sve_supported in kvm_arm_get_host_cpu_features Date: Mon, 1 Aug 2022 16:36:03 +0100 Message-Id: <20220801153605.3051778-2-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220801153605.3051778-1-peter.maydell@linaro.org> References: <20220801153605.3051778-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Indication for support for SVE will not depend on whether we perform the query on the main kvm_state or the temp vcpu. Signed-off-by: Richard Henderson Message-id: 20220726045828.53697-2-richard.henderson@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/kvm64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c index d16d4ea2500..bb1516b3d5a 100644 --- a/target/arm/kvm64.c +++ b/target/arm/kvm64.c @@ -675,7 +675,7 @@ bool kvm_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf) } } - sve_supported = ioctl(fdarray[0], KVM_CHECK_EXTENSION, KVM_CAP_ARM_SVE) > 0; + sve_supported = kvm_arm_sve_supported(); /* Add feature bits that can't appear until after VCPU init. */ if (sve_supported) {