Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp181360rbe; Wed, 28 Feb 2024 16:54:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVLwssBQvpQ+jKAEWUHTd4ilbJhMFxgH7BMgdidnBD40PPFTu92Fig59SYnDFAA1AThi3W5tmWF//uIvG/kAXLf/PfgzLdJr4U1pKli8A== X-Google-Smtp-Source: AGHT+IGKwRrIkD3CFC14/O+eA3eP9+lLNF1UWvnULPp0B5GIiVc2+AgX8WT3eSzoI15HAePiiOQ1 X-Received: by 2002:a05:6358:7307:b0:17b:b573:a437 with SMTP id d7-20020a056358730700b0017bb573a437mr1232252rwg.8.1709168044540; Wed, 28 Feb 2024 16:54:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709168044; cv=pass; d=google.com; s=arc-20160816; b=ChYsR5zThfgQIpGNuKq/d4ZuhOYy8jx7ke/zc3X8rHFsF4W3QWSAcsSNBQv+/YY75Y H/eqlzuxNKNnASEKo5utGn12jKA882y2qxH+sjCvr7/dWlzRsZb0z4pzR17ajf8te9Xx WMezDrU29y9UDHSJpeh+rfXAJMPM8hybRxESkrNO+c/go9SF5ElJCB8Nxy4hO1vZ1oyg hLrAN1iPDzXoxG6f7b7xfzO3sr5qO66dIcSX1A9xMFdy0JqAdHu1unzfHHPHle/kPjZH CDkIbvftylJqPpbpu5SaLHAI33+ByhOvPF/wOw0ZHsVDRnFENhbxw/U6dOVz2fOYtB4i vKPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=Q1fAxVxcSGJDtvwC4OA6vg9SQpipa+6cd4wlsruGTgI=; fh=I/fzBrcZCwknL7R3khbdGsbbQ647WscsN2F0AuqK9S0=; b=ghLlhMIhzz6hbyuMIS+YNyhL2A0cUTZ/8pJQw9N21xdiVyvWN2ksq/P1lmIrYUQ8W5 q1ftnhx3PMRXjELsWBOhGgKLeFOu1zEXoT2MwWLA/yLhRCRD+9q1g6hVWJ7tEjlUoI8D sE/CtBaimiikmq3Ypp6teB3SZpFqR5hPU9hSOWzZwr5zj0oDjIYWxnGijzM/0Yn/aMTf C+HUpZ9EN82IWniikQiFzG5BZh4QPRpy12m9ZfJo2+u3VEd3LNGvdupr4oWVBVJEOzeG 58tSQJrs1jGyeD8RsQSCWmzrC+dUKAgIXVlsC0eIR2SpqXTS1UFaGVg1XnTsOcAvAi1w coEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OPMzu0ZA; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y8-20020a63e248000000b005cf647f85c9si224971pgj.752.2024.02.28.16.54.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 16:54:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OPMzu0ZA; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id ACFF8B211E1 for ; Thu, 29 Feb 2024 00:53:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5324B22F13; Thu, 29 Feb 2024 00:53:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="OPMzu0ZA" Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D86F21CD23 for ; Thu, 29 Feb 2024 00:53:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709168023; cv=none; b=nBsHHRDn6gt3um+Opi23UH3b+9U8eiz7b6b/6iQ/zsRjx8vabR5VrrClnoIIBmHYG72O43/zNMps9mARFrO+eyFlmbp1QlSqzhN9ZURbqcl23eEusi+lsJhgeZLHRR7YS6ArHb6ZJkPvZLfAihcSjuLILE1uuDjAhHlwJ0vulz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709168023; c=relaxed/simple; bh=ixPn/WA/IkkMHbVj9xbnA+a/EFMiv0ErX3XQ1lo3UFc=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=YnIvk+csto2bYJJkknNusTSee66KBkjz3ORTy/WzjXnE8n24t5uXo0HARkvDIAvQ4mGulWfUhy/Hg8G02mkV6OriJOdLn5EWpJwCHQoiDEPP9E7teiKX1XKVweS4CdLb3W7bFq2jAJ7G+yyGviTHBRzNFaa04Ib0e7Ht5NwMIFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=OPMzu0ZA; arc=none smtp.client-ip=209.85.216.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-29b0ac33382so104057a91.3 for ; Wed, 28 Feb 2024 16:53:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709168021; x=1709772821; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Q1fAxVxcSGJDtvwC4OA6vg9SQpipa+6cd4wlsruGTgI=; b=OPMzu0ZAHxAiycSPECv0MUQt7f0j6ydg0SWk0sEWy/eTAluC396YCKvQ93hX08OHlG aSWScuyyd3y2QyMIjRIPRU33yjMnjm+LBIM0+tiyJSiieYtKXhB9KfgMposHmfybmCis 6QssU/odGd6wEA2nbMgIs/wNN+cHmevK+KS966B3uuIITEng4/TTEyVQRgTD+tVz0W9o tQ+hzvCFH8Iiim3oZK4A9v/qle9/mMUKC//21cJZ8DH2UnLljCMBW009Ki85JYrRm+qe FGzOpBjhk1U7wRiFL+cEV6mZmtg8K6YBkc2lQ3ut7F+FtbnJ210STWpsxAiVh0ntSVBi Nblw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709168021; x=1709772821; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Q1fAxVxcSGJDtvwC4OA6vg9SQpipa+6cd4wlsruGTgI=; b=krbX732+J5B1i3LrzjZxNG68FD5z7xM3O0Ac5s1v6g4sNQSJkE0mwCWbNqgFyDVnob a0fgsnHkTKrlC+kQa/Hp+/OUYlr9cO+R7vVkJ1GOzwp6noY/TJFqMUcHfSn8Gty+EDoE NYZ4Ksp1CzwOVTrYEJ1Uojyw5ZltaoatP6Smsy1kyV0v0vnfugroRLin0jFhry+E/ceG 9gQ9HRlIXmIOB8V207W5Mg62J9qgyFMnk4NZh0G1ARKzlybq2TSyxlH5k5YF99k4A8gS xJrMT1l2ASGMu5lJ6i4hi+hnJRv7m2HfnrOVpuaICSIOmEKD7krht0OIPwXFexH6NtRo VQAQ== X-Forwarded-Encrypted: i=1; AJvYcCVY1kHsAR2Fs5I90eaW7Zn5isOEDuMteL1ihvn1/CLHYLdjqM5XDAtcRFXGS+qGPZZKHIbyJY2PFAFYFJ87K0m03dtbSy7ZhFVA2h+j X-Gm-Message-State: AOJu0Yxbhxpd+0+WGz8xsv5CPuV5MhPytuXmXnBN2eZrO3lSDvzWneAT uHbjWKuLdbuUXxYkz7flYYTkCAwecNTRe4kp32C1yKpzr/nB+pwpFfJClAp5Wf9hxuVWp8DjiRw m3A== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90b:4f44:b0:29a:c5e6:c5f1 with SMTP id pj4-20020a17090b4f4400b0029ac5e6c5f1mr15628pjb.6.1709168021232; Wed, 28 Feb 2024 16:53:41 -0800 (PST) Date: Wed, 28 Feb 2024 16:53:39 -0800 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240223004258.3104051-1-seanjc@google.com> <20240223004258.3104051-8-seanjc@google.com> <75d37243-e2a3-421a-b74f-ccbe307fef96@intel.com> Message-ID: Subject: Re: [PATCH v9 07/11] KVM: selftests: Allow tagging protected memory in guest page tables From: Sean Christopherson To: Xiaoyao Li Cc: Paolo Bonzini , Marc Zyngier , Oliver Upton , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Vishal Annapurve , Ackerley Tng , Andrew Jones , Tom Lendacky , Michael Roth , Carlos Bilbao , Peter Gonda , Itaru Kitayama Content-Type: text/plain; charset="us-ascii" On Tue, Feb 27, 2024, Sean Christopherson wrote: > On Wed, Feb 28, 2024, Xiaoyao Li wrote: > > On 2/23/2024 8:42 AM, Sean Christopherson wrote: > > ... > > > diff --git a/tools/testing/selftests/kvm/include/aarch64/kvm_util_arch.h b/tools/testing/selftests/kvm/include/aarch64/kvm_util_arch.h > > > new file mode 100644 > > > index 000000000000..218f5cdf0d86 > > > --- /dev/null > > > +++ b/tools/testing/selftests/kvm/include/aarch64/kvm_util_arch.h > > > @@ -0,0 +1,7 @@ > > > +/* SPDX-License-Identifier: GPL-2.0-only */ > > > +#ifndef _TOOLS_LINUX_ASM_ARM64_KVM_HOST_H > > > +#define _TOOLS_LINUX_ASM_ARM64_KVM_HOST_H > > > > Since the file name is changed from kvm_host.h (in v7) to kvm_util_arch.h, > > we need to update it as well. > > > > Ditto for other archs > > Ugh, nice catch. I'll fixup and force push (likely tomorrow). Here's the diff of my fixup: diff --git a/tools/testing/selftests/kvm/include/aarch64/kvm_util_arch.h b/tools/testing/selftests/kvm/include/aarch64/kvm_util_arch.h index 218f5cdf0d86..e43a57d99b56 100644 --- a/tools/testing/selftests/kvm/include/aarch64/kvm_util_arch.h +++ b/tools/testing/selftests/kvm/include/aarch64/kvm_util_arch.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef _TOOLS_LINUX_ASM_ARM64_KVM_HOST_H -#define _TOOLS_LINUX_ASM_ARM64_KVM_HOST_H +#ifndef SELFTEST_KVM_UTIL_ARCH_H +#define SELFTEST_KVM_UTIL_ARCH_H struct kvm_vm_arch {}; -#endif // _TOOLS_LINUX_ASM_ARM64_KVM_HOST_H +#endif // SELFTEST_KVM_UTIL_ARCH_H diff --git a/tools/testing/selftests/kvm/include/riscv/kvm_util_arch.h b/tools/testing/selftests/kvm/include/riscv/kvm_util_arch.h index c8280d5659ce..e43a57d99b56 100644 --- a/tools/testing/selftests/kvm/include/riscv/kvm_util_arch.h +++ b/tools/testing/selftests/kvm/include/riscv/kvm_util_arch.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef _TOOLS_LINUX_ASM_RISCV_KVM_HOST_H -#define _TOOLS_LINUX_ASM_RISCV_KVM_HOST_H +#ifndef SELFTEST_KVM_UTIL_ARCH_H +#define SELFTEST_KVM_UTIL_ARCH_H struct kvm_vm_arch {}; -#endif // _TOOLS_LINUX_ASM_RISCV_KVM_HOST_H +#endif // SELFTEST_KVM_UTIL_ARCH_H diff --git a/tools/testing/selftests/kvm/include/s390x/kvm_util_arch.h b/tools/testing/selftests/kvm/include/s390x/kvm_util_arch.h index 4c4c1c1e4bf8..e43a57d99b56 100644 --- a/tools/testing/selftests/kvm/include/s390x/kvm_util_arch.h +++ b/tools/testing/selftests/kvm/include/s390x/kvm_util_arch.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef _TOOLS_LINUX_ASM_S390_KVM_HOST_H -#define _TOOLS_LINUX_ASM_S390_KVM_HOST_H +#ifndef SELFTEST_KVM_UTIL_ARCH_H +#define SELFTEST_KVM_UTIL_ARCH_H struct kvm_vm_arch {}; -#endif // _TOOLS_LINUX_ASM_S390_KVM_HOST_H +#endif // SELFTEST_KVM_UTIL_ARCH_H diff --git a/tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h b/tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h index 205ed788aeb8..9f1725192aa2 100644 --- a/tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h +++ b/tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef _TOOLS_LINUX_ASM_X86_KVM_HOST_H -#define _TOOLS_LINUX_ASM_X86_KVM_HOST_H +#ifndef SELFTEST_KVM_UTIL_ARCH_H +#define SELFTEST_KVM_UTIL_ARCH_H #include #include @@ -20,4 +20,4 @@ static inline bool __vm_arch_has_protected_memory(struct kvm_vm_arch *arch) #define vm_arch_has_protected_memory(vm) \ __vm_arch_has_protected_memory(&(vm)->arch) -#endif // _TOOLS_LINUX_ASM_X86_KVM_HOST_H +#endif // SELFTEST_KVM_UTIL_ARCH_H