From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0CBDF3A1DB for ; Mon, 20 Apr 2026 13:07:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776690431; cv=none; b=VVlb5oh1kfpgHTmtOmqrLk0dVlVkqcEQFiBCpc8aHrav/lS7n4oy2h0yFlD1AsjwonczVwQN0t8cGQCo3gxtDATtqMzmKZxmIlI4+G3HWRXBB0h/9NHTmniPkEKV6JdILKbMdd254lwm4lv/2w8WbWwk2CWfYo+WBdiv586Pfdg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776690431; c=relaxed/simple; bh=+DFgMw0gWLTlWRDEDAEir58Ko0IOrPzm7c/TfnVr2u4=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Ubl7JFUofw7int3dt80GqWZv1vQ+X/SrA04xMXpPFG/Y6P+TeCudTtVCQtfNqnBG7zlEoT5K36JVUoyrY7rcisVd6YvH2TB5IA79AcABLYyQ4HXyK112ex+Dh33Atq3AS41AHf02de/YNkF1HAB9czs1RwFXiy3gLfqI/FcsJ88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pAxGfNCs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="pAxGfNCs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 664D5C19425; Mon, 20 Apr 2026 13:07:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776690430; bh=+DFgMw0gWLTlWRDEDAEir58Ko0IOrPzm7c/TfnVr2u4=; h=Subject:To:Cc:From:Date:From; b=pAxGfNCsEpyLtenCW+kDBoBdJt2eB4FB7YqFKLS64eRsWvRoeLixZNLieRSHempcX 7AxOiWNeqaX2nKRy5iND3EOsFX1ZsIvsIFd72CCVMMBzU8I8c4UFXL9rTSADrGcI86 Vrq4eigJHo1p+5rUeTpzFaAgTZlNo8ReKCZZWNDc= Subject: FAILED: patch "[PATCH] KVM: selftests: Remove duplicate LAUNCH_UPDATE_VMSA call in" failed to apply to 6.12-stable tree To: seanjc@google.com Cc: From: Date: Mon, 20 Apr 2026 15:07:08 +0200 Message-ID: <2026042008-thesis-flatworm-d8ed@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y git checkout FETCH_HEAD git cherry-pick -x 25a642b6abc98bbbabbf2baef9fc498bbea6aee6 # git commit -s git send-email --to '' --in-reply-to '2026042008-thesis-flatworm-d8ed@gregkh' --subject-prefix 'PATCH 6.12.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 25a642b6abc98bbbabbf2baef9fc498bbea6aee6 Mon Sep 17 00:00:00 2001 From: Sean Christopherson Date: Tue, 10 Mar 2026 16:48:09 -0700 Subject: [PATCH] KVM: selftests: Remove duplicate LAUNCH_UPDATE_VMSA call in SEV-ES migrate test 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 Link: https://patch.msgid.link/20260310234829.2608037-2-seanjc@google.com Signed-off-by: Sean Christopherson diff --git a/tools/testing/selftests/kvm/x86/sev_migrate_tests.c b/tools/testing/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) sev_vm_launch(vm, es ? SEV_POLICY_ES : 0); - if (es) - vm_sev_ioctl(vm, KVM_SEV_LAUNCH_UPDATE_VMSA, NULL); return vm; }