From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.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 1936A2D641A for ; Wed, 10 Sep 2025 19:23:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757532240; cv=none; b=RcEZatfgcI2BL0SJolaTUJQRLRlpw19MxWxhZqLASP+BaJJCAObwnZRb6Z1PuhITisztXQHSbM8uhz6djPQq+Mi4zJaEqlKvJ4MQgRuHA+oQ1tYuccgrnmH/7+sUKZFISnDBj75eGlWjN7SQCd/6NbZHHzPXXhSYbuv8g0H5HPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757532240; c=relaxed/simple; bh=V8Lp4Cg/6fRsAJx4w+MPoIy+utDSEb42m+gGzMukdJg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=OlC6kWYdD+/DfOi6uNfQb/db4rmyxZtxEQYP4NlR7YczwxtcjMDDxyc+PC0M6kAS3N19vTKO+SxwGvgzI8ma0rgf5nJwgMCHAcIgS5Qise72aEg2FzBVsKFTzGqx50lxlc08tqVkto1DcejEj7e8LqXv0fefYC6JAOCFsOrI6ag= 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=OI6GMZZq; arc=none smtp.client-ip=209.85.215.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="OI6GMZZq" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-b4dfb96c99dso2884a12.0 for ; Wed, 10 Sep 2025 12:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1757532238; x=1758137038; 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=o34se8HrhoO2Xd4R7IPUESRt4uYYYV3fsBy6r7xG+pY=; b=OI6GMZZqECa4U7E8ACg50cVmKDjZM5udTTVJmbYvJKbGZI0RN9Rq1C3UXhTgXROz/f h1XWc2or8dRFJ/8rPh9tY7v/zUeNnTKOJCm15ZmhgXpOZTon3KO859zmAaNsq9bziBTz iyStnJHB0hbR84VugnvvOCINrvmfGqSRytxAO+g8h6MObUNIniNyZVakNZF4uafi3iHO IPzXvuA5hRIz5+JIX513lhuU1TTiueG7xjI70zBuGGyUJO30eiNX7Ckgcltrs4gvCs8K fqVuBSTCcxygEMiv0N+vhkThKc4JpZgaI9WjsD+zqDOSa/E7XKYzrMO91Wad1fE2UuPu y5PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757532238; x=1758137038; 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=o34se8HrhoO2Xd4R7IPUESRt4uYYYV3fsBy6r7xG+pY=; b=Ueaw2/UHJSYJb7ouNEFzfycwclP58g3akWCt9AhBiwc7sAZu+JI1g4WpBRVV0kRYAb cK3GrxaOdZ6rZaMIk76gwvxVTjtqhSnsXWTeg/QeJqQVz/zHCeHG4l4+T/3jjLLiEoXX On67B+YIe/GWRzhUtqp/SNYqoVQVhapLsiwNS6N8446wV5srBar8oDkC/zvhw354FInH lkHON3WZJoSOefZ1qw2tUAZneQLrLe+QMJSMjic0KtP551Zf9cGulbcjO+y4Ldbg19Dv 2dUvlpsUJLzocEQKQY3JaSM4KeneM9lnBlNXJ5iW5l3ObD+DBULlSKVSBwxsJfRNdMJP QNUg== X-Forwarded-Encrypted: i=1; AJvYcCUh/7aCGoZam2ohZ5l5QqH843DdKr4hdxoBmudqXC+EpbEujN2hpjpaUUeo+zRN2HB4UM+fN62KKD9WDag=@vger.kernel.org X-Gm-Message-State: AOJu0Yx1KS4L1yi1iNK0mqpaFYkxzU97uHpiXi+3d/X+gAfDC3lTJr/s tk4JX3lYkZhUgWqjvxLT2Oxt5Oe9ZjB8Tg5RYqSH+gtclGUbRTxAmOBuhrr3siRWnrW6i/UtUrA lNe6yog== X-Google-Smtp-Source: AGHT+IGGAsFb+b3D/lnj0W6sMou0IgRXe78mATJBulCNCfHi2OzuzQgtxJ+x3VXjlnqIenTBrl/R7ROUp+w= X-Received: from plao19.prod.google.com ([2002:a17:903:3013:b0:24c:966a:4a6b]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:d4cc:b0:24e:af92:70c2 with SMTP id d9443c01a7336-2516f240f23mr229413195ad.24.1757532238419; Wed, 10 Sep 2025 12:23:58 -0700 (PDT) Date: Wed, 10 Sep 2025 12:23:56 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: Message-ID: Subject: Re: [RFC PATCH 0/4] SEV-SNP guest policy bit support updates From: Sean Christopherson To: Tom Lendacky Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-crypto@vger.kernel.org, Paolo Bonzini , Borislav Petkov , Dave Hansen , Ingo Molnar , Thomas Gleixner , Michael Roth , Ashish Kalra , Herbert Xu , David Miller Content-Type: text/plain; charset="us-ascii" On Fri, Aug 22, 2025, Tom Lendacky wrote: > This series aims to allow more flexibility in specifying SEV-SNP policy > bits by improving discoverability of supported policy bits from userspace > and enabling support for newer policy bits. > > - The first patch adds a new KVM_X86_GRP_SEV attribute group, > KVM_X86_SNP_POLICY_BITS, that can be used to return the supported > SEV-SNP policy bits. The initial support for this attribute will return > the current KVM supported policy bitmask. > > - The next 3 patches provide for adding to the known SEV-SNP policy > bits. Since some policy bits are dependent on specific levels of SEV > firmware support, the CCP driver is updated to provide an API to return > the supported policy bits. > > The supported policy bits bitmask used by KVM is generated by taking the > policy bitmask returned by the CCP driver and ANDing it with the KVM > supported policy bits. KVM supported policy bits are policy bits that > do not require any specific implementation support from KVM to allow. > > This series has a prereq against the ciphertext hiding patches that were > recently accepted into the cryptodev tree. I'm still waiting on a stable tag for that branch. Can I get that, and if the CCP changes look good, Acks on those patches? I'd prefer to take this through kvm-x86 since it adds new uAPI, even though that uAPI is fairly trivial. Uber nits aside, looks good (though I admittedly haven't stared all that hard). > The series is based off of: > git://git.kernel.org/pub/scm/virt/kvm/kvm.git next > > with the added the ciphertext hiding patches > > Tom Lendacky (4): > KVM: SEV: Publish supported SEV-SNP policy bits > KVM: SEV: Consolidate the SEV policy bits in a single header file > crypto: ccp - Add an API to return the supported SEV-SNP policy bits > KVM: SEV: Add known supported SEV-SNP policy bits > > arch/x86/include/uapi/asm/kvm.h | 1 + > arch/x86/kvm/svm/sev.c | 45 +++++++++++++++++++++------------ > arch/x86/kvm/svm/svm.h | 3 --- > drivers/crypto/ccp/sev-dev.c | 37 +++++++++++++++++++++++++++ > include/linux/psp-sev.h | 39 ++++++++++++++++++++++++++++ > 5 files changed, 106 insertions(+), 19 deletions(-) > > > base-commit: 82a56258ec2d48f9bb1e9ce8f26b14c161dfe4fb > -- > 2.46.2 >