From nobody Wed Apr 8 04:44:51 2026 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.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 22B103783AC for ; Tue, 10 Mar 2026 23:48:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773186519; cv=none; b=mjfWwdGxkcoBluKd8OpDMtYLu4ISfjqQjEZxA15paA9dyWNX4bNmO/vQZEz6j7WRF552qM6aSXA8iym3K6nDcUffDEkiE2iZX2/iZcz1GeWWDpTuxUwEH8WjKunK/NEAWUJ5MXwGBOTm3mxlg6l0vhHcfN1n2n0ghorYyby5Src= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773186519; c=relaxed/simple; bh=xCDwucmupayRYkTSNgAJKJM1Jpc03ttRTH1AoKY5ATs=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=qMppao+EZvjS23528ShEYQl7bvwpntQfb5BsfCCtZMB1XHbxYtRgUDT+KiBt2BX8ICS5936HthRUGsYI2yynd9mRPB9r4kKcEehURlSRy6RwIW0T2VBj7fwJjXPfd6ukVeHjakFvZt+Wi6mWP6sYvsmonsYiSSYas8eLLS10iUA= 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=SIypkxYU; arc=none smtp.client-ip=209.85.214.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="SIypkxYU" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-2adef9d486bso122449235ad.2 for ; Tue, 10 Mar 2026 16:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1773186517; x=1773791317; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=6fM2QIGctUiFaljLqwWiYors6lECqRI6f/jy34iJVpo=; b=SIypkxYUT/LnFS94uwAxYXKpjKCDz0sRFY6e/0kXAji03f1dszoLTe/c2hr3+dkKpl 7AbiA1cBgQedGRUHQ2ie+u9aKNIvfuGI78umnSokwitcqf36Bw6ixJbaDf4hvevviYX6 ABYd9QHU3VST/I/luDT+6uhwQNzUfzqrN5vhB1hWfqwWXbhZ5VhluI/yzG58v5MfgkOH V6ltpH+uokGlP+NccWTM1GQSHxf8rwYih7Q0FWK8+GAuF1nldLHLX3scq48RNClfHMYh ByHGDbsrr4ubB/frI5xX+cZgxzCHOym4J4GQYseKMBRfQO4yTbVxq8Wa+nhD4JuXGXTx Gxew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773186517; x=1773791317; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6fM2QIGctUiFaljLqwWiYors6lECqRI6f/jy34iJVpo=; b=Zmrgv+vg2kTUmz8TTAG13obrRnrg7OxWd101QFUJRgJdaDZViBROkH4KjPeLtnwlZV bveig7Xned9elsIqvGbAfRBdM7hi/bCAVsDZXQWAwJNGgCsPDZMjRifJ02JLWNcrS7J4 fHtG2XzhFNCDSCoXhRz5gcqMnf4tYWTMQpxEfBlP23wiphZ4DCLMjFDyKI/ty7g73zgY w9gCx7wu1M+xTzFlM5zW+Oezec4QAt7+LD/Lg/Dv8rQdVugD5fTTToDbR4oeeJBUN8P9 rrROZlIlWCjHEKL9y8SNx5d3vRqekevxceabSbCal/IHG9czQrN2ClP39GZZnJlEe94o Y5JQ== X-Forwarded-Encrypted: i=1; AJvYcCVnrX4EXe/m8NQH0itAi3btZ9v1nOP9CnoEGFIyk9wOj5ESXAvMOS82MCljjIxSSrZRX5t6iqPPmZJfFnU=@vger.kernel.org X-Gm-Message-State: AOJu0YxAHhxoJ7LZAKzARcoGHa6BIvR1oUY+jhClkEOy0vZidrTlr15h GbUobMQgfp1sTpbnJtmgXL4xfNMYn6zzGvdaBgusRvaiqetRSzKutXmUlb04TDG8TTAtuEheb1b 5K72fhw== X-Received: from pgeh17.prod.google.com ([2002:a05:6a02:53d1:b0:c73:9c66:99b]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:4d89:b0:398:9fc9:e077 with SMTP id adf61e73a8af0-398c5f427fdmr359732637.29.1773186517386; Tue, 10 Mar 2026 16:48:37 -0700 (PDT) Reply-To: Sean Christopherson Date: Tue, 10 Mar 2026 16:48:09 -0700 In-Reply-To: <20260310234829.2608037-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260310234829.2608037-1-seanjc@google.com> X-Mailer: git-send-email 2.53.0.473.g4a7958ca14-goog Message-ID: <20260310234829.2608037-2-seanjc@google.com> Subject: [PATCH 01/21] KVM: selftests: Remove duplicate LAUNCH_UPDATE_VMSA call in SEV-ES migrate test From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jethro Beekman , Alexander Potapenko , "=?UTF-8?q?Carlos=20L=C3=B3pez?=" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Drop the explicit KVM_SEV_LAUNCH_UPDATE_VMSA call when creating an SEV-ES VM in the SEV migration test, as sev_vm_create() automatically updates the VMSA pages for SEV-ES guests. The only reason the duplicate call doesn't cause visible problems is because the test doesn't actually try to run the vCPUs. That will change when KVM adds a check to prevent userspace from re-launching a VMSA (which corrupts the VMSA page due to KVM writing encrypted private memory). Fixes: 69f8e15ab61f ("KVM: selftests: Use the SEV library APIs in the intra= -host migration test") Cc: stable@vger.kernel.org Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/x86/sev_migrate_tests.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/kvm/x86/sev_migrate_tests.c b/tools/te= sting/selftests/kvm/x86/sev_migrate_tests.c index 0a6dfba3905b..6b0928e69051 100644 --- a/tools/testing/selftests/kvm/x86/sev_migrate_tests.c +++ b/tools/testing/selftests/kvm/x86/sev_migrate_tests.c @@ -36,8 +36,6 @@ static struct kvm_vm *sev_vm_create(bool es) =20 sev_vm_launch(vm, es ? SEV_POLICY_ES : 0); =20 - if (es) - vm_sev_ioctl(vm, KVM_SEV_LAUNCH_UPDATE_VMSA, NULL); return vm; } =20 --=20 2.53.0.473.g4a7958ca14-goog