Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp520457lqt; Mon, 18 Mar 2024 15:11:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrHC5Enq830rYpCLdsDW1FoCjn1UNX8YKFul403ZsZZTOqfmM3PgQ0+gyvfp10U4d6/YcG7zYkzBgdGd5SuDCrn6jMB690P4n2Vu/+6A== X-Google-Smtp-Source: AGHT+IEmnUPwenC7ET556N8wRaCy3elLt//Z4kA5TJWcmmDRUnDOgC/FdvSKkztKcoPCr21rqoyB X-Received: by 2002:a17:907:6d1d:b0:a46:8bf7:8adf with SMTP id sa29-20020a1709076d1d00b00a468bf78adfmr8805437ejc.63.1710799884619; Mon, 18 Mar 2024 15:11:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710799884; cv=pass; d=google.com; s=arc-20160816; b=XvE5rHTCjnMeYm9gm6hQdMf2ET1FebgbzFDeVW7MHxCnrvksZ9m7bh2fNaSvNxSoGp YUshkS879vY0xT0u64bQYl+FeQIWKR60umtlfOLo3LFwJzLzY9VY20DosCsCwDI149Ud XyOkQ/Bc53aUKWWKjNETRkO+e9fjUhPU1WSDQSUsr4Y4o/tjoudb4+xVF/72LpVUGZzV APEVcBZ6YPMq9iuG+22Fc2uB+0O801DdFpuHrsS1B7ixtcwuBN0Z5WgF+Oz2PUQUR4b7 82zFoCq1XRke4Pz4GrIgDGmhhgq1+S/dw9397875UY1i6Rr9CbSooxhoAfemzL2CIuM9 +gLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=lU3bYlVFweW6d5myNi1cvNJ/wMZHrCTdSlP/1ol+Mt8=; fh=V2vC7s/1M2hH18+2ttRiDZaHrE0o8WE7Q/UWhHIMKLY=; b=JE9saHNbG3URFpKcDjesrqe7RjfoyvPFZz+bAkeaB+kvY1yQZZNyHM3tLqbdP3oFOx /zh4AShB0uW61bsYFMimv9nMQz6IEqKvlHcHLXn1dZdcEFq49I8DW9G81JB8ePDjoMzs mt/vLIs/zFUTR+XpQOUan9Y7AO0L3lVPw8hwGrTofPkDATbRbppkwYqxr79MMYA0gGzW RiO0kp7FFMSBONvcoKYi64K0bctg6BWT5fdrpFC6IeXKCmI5rZ+Zzj0FTAmxWH54JjgU wGjajAaAi6GmHRqToa+vgEhgKUfylPCWu1/MtpP2NrpGy3px71pp6UxYd2F2eIMi1p47 aHjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DLYiSF5I; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-106743-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106743-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d19-20020a170906175300b00a457907b21esi4522273eje.339.2024.03.18.15.11.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 15:11:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106743-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=@redhat.com header.s=mimecast20190719 header.b=DLYiSF5I; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-106743-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106743-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 5AAD01F22129 for ; Mon, 18 Mar 2024 22:11:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B5AF5B677; Mon, 18 Mar 2024 22:10:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="DLYiSF5I" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26E925A782 for ; Mon, 18 Mar 2024 22:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710799811; cv=none; b=FtPgxyCtwYI8Uf4bp8bVdrjI+99rMMeI/XuMfCBejgUSiT2mC2eT2EwavifSoPlZHkReiMgQyS6vX/yocUqPxZ36CJqRirE418VOmTS+r/ez4aptas97/TZjc6KTP3cEBdjM3lQ1SGOdqlzJWQatroKSm4voyNHwke394gFgOqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710799811; c=relaxed/simple; bh=SS06J2Qq7Itn7uGpSS75eUlr+DDWdLd2LrLa8ZpCTXc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=q/+Azp844ZNL6Obk36SEL2JNxoleYApEySfStWn671qlpbzoWepvBAoB9Hf0UbAyFkVB60WbbQkRARQWwj4Y3kx1Ol93hl2Bgj0W2dUxTpsYyU4I3UJ3ZG4XhzcBz9XsbhUIrh/xxFzweSylmDV4eLf2kmbWncwtxCZQHr51E08= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=DLYiSF5I; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710799808; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lU3bYlVFweW6d5myNi1cvNJ/wMZHrCTdSlP/1ol+Mt8=; b=DLYiSF5I1HqwJL6rnGQw4ed5C1sz9LsiXp8C/szY4BNvwZqeZg7qCUO5OcgUXaoKvLEwld YeVNDnmkL/wdrv7z0iyY+0lSuw7hmBfwRPZlJf9AyL69+nr3hpiRmRqPdBzzKCoyW7+xIs e4o2HQNak8M0C261k49G3qciHKiaXj8= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-668-iDRZ-uWrNBe7E91cIiLiGw-1; Mon, 18 Mar 2024 18:10:04 -0400 X-MC-Unique: iDRZ-uWrNBe7E91cIiLiGw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9AE861C04338; Mon, 18 Mar 2024 22:10:03 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7C5AF492BD3; Mon, 18 Mar 2024 22:10:03 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: seanjc@google.com Subject: [PATCH 0/7] KVM: SEV fixes for 6.9 Date: Mon, 18 Mar 2024 18:09:55 -0400 Message-ID: <20240318221002.2712738-1-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 A small bugfix and documentation extract of my SEV_INIT2 series, plus 4 patches from Ashish and Sean that I thought would be in the 6.9 pull requests. No need to rush this in during the merge window, but please ack nevertheless. Paolo Ashish Kalra (1): KVM: SVM: Add support for allowing zero SEV ASIDs Paolo Bonzini (3): KVM: SEV: fix compat ABI for KVM_MEMORY_ENCRYPT_OP Documentation: kvm/sev: separate description of firmware Documentation: kvm/sev: clarify usage of KVM_MEMORY_ENCRYPT_OP Sean Christopherson (3): KVM: SVM: Set sev->asid in sev_asid_new() instead of overloading the return KVM: SVM: Use unsigned integers when dealing with ASIDs KVM: SVM: Return -EINVAL instead of -EBUSY on attempt to re-init SEV/SEV-ES .../virt/kvm/x86/amd-memory-encryption.rst | 42 ++++++++------ arch/x86/include/uapi/asm/kvm.h | 23 ++++++++ arch/x86/kvm/svm/sev.c | 58 +++++++++++-------- arch/x86/kvm/trace.h | 10 ++-- 4 files changed, 86 insertions(+), 47 deletions(-) -- 2.43.0