Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp127965rbe; Wed, 28 Feb 2024 14:40:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhIAI7smXvAkJP3vMorEhN28JmFdgPyZOY6kKUWet0bSV78pYd9WBEtVJeJ1Jv0wqrGrg4fJFd2fK16i0aB8HHUg2f2mrulLqFqUDZaQ== X-Google-Smtp-Source: AGHT+IFFvFwSc+gK8DH9YcSt2yLuVxA6RP1q8fw2H0Ric2wpIgx49jokM7NQQD+f5aoXcAJDz0hy X-Received: by 2002:a17:906:3e08:b0:a3e:53d9:c7d5 with SMTP id k8-20020a1709063e0800b00a3e53d9c7d5mr58718eji.36.1709160042152; Wed, 28 Feb 2024 14:40:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709160042; cv=pass; d=google.com; s=arc-20160816; b=YGMvDSFSxgiITEFRV+oRyPxZiJdrEzMIhEu5XU17qwx/j5O+J0Qfk9do354JmLQ+YM 72ikXjJ9eS6G57SI7A7sOP/PMa86+lIokCEWnc4tx+fwTTa/c06WlUDWHBuLSV6fXVq7 ApFbiZn8S2kXggNwgfiThkZyZwcP6TFdExDnqiZWiod76WOessKjFSzlP3MjI8Ohf4Mp 0/EfuDTjgMfiw73YYS1kmMreoAfoI3a4Ivw2f4cbNHUVzz8RQ0qZ3OJKAUS4yvZbnUME ksNA6gUkde5Z0NYM/B6K2kMosUjM8baVFJ7pL+XXAXxqgqufOfEixdPV6N6I5iFgBGDu /EXw== 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=l+UTQgqjeTeuB4joWxs/sUGJ8L/gPUO2H1zeCMeGlUc=; fh=XIagcPM5NH7CllwlSJqIkVVpNwewhMz+JOcN9XuxJZA=; b=DTzwL0/M/1gmCmY+uOlIIC9QOgWZPqgQ7AGVxu1mXBkdVnSfJQBizfnCtyO/o1r5Xd 7RCaziJ+RVaUayhnrddrj+pEAtOF1BsHpFrjNnsbXeKcjVkfqU1PHrIVwZvsoqoPCPuI fk4ubaf0TJrYc9P2q5+s1zRrq1rQyuAOXCLw3Hm3YPF/UlWL1RhUVo9RZoYvDGY/0+uD 3nIGZl8m8bvBH4wSQWkBMAR71wtvGYX8MlPjnbKL9BB1+dZEo5Uie8M7+Ft+uQ9+GXH4 VPfhg7JByaCWHzx+T4KVNmYp4zkvkG6ok5QWNWgiRpH7EZv9UAPGwapClBshoNHDejxN XthQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=VRSMvcUR; 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-85791-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f10-20020a1709067f8a00b00a3f0aeee16asi2060079ejr.360.2024.02.28.14.40.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 14:40:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85791-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=VRSMvcUR; 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-85791-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85791-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B997C1F2829E for ; Wed, 28 Feb 2024 22:40:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C18B971ECE; Wed, 28 Feb 2024 22:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="VRSMvcUR" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (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 4F745433A7 for ; Wed, 28 Feb 2024 22:40:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709160029; cv=none; b=cf8q+m2pTFzHN7UIhwOu+HyeiksR+v9vEzYhu44caGyC5Ix2ufaclD974QgiN7dSO/f0xuFuvs+EqZL4G9lH+aK9YNafaiLrJsfXDXwTpef2eHYiKF4V6W8Vzf5G23pTqsaH3GwkgwD4A7s7n27FLrTOs9nbRJOZwz4io+asE+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709160029; c=relaxed/simple; bh=UI4N3O0p1OPV51s6ww8VE+iOxUsmCX0+oAuufGaCP2g=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=PmC4Fr8yTQ1A5gZ/RQ462Dp6j0ewALq+5lCGAMq1P2GCcjiCQoBsRe5VQWY/dFY5xJ4KFRKSO/f42IyDkMNDh9O4pL/szQSGjKhjpqMJIVyuMDPkrQEcy2UcgPA0ruaOpafZRFrwh6i0Rx4K9dHYa1eOBD36cIjufzMADYkQQ18= 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=VRSMvcUR; arc=none smtp.client-ip=209.85.219.201 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-yb1-f201.google.com with SMTP id 3f1490d57ef6-dc647f65573so530598276.2 for ; Wed, 28 Feb 2024 14:40:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709160027; x=1709764827; 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=l+UTQgqjeTeuB4joWxs/sUGJ8L/gPUO2H1zeCMeGlUc=; b=VRSMvcUR1Z0nR83k7kzHQOcmnt39dGdDGXjA13POB7UJv2hWZ0yA/arivRbHMA9P6z KoyAjPSxTiL6qG4WHjqff/8lF1QnnBOGg75yYA8g16fpAW55Z5SRr6nKhV9fLVRftcvM OctCfnY2e94ZDFNg4tKOvyV1BGy/mgnD9oydYGiESvjNpj/1Qm41qqylFSIiCfB+qlSU EjVuWlQmbAaq0ZCsl77+efIaBzkkoK5ZX1JDxOQxZQ/JSrh9Z3Don3zIgHBjhlfln6ZH mmJb3n/Sx/LYAiWqzmaxL4uz+uZlFVpXYS/sTe0SVMx2unLTd9pa9ChMBLdXw3MBKbSt Obdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709160027; x=1709764827; 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=l+UTQgqjeTeuB4joWxs/sUGJ8L/gPUO2H1zeCMeGlUc=; b=GLsmmNnbGEHVXMhsr4Z4IW8eTnQJhIysyiM5YYnOifditDYnJfnGOFZ1/A1uJHsG47 o1AcMrkHAdS9mKiSJGSsEF4A42RNXTsjJDlUBhwOc0KcFtph37ziHoaad1g7jydGtEU8 08tm8PhcwOokJuVspwRjpmF1HJ6v9psk6DmgIty8f6MDGHahTmpA+4GES0ulnnxvtn5W PWQfWF1ayFYPd5jxjBs0UxUFByVYd+r8N0SV/6Ydp7SB93VSnvH3e6gOtjh86NxuqNXg 04r7SjLt3g4m+YnOzcL8Yy7QE7GFYKeSKAi/yurjfq6i2ph+JYIpET55fG4AJbMZZwGz hutw== X-Forwarded-Encrypted: i=1; AJvYcCWG3jVlh2+GuazYyo2qCfkt6OhAj4nt64Hu9G5EeLSJ1vFCGJ3Tk3hnmSJvz0j4FFLMmtHKLhb5R4pEWt47j/B327MTWAXLoB5RJ4y0 X-Gm-Message-State: AOJu0YzUAoTbtLrHdpJyJpvURX3of8ZaIsHtQMe87cFRUsOGQxkCVEtK IK1RoBCpZ06jOkL/y9CRaGVUM2j2Zh2i6A7sdSb2FmmqZW1ThBJSUql7iDk6FcN6Lgii6K5iFZe 1Ng== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:abc2:0:b0:dc7:48ce:d17f with SMTP id v60-20020a25abc2000000b00dc748ced17fmr140494ybi.10.1709160027352; Wed, 28 Feb 2024 14:40:27 -0800 (PST) Date: Wed, 28 Feb 2024 14:40:20 -0800 In-Reply-To: <170900037528.3692126.18029642068469384283.b4-ty@google.com> 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> <170900037528.3692126.18029642068469384283.b4-ty@google.com> Message-ID: Subject: Re: [PATCH v9 00/11] KVM: selftests: Add SEV and SEV-ES smoke tests From: Sean Christopherson To: Paolo Bonzini , Marc Zyngier , Oliver Upton , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda Cc: 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 Mon, Feb 26, 2024, Sean Christopherson wrote: > On Thu, 22 Feb 2024 16:42:47 -0800, Sean Christopherson wrote: > > Add basic SEV and SEV-ES smoke tests. Unlike the intra-host migration tests, > > this one actually runs a small chunk of code in the guest. > > > > Unless anyone strongly objects to the quick and dirty approach I've taken for > > SEV-ES, I'll get all of this queued for 6.9 soon-ish. > > > > As for _why_ I added the quick-and-dirty SEV-ES testcase, I have a series to > > cleanup __svm_sev_es_vcpu_run(), and found out that apparently I have a version > > of OVMF that doesn't quite have to the right for SEV-ES, and so I > > could even get a "real" VM to reach KVM_RUN. I assumed (correctly, yay!) that > > hacking together a selftest would be faster than figuring out what firmware > > magic I am missing. > > > > [...] > > Applied to kvm-x86 selftests, thanks! > > [01/11] KVM: selftests: Extend VM creation's @shape to allow control of VM subtype > https://github.com/kvm-x86/linux/commit/309d1ad7b6ff > [02/11] KVM: selftests: Make sparsebit structs const where appropriate > https://github.com/kvm-x86/linux/commit/6077c3ce4021 > [03/11] KVM: selftests: Add a macro to iterate over a sparsebit range > https://github.com/kvm-x86/linux/commit/8811565ff68e > [04/11] KVM: selftests: Add support for allocating/managing protected guest memory > https://github.com/kvm-x86/linux/commit/29e749e8faff > [05/11] KVM: selftests: Add support for protected vm_vaddr_* allocations > https://github.com/kvm-x86/linux/commit/1e3af7cf984a > [06/11] KVM: selftests: Explicitly ucall pool from shared memory > https://github.com/kvm-x86/linux/commit/5ef7196273b6 > [07/11] KVM: selftests: Allow tagging protected memory in guest page tables > https://github.com/kvm-x86/linux/commit/a8446cd81de8 > [08/11] KVM: selftests: Add library for creating and interacting with SEV guests > https://github.com/kvm-x86/linux/commit/f3ff1e9b2f9c > [09/11] KVM: selftests: Use the SEV library APIs in the intra-host migration test > https://github.com/kvm-x86/linux/commit/0837ddb51f9b > [10/11] KVM: selftests: Add a basic SEV smoke test > https://github.com/kvm-x86/linux/commit/5101f1e27683 > [11/11] KVM: selftests: Add a basic SEV-ES smoke test > https://github.com/kvm-x86/linux/commit/f3750b0c7f6e FYI, the hashes changed due to a force push to squash a bug in a different series. [1/11] KVM: selftests: Extend VM creation's @shape to allow control of VM subtype https://github.com/kvm-x86/linux/commit/126190379c57 [2/11] KVM: selftests: Make sparsebit structs const where appropriate https://github.com/kvm-x86/linux/commit/35f50c91c43e [3/11] KVM: selftests: Add a macro to iterate over a sparsebit range https://github.com/kvm-x86/linux/commit/57e19f057758 [4/11] KVM: selftests: Add support for allocating/managing protected guest memory https://github.com/kvm-x86/linux/commit/cd8eb2913205 [5/11] KVM: selftests: Add support for protected vm_vaddr_* allocations https://github.com/kvm-x86/linux/commit/d210eebb51a2 [6/11] KVM: selftests: Explicitly ucall pool from shared memory https://github.com/kvm-x86/linux/commit/31e00dae72fd [7/11] KVM: selftests: Allow tagging protected memory in guest page tables https://github.com/kvm-x86/linux/commit/bf47e87c65be [8/11] KVM: selftests: Add library for creating and interacting with SEV guests https://github.com/kvm-x86/linux/commit/bdceeebcddb8 [9/11] KVM: selftests: Use the SEV library APIs in the intra-host migration test https://github.com/kvm-x86/linux/commit/8b174eb9d289 [10/11] KVM: selftests: Add a basic SEV smoke test https://github.com/kvm-x86/linux/commit/faa0d7027de3 [11/11] KVM: selftests: Add a basic SEV-ES smoke test https://github.com/kvm-x86/linux/commit/974ba6f0e595