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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2866C04FF6 for ; Tue, 16 Apr 2024 14:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=foRJxT73lcuFYtBxOK9puFCVs93WDnbmwxCHvJrblnk=; b=Mjz1gieOuFubDT npTs8djoka9yL2PZMnJxiX/aEgQ6FdgDVJadhgdjv+Ov0y9rw2MoASmkdkWcL+qC/h95m2y7M20P/ JKYEz/BM0BK42D5KKgCp2tgAeONBKZya2eb605rXoEg8ZDllC0R14LGkizSVS39qcXGRqIup6i6uj +oiQ+D2Vrz+kIXR4twmVOU27a9xFEgLJLhYt8CN6ImxMHNvdRTf5hRfUXFADM966VrrVz6gSamVID x633P7jFgYBNN0KzmNq8SmPlQ+EAjliIKlJEqdKMsZoM6Kcn0uaqxYUef82yZlyQuUgagUIarVGwg ckh8CB1rNpsxv5K5an3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwjnm-0000000CXml-3jJ2; Tue, 16 Apr 2024 14:28:50 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwjnj-0000000CXkz-4C1e for linux-arm-kernel@lists.infradead.org; Tue, 16 Apr 2024 14:28:49 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3497fcc40f9so469594f8f.2 for ; Tue, 16 Apr 2024 07:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713277725; x=1713882525; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ODh/R4bfK57i1Jc+tcGcRXOngX+xxVgLxwYp8nV0YkU=; b=pEFoK6vFpWAr8XOIGL93CLteHThmtbeqFKAfDY7YdIEzbNmcBEmn7uZXwI1h2y67Zd nQ2KqVGoTzpNCywecmdywAQYYtch4cdpMc3XGe7fLFC0p/UdU3f8azKi+DP/UgsxUcp8 88LRz+KUlBKop7P/JKfviAL60juq5oaB22z3QTryCw6ch17VHstmz89pt1letMzHckqI cKfSO+D4jZ7K1JYSF9ZM0SSGVtpiWSTppQPAuEyz8EBu7hUesMOTy54j+zyIMHqAh0xt C7EI6Stxv4DHHK4glCYXZrPwSFkM8g5IOaaf3KYFSHk9kQQ5UD31r203eJlzd9aD/msX EVaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713277725; x=1713882525; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ODh/R4bfK57i1Jc+tcGcRXOngX+xxVgLxwYp8nV0YkU=; b=MUU4usKGw16xtc2K83nRuXIeumxGS6aXgB0kk1rKvnxyYNcgWUe4JdTiIAd7pxNCIT uLmh+2oQeN2CK1uWekgT+iyRV/mG6iIYnfveer2zSpH8sTyGxbTy69mvkzx1scDGOnYY zZgGrTZRc0/Wvpg0o2aN3awYmPSz9sF4KL+eI70Avd23thWhhgK5OlUk4/YiyLoShXCo PSsXb0AUWaNLaKpHhebx3QYTFqTfotzTpTksXgqY6GlU916MSIqm2Jz+uEScmLoyrbei VSdsbzsl2iy3iwThY25MQUTJCQz0Q7teCy6yBG732UqOhSYFA5IzGtc30moV9XlMeLxQ ZzBQ== X-Forwarded-Encrypted: i=1; AJvYcCVIQms+3oeFDITPMm1rx4UK0mpi9iU8XpSOu25+oh715lu7KFO25DnHQESKdSJ28NlQ4Z/Iu1VxVPBb7w87y1v/uo7QfjZlHdtALJuVSWyrI2AZNmw= X-Gm-Message-State: AOJu0Yytn42Zxyt6MTF682aB0ziP9sZPmybQH5kGHefgphlPyqGUwlp2 +x2+tLu4NbZ5905nRrbS7VCuymXc6vJ90+lKRvV37W9jhrYu0UCw1VFm8wFa5kM= X-Google-Smtp-Source: AGHT+IGBEcpM41oq6+uqCwJlNZfyCfSFjAcPSTPtMeeIgJSTr98uSVszWwBj9GJB4rj5Lkx3xI6IhQ== X-Received: by 2002:adf:f4d0:0:b0:343:7cdc:458b with SMTP id h16-20020adff4d0000000b003437cdc458bmr9656332wrp.7.1713277724914; Tue, 16 Apr 2024 07:28:44 -0700 (PDT) Received: from myrica ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id v17-20020a5d43d1000000b00347cf86dee6sm5769662wrr.71.2024.04.16.07.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 07:28:44 -0700 (PDT) Date: Tue, 16 Apr 2024 15:28:57 +0100 From: Jean-Philippe Brucker To: Suzuki K Poulose Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-arm-kernel@lists.infradead.org, maz@kernel.org, alexandru.elisei@arm.com, joey.gouly@arm.com, steven.price@arm.com, james.morse@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, andrew.jones@linux.dev, eric.auger@redhat.com Subject: Re: [kvm-unit-tests PATCH 00/33] Support for Arm Confidential Compute Architecture Message-ID: <20240416142857.GA963176@myrica> References: <20240412103408.2706058-1-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240412103408.2706058-1-suzuki.poulose@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240416_072848_163199_F6939830 X-CRM114-Status: GOOD ( 17.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, On Fri, Apr 12, 2024 at 11:33:35AM +0100, Suzuki K Poulose wrote: > This series adds support for running the kvm-unit-tests in the Arm CCA reference > software architecture. > > > The changes involve enlightening the boot/setup code with the Realm Service Interface > (RSI). The series also includes new test cases that exercise the RSI calls. > > Currently we only support "kvmtool" as the VMM for running Realms. There was > an attempt to add support for running the test scripts using with kvmtool here [1], > which hasn't progressed. It would be good to have that resolved, so that we can > run all the tests without manually specifying the commandlines for each run. > > For the purposes of running the Realm specific tests, we have added a "temporary" > script "run-realm-tests" until the kvmtool support is added. We do not expect > this to be merged. The tests can also be run with QEMU, which requires one more patch to share the chr-testdev DMA memory with the host. I pushed this and additional tests here: https://git.codelinaro.org/linaro/dcap/kvm-unit-tests Follow the build instructions for QEMU: https://linaro.atlassian.net/wiki/spaces/QEMU/pages/29051027459/Building+an+RME+stack+for+QEMU Buildroot supports kvm-unit-tests but as standalone scripts. I prefer the run_tests.sh script, which also enables comparing Realm measurements between runs: ./configure --arch=arm64 --cross-prefix=path/to/buildroot/host/bin/aarch64-buildroot-linux-gnu- make -j # copy everything to the shared directory, then modify config.mak sed -i -e "/PRETTY_PRINT_STACKS/s/yes/no/" \ -e "/ERRATATXT/s/=.*/=errata.txt/" \ -e "/HOST/s/=.*/=aarch64/" \ -e "/ARCH/s/=.*/=arm64/" \ config.mak # Run all realm tests ACCEL=kvm MAX_SMP=8 ./run_tests.sh -v -g realms Thanks, Jean _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel