From patchwork Wed Oct 26 16:05:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cornelia Huck X-Patchwork-Id: 13020864 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26DA2C433FE for ; Wed, 26 Oct 2022 16:05:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234415AbiJZQF0 (ORCPT ); Wed, 26 Oct 2022 12:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234389AbiJZQFW (ORCPT ); Wed, 26 Oct 2022 12:05:22 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC7604360D for ; Wed, 26 Oct 2022 09:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666800320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2ztBP1qMYf+hyScyFNcfBG006wJpY+Pb7WIehybbH0k=; b=PrAaoE8okQb7FGQw5xA8Ka8DHqWTOZd3C1SiWlR+ixwSUnewDoihoWt6SMu0/gtq/EkPn3 XMSv4Z3aXGBtfG7JECp7TloCReYw3ebCNiixXy+F/7CHWBs+5RM9pfWIh/CPf2ckPK2NSQ tePlgGwkjcwUvcqpqk49abT8bwQAf4c= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-531-wWIqcFAwMfC_Tl7LnY9hrg-1; Wed, 26 Oct 2022 12:05:17 -0400 X-MC-Unique: wWIqcFAwMfC_Tl7LnY9hrg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BB2CC87B2A5; Wed, 26 Oct 2022 16:05:16 +0000 (UTC) Received: from gondolin.redhat.com (unknown [10.39.193.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2FDC1C15BAB; Wed, 26 Oct 2022 16:05:14 +0000 (UTC) From: Cornelia Huck To: Peter Maydell , Thomas Huth , Laurent Vivier Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, kvm@vger.kernel.org, Eric Auger , "Dr. David Alan Gilbert" , Juan Quintela , Gavin Shan , Cornelia Huck Subject: [PATCH v3 0/2] arm: enable MTE for QEMU + kvm Date: Wed, 26 Oct 2022 18:05:09 +0200 Message-Id: <20221026160511.37162-1-cohuck@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org After wayyy too long (last version was sent in *July*), a respin of my kvm/mte series. Still no migration support. I've been hacking around on a device for transferring tags while stopped, but don't really have anything to show, probably because I get distra- ...I guess you get the point :( Anyway, I wanted to post this as non-RFC; likely too late for 7.2, but maybe for 8.0 (and I'd get a chance to make at least pre-copy migration work; I'm open to suggestions for that. Support for post-copy needs kernel-side changes.) Tested on the FVP models; qtests only on a non-MTE KVM host. Changes v2->v3: - rebase to current master - drop some parts of the qtests that didn't actually work - really minor stuff - drop RFC Cornelia Huck (2): arm/kvm: add support for MTE qtests/arm: add some mte tests docs/system/arm/cpu-features.rst | 21 +++++ target/arm/cpu.c | 18 ++--- target/arm/cpu.h | 1 + target/arm/cpu64.c | 133 +++++++++++++++++++++++++++++++ target/arm/internals.h | 1 + target/arm/kvm64.c | 5 ++ target/arm/kvm_arm.h | 12 +++ target/arm/monitor.c | 1 + tests/qtest/arm-cpu-features.c | 76 ++++++++++++++++++ 9 files changed, 256 insertions(+), 12 deletions(-)