From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 9D7B215687C for ; Mon, 14 Oct 2024 22:23:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728944609; cv=none; b=Vw0IH05f+GndVj4/xHd4OlEUp2VhFsR64aoy02r9anZmjyGmdXrz+IFUneWNgyBAssDtHpNMESK4mxnUJeM8zKObE6EDtTKvrnef4D+WHVUUehiswQdbhxFRx3itvD2LOX+qcDThfzmlVXHZ0+baaQt4KuzTV25wGXQq6Eot0g8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728944609; c=relaxed/simple; bh=gv0x2b2PoNf+TkwQtGQA+hFg+JPenw8viKr0DO6+Lrw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=KUPyO/7Zxx/tkubSskmnvOdGj22Do8O8uyDKMp/aDK1EXkQhKPHPTnsGb32Jk68ycBfOd6r7Cwcb9IEdXXceB9d76nXELd9CACCHAhZDiXBD19GDAh9zdSNotWw6brDmtFsUAXXTOp0qUHJ8a075LaG2RKAmxkx2r/GAtr+kirw= 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=dmscKdKd; arc=none smtp.client-ip=209.85.128.202 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="dmscKdKd" Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-6e35a643200so50307687b3.0 for ; Mon, 14 Oct 2024 15:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1728944607; x=1729549407; 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=04cHKHgrL7/J8cmYsPL4VJWOHoKjBPFN4M3VyEvV5R0=; b=dmscKdKdFgr4vIWTzKuUpRr/TiJcXCjGaqTjdrm+niwpeDtiHbW65afu3m4uRbhg/+ 9+WXKrWeOhLddjGcxl/44D9ppNphOQyYtnzy6iaDdK3RYkLriVacumNslrqHrFsHnXNt ERPPhN5kytTwA3Zv39PDA4Fg34QARkOBTWwSWAqZudZsLrGM6/082rCpkG/ziXyopRo6 aa7vkHcF57N50vNqpR7iMJ52FJNXrDcnt78d3FE8XOdOxitnQEgAu65dnRzaOnO4kJ9Q OOZdHqIWrGZwUFcbNJchK2coSwXMT6j3PUmTpW4KXueET75JJbkUJq/XmtTocxAE+MSA W0QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728944607; x=1729549407; 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=04cHKHgrL7/J8cmYsPL4VJWOHoKjBPFN4M3VyEvV5R0=; b=peLpkApGROrvqrQT4HrX0Xttxyrg6HZ1NQ+J1NRyZvfeMg5iFXKEc+IlCM7LuIhwn/ gyKFSxHabbtryi4C6io9JRiygMa+LlQG+fftm/YSt+vABlT61mu60FMGbLM5tgr4Wv+m qsYb01W7qWzoLHKnc5HEQGDWUls7l9Op0D8ISQWDQKdWXz64uEr0T4L4A3Pmag0u4djQ SqEYdNyLz3YjRGSwh/7IvvGS9dSF93W8qoSPg/nIMltPrIfqAWhVua/TUI+iHFR0VxEA NAYj6gUzJRG8tg79xtK0DwiRWy+SpMUHuAyZRmt1ZbD8VeM/Kwho7Wd9g5IvxGl5T2ao R/Tg== X-Forwarded-Encrypted: i=1; AJvYcCWv/177nO3msTdkwqEzh06aktPHK7dFjqCnwlSovyqu2PoOwMfHBW1u4dqRFiZqfyxCvVDkF9yyvhZLlZk=@vger.kernel.org X-Gm-Message-State: AOJu0Yy3MU3c3w5RD9+OSE3bazQ/9eOmesAbSKmlFHwbV+KAY+0oFdbs D1c8gUxFp/64m5Y2ou8Y4ZqNkiBslqCBth3EfcQUrQwc3fpgWv5TrCoDl2X7Xqmt/RwrW5rOVLv cnQ== X-Google-Smtp-Source: AGHT+IG1Ae3jO/kXIxxJfLv3WIvlsTh01ooR6ufsPDh2fil0948QVn7sffNeuOmPj+rxynNQ01OzSz8yDL0= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:9d:3983:ac13:c240]) (user=seanjc job=sendgmr) by 2002:a05:690c:d8c:b0:6e2:a129:1620 with SMTP id 00721157ae682-6e347b2d7d9mr281187b3.3.1728944606659; Mon, 14 Oct 2024 15:23:26 -0700 (PDT) Date: Mon, 14 Oct 2024 15:23:25 -0700 In-Reply-To: <20240905124107.6954-1-pratikrajesh.sampat@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240905124107.6954-1-pratikrajesh.sampat@amd.com> Message-ID: Subject: Re: [PATCH v3 0/9] SEV Kernel Selftests From: Sean Christopherson To: "Pratik R. Sampat" Cc: kvm@vger.kernel.org, pbonzini@redhat.com, pgonda@google.com, thomas.lendacky@amd.com, michael.roth@amd.com, shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" On Thu, Sep 05, 2024, Pratik R. Sampat wrote: > This series primarily introduces SEV-SNP test for the kernel selftest > framework. It tests boot, ioctl, pre fault, and fallocate in various > combinations to exercise both positive and negative launch flow paths. > > Patch 1 - Adds a wrapper for the ioctl calls that decouple ioctl and > asserts, which enables the use of negative test cases. No functional > change intended. > Patch 2 - Extend the sev smoke tests to use the SNP specific ioctl > calls and sets up memory to boot a SNP guest VM > Patch 3 - Adds SNP to shutdown testing > Patch 4, 5 - Tests the ioctl path for SEV, SEV-ES and SNP > Patch 6 - Adds support for SNP in KVM_SEV_INIT2 tests > Patch 7,8,9 - Enable Prefault tests for SEV, SEV-ES and SNP There are three separate series here: 1. Smoke test support for SNP 2. Negative tests for SEV+ 3. Prefault tests for SEV+ #3 likely has a dependency on #1, and probably on #2 as well (for style if nothing else). But that's really just an argument for focuing on #1 first, and the moving onto the others once that's ready to go.