Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1331127pxk; Thu, 10 Sep 2020 12:42:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzayngGYqUpBRWcN5sp60Kf/MJ54I+SJUPqM9iZMjDEMy5dLJaTzgKR4jn28HeO1eNPbpK9 X-Received: by 2002:aa7:ce19:: with SMTP id d25mr11168300edv.189.1599766942259; Thu, 10 Sep 2020 12:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599766942; cv=none; d=google.com; s=arc-20160816; b=VT0bdRDRnDwjkMzhZGYHmMCoh1MYuMY2GrLt6g/ZBukvxqPBqQubf3p1q2ciN8pOdK P3EICe1KBFULfVm93br97nyfge0fD1wAR01zpu65zr5VFkbt10UL1gToA2yvimNcergU +maH2YbQ5iagKbW5wl9vHQXVfhG5iuMM55BJjp90McIfUu8auXUnk/zWQLipiuXccVDv GHDJcQMKvk0eP2ChmO4xcSJBd0VrAQy2eP6KoBxm5Fm6iJUWsQh+ZpYez5la4urZSe5H Eo5NNEPMh3EklPKChfL5Fiuw6VN9g5WjroQuhdNLLcGJQFf+RJL4KbkSVp/FClftG5BD S1/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=+NphFAz+bbbGOLPoViKWvapYAGN08JtmjYnLzZIKOxo=; b=bD8sjp/KyiV7O47N0MSK+mHtTetoj97NlKcMnKvImt/TuMTueLYan1I8Q5ThJQQ1PG kL7mI6dDaeYja31I/u5TIws73CnnqDdRyfTE/gmwZ/XjAvh+vfzlumu9OQ77mfyPIZGU jACel9CycphJxcA2wI98FOe0/pbZYr4LngNmw1tmU7oEOriGek5gBYOvZKnpngtHi9vn sJrkBmFckQ6NHhQr4rGva3ACA+pkYtKRbDSEmqRyfCl7ArEfGmT7AJVTXAXzLebNv5TO S3fR4DZUNYGm0ImUD4j7Txu2I6DyRq0m7OrrcW0QSOEoeT4FERVug5eHZhcablMlpGiw 68VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GKVS6dK7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si4333447eja.528.2020.09.10.12.41.58; Thu, 10 Sep 2020 12:42:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GKVS6dK7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727976AbgIJTlM (ORCPT + 99 others); Thu, 10 Sep 2020 15:41:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731316AbgIJPgr (ORCPT ); Thu, 10 Sep 2020 11:36:47 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2217C06138E for ; Thu, 10 Sep 2020 08:36:47 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id w7so4853063pfi.4 for ; Thu, 10 Sep 2020 08:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+NphFAz+bbbGOLPoViKWvapYAGN08JtmjYnLzZIKOxo=; b=GKVS6dK77bx/0jZLujlXrhsPEnEfKJjffubPbjyONPpDBt8aKV+/WikhO98lFUcqBg fknNlKQUgg0UcuMI4rvH6oQicx7azui4MD9+lZC8HzP87Vi4TbpnL5wsy+KtaRvsh2LC 56er56VCnPG1cwnDpL+FZu4sdinoEO6m0lag595MpAp4J3HgJxKTp/ftgfAClZ5xpG9e IGh4od5fDmnNKVRLqhekiwgA0ji4hW/l6rP7Ub0rdSacgB+QsToPnSt5fJEOro/bh0y5 tfWDEo6mZ+GCGnCsbnFxd4FHFyfq+MjpuaQe3PdZTqbmYXIk7DHpN7njMs/8y0p1rs/E iOwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+NphFAz+bbbGOLPoViKWvapYAGN08JtmjYnLzZIKOxo=; b=LDxbVRX/9O6Ak8TXqgctU2zsmxggeRzdSOCBjtTahYK8aGhDiemCMvRqFd15DLfql5 1Mrx/r1SVvg+PsQAI2QY2X9UjOFmaCxEXPqGp/5DV5jFjbBOqdNGqkkgAVbGnHfa7qyR GZyxQfyKcYGXDQUjZmNfvxvNRkZj4kWXgcxyNMF3QAw78Y8+j9yER/SSCphOsEHfO7fz 1ane7AUQeqm/1nXgemBR666+PMihDrUTJSoF33uS4aKGWJiAdeBOFcSwQi60JuUiIjVc 8mR/Zdx0xwtrQF8HyD3MQkfjezH3rqO0y/LZPhJyTSZOUzP71q3LTPUa1M0dEN6Nm47f 4DVg== X-Gm-Message-State: AOAM530VoUJL4fY0yBiSHfpbup8Nfm7tigEByG0UPHVgXvDk8h1N3Z4A 6B0Qqbk7sN2wCpYdKrrOG1XvmA== X-Received: by 2002:aa7:8bd4:0:b029:13c:1611:6538 with SMTP id s20-20020aa78bd40000b029013c16116538mr6137309pfd.10.1599752207202; Thu, 10 Sep 2020 08:36:47 -0700 (PDT) Received: from [192.168.1.11] ([71.212.141.89]) by smtp.gmail.com with ESMTPSA id s187sm6690150pfc.134.2020.09.10.08.36.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Sep 2020 08:36:46 -0700 (PDT) Subject: Re: [PATCH v2 0/2] MTE support for KVM guest To: Steven Price , Catalin Marinas , Marc Zyngier , Will Deacon Cc: James Morse , Julien Thierry , Suzuki K Poulose , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dave Martin , Mark Rutland , Thomas Gleixner , qemu-devel@nongnu.org, Juan Quintela , "Dr. David Alan Gilbert" , Peter Maydell , Haibo Xu References: <20200904160018.29481-1-steven.price@arm.com> <8e661984-70bc-790c-8636-39dcd8b00131@linaro.org> <842807ac-562a-36ce-8061-aa323341b605@arm.com> From: Richard Henderson Message-ID: Date: Thu, 10 Sep 2020 08:36:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <842807ac-562a-36ce-8061-aa323341b605@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/10/20 3:24 AM, Steven Price wrote: > It is a shame, however I suspect this is because to use those instructions you > need to know the block size held in GMID_EL1. And at least in theory that could > vary between CPUs. Which is no different from having to read DCZID_EL0 in order to implement memset, in my opinion. But, whatever. > When we have some real hardware it would be worth profiling this. At the moment > I've no idea whether the kernel entry overhead would make such an interface > useful from a performance perspective or not. Yep. r~