From patchwork Mon Jul 13 21:33:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 235497 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp3190947ilg; Mon, 13 Jul 2020 14:33:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwioKIR9NoLnxKV6tnGJsNadLhcjJ/LH56JBPn6gM3hGmTT3DCd+KizVOIdL04sfhZ3eRcb X-Received: by 2002:a25:b903:: with SMTP id x3mr3339965ybj.445.1594676037044; Mon, 13 Jul 2020 14:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594676037; cv=none; d=google.com; s=arc-20160816; b=JaBL1XgJj/ko1Dcp7zcX/0wE2fJj1yxlLJ4bFpHc+Q/zOh/Ikd1mMVZTY+iVIfPZAj NRj04dBKVml8Xy/ns6zsLRvQopVlqqTO0NMvHIx1/KNWB7IKOEQqi2uaQft6NesRqHso cvM47/2vhkbxVAN4LnnICBmtOFJmknJPOTjFSAXM9fxzckEXE3905Dceu/zjokkKoJpN wJesY2jGGkb2si8hjkAMiJuxbe6Ttc5RBsHH8kGS7IunV9GiA4tTMC2RKGTbsy8pBmSK KuFaJVnWaJW+CWVOCVyb/mj9e4doXaSB7iPi3naxt2sKExaYANn1FaPsZpjfNkKAcc7e nzmA== 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:message-id:date:subject:to:from:dkim-signature; bh=8WL7mHqVeto3seRdphAbDKBPOvWdqFs/rTUbtyz8qVc=; b=ueXhnEFr2Dx93TYIjo1nRjrxuHvmDWZS+ByqaX2NrkrFFpSGtdRcxSzz6DREmlcpZ6 r+/XXDYVPIC2QgoCRxrkrssc7bExwErQSpo6LopjrFgqOL+YO2A5RAVhLwDMEXClEYqF LC6z/bk5WtmQVA5YVEFtV3M1HRsMmbtbsEnN8N4+wPoHjtE+LBVKdINAVDCImzbCVEXC s8m/wzvp4MGsrl4hZsRKnscFRUL+zvKiRb1XxypYldT92vx7EhFsJqy/nJQSE3TIC6Kk GQ5qRroJ7+mCoMCH2xEXREqelj/kilCOpwPjVftTALD38GWsfEsIbw3r4dkjpkVQEWtn iHbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jbyDvhox; 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 p3si2134362ybo.96.2020.07.13.14.33.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Jul 2020 14:33:57 -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=jbyDvhox; 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]:47224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jv65E-0007yT-IM for patch@linaro.org; Mon, 13 Jul 2020 17:33:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jv655-0007yM-QV for qemu-devel@nongnu.org; Mon, 13 Jul 2020 17:33:47 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:41803) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jv654-0004WX-97 for qemu-devel@nongnu.org; Mon, 13 Jul 2020 17:33:47 -0400 Received: by mail-pf1-x444.google.com with SMTP id q17so6610383pfu.8 for ; Mon, 13 Jul 2020 14:33:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8WL7mHqVeto3seRdphAbDKBPOvWdqFs/rTUbtyz8qVc=; b=jbyDvhoxGatE/yIvVxseno334gAwMrDkufLcDtUlhMZYxUWkGyJem8sHcntV1JoNZz 0EsZUCsOmP9LQFQvjbZUIpLsNF9NP42iT+xfbR9cyZyMCmGdp1H2qcKmwbi+dTOhJuwH 8zVytfC1XFsHhrInzuj3PXd1GT6bznFcUg//iqBtrlnOzolLL4IZytvWYPRkNlq7WGy2 RDCPLShThzmY3dvNzcFcjTc4kM2K5HZ7aXdOgEASkW8pttivmznn/qcq8cisKp47Trb/ Zbo70l3fl+QNAbKvgdKSbfv2t1Nd+TM7clfWL80uoqolyQXyX1jPcbn71REax5ZcNPrM qSZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8WL7mHqVeto3seRdphAbDKBPOvWdqFs/rTUbtyz8qVc=; b=P6NI67LH7Gd67d4LesKm2MJMDBUiN2EVD6UUDS2i976BaUZHr5xZ/UyVGL4K0wgYvJ myv6xOWfGGQneAOMG/9R3xT0sxey/XRRJWYbIYjbXCOk/HKW2TFRYBnYfxQPq68t3Y9M rH7GGaX7rNEN0DfKRieo61Yku/zcCI59LcAwrawR57/rfDegdYhba43Zw7NAmJa7Eo3s CwxmEMySpjnhG2fvTZGnTCNXSgLwy4UrkobON+HdbpM5eku2k6a5pAzT6Oai7qSVe1ck f2HptXWhTPdREdYSVtsMH37WFk+qxwskgckRYEzAB22Z89hO3yOo6XaJ5fWvQowWBoCr Rz5Q== X-Gm-Message-State: AOAM533x5WWRpqru+Okt8kk4w5B08hhTlooBTWDbLSGNk791ZH6fa59T jGe2mJxXqsEVnePsVRtcf4xLVK0+UdQ= X-Received: by 2002:a62:86cc:: with SMTP id x195mr1575843pfd.39.1594676024311; Mon, 13 Jul 2020 14:33:44 -0700 (PDT) Received: from localhost.localdomain (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id l207sm3591565pfd.79.2020.07.13.14.33.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 14:33:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-5.1 0/3] target/arm: MTE improvements Date: Mon, 13 Jul 2020 14:33:38 -0700 Message-Id: <20200713213341.590275-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::444; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x444.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Since MTE is new, and guest support for MTE is still under development, let's disable it by default. Peter mentioned memory hotplug on IRC as something that would break MTE's assumptions. By putting the enable flag on the machine it's much easier to control. For 5.1, we won't have kvm support, so error for that combo. r~ Richard Henderson (3): hw/arm/virt: Enable MTE via a machine property hw/arm/virt: Error for MTE enabled with KVM hw/arm/virt: Disable memory hotplug when MTE is enabled include/hw/arm/virt.h | 1 + hw/arm/virt.c | 50 ++++++++++++++++++++++++++++++++++++++----- target/arm/cpu.c | 19 +++++++++------- target/arm/cpu64.c | 5 +++-- 4 files changed, 60 insertions(+), 15 deletions(-) -- 2.25.1