From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3D04C4361B for ; Wed, 16 Dec 2020 10:25:15 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8F95822D49 for ; Wed, 16 Dec 2020 10:25:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8F95822D49 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=T0aGACcGBbw+dQ4qhUUt8Unql1pz+5RQwDMtNJVf3S0=; b=pVKvuDoRRLACF6Kkpgf/N5/ua tEKx2FeGKLEshYIELWv06EOJvlK4JlZthWYXKWDhT9vHdGs2SeoQeGCJGwU7orjoXBKMHk5QLuWjq Sk7bgu3ZGPvTiOZxbk1HKoMGF+qct10pUihAwgoqstOSeb/zEaKD43GAT905HHdf3M8z9sx4lZC+2 uzq+OGSV8+dAQDOJgilQq/7dm1tH/sgDgf8KKsm4tqu2fFRZbvdm9lUmgY4eUQ6ZAhPRQNiKUCCE5 6nsBYziPSu4FkbClNgBQKvCxO8hvSEHZVK9OGkYxThSVw2ZeqSugSdKiQrhyNpL4zJiGxtYDC0tdN pRRX5M4TQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kpTy4-0007Hr-A4; Wed, 16 Dec 2020 10:23:36 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kpTy1-0007Gu-Jk for linux-arm-kernel@lists.infradead.org; Wed, 16 Dec 2020 10:23:34 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B934F1FB; Wed, 16 Dec 2020 02:23:27 -0800 (PST) Received: from [192.168.1.179] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 03FF13F66B; Wed, 16 Dec 2020 02:23:25 -0800 (PST) Subject: Re: [PATCH v5 0/2] MTE support for KVM guest To: Haibo Xu References: <20201119153901.53705-1-steven.price@arm.com> <20201119184248.4bycy6ouvaxqdiiy@kamzik.brq.redhat.com> <46fd98a2-ee39-0086-9159-b38c406935ab@arm.com> From: Steven Price Message-ID: <29a7229d-a1ff-98a5-3007-1addcc85aa04@arm.com> Date: Wed, 16 Dec 2020 10:22:52 +0000 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: Content-Language: en-GB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201216_052333_710304_920D1563 X-CRM114-Status: GOOD ( 16.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jones , lkml - Kernel Mailing List , Juan Quintela , Marc Zyngier , Richard Henderson , QEMU Developers , "Dr. David Alan Gilbert" , Catalin Marinas , Thomas Gleixner , Will Deacon , kvmarm , arm-mail-list , Dave Martin Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 16/12/2020 07:31, Haibo Xu wrote: [...] > Hi Steve, Hi Haibo > I have finished verifying the POC on a FVP setup, and the MTE test case can > be migrated from one VM to another successfully. Since the test case is very > simple which just maps one page with MTE enabled and does some memory > access, so I can't say it's OK for other cases. That's great progress. > > BTW, I noticed that you have sent out patch set v6 which mentions that mapping > all the guest memory with PROT_MTE was not feasible. So what's the plan for the > next step? Will new KVM APIs which can facilitate the tag store and recover be > available? I'm currently rebasing on top of the KASAN MTE patch series. My plan for now is to switch back to not requiring the VMM to supply PROT_MTE (so KVM 'upgrades' the pages as necessary) and I'll add an RFC patch on the end of the series to add an KVM API for doing bulk read/write of tags. That way the VMM can map guest memory without PROT_MTE (so device 'DMA' accesses will be unchecked), and use the new API for migration. Thanks, Steve _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel