* [PATCH 6.12.y] KVM: selftests: Remove duplicate LAUNCH_UPDATE_VMSA call in SEV-ES migrate test
@ 2026-09-02 19:19 Sean Christopherson
2026-09-04 2:52 ` Sasha Levin
0 siblings, 1 reply; 2+ messages in thread
From: Sean Christopherson @ 2026-09-02 19:19 UTC (permalink / raw)
To: stable, Greg Kroah-Hartman, Sasha Levin
Cc: kvm, linux-kselftest, linux-kernel, Sean Christopherson,
Paolo Bonzini, Shuah Khan
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 <seanjc@google.com>
---
tools/testing/selftests/kvm/x86_64/sev_migrate_tests.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/testing/selftests/kvm/x86_64/sev_migrate_tests.c b/tools/testing/selftests/kvm/x86_64/sev_migrate_tests.c
index 0a6dfba3905b..6b0928e69051 100644
--- a/tools/testing/selftests/kvm/x86_64/sev_migrate_tests.c
+++ b/tools/testing/selftests/kvm/x86_64/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;
}
base-commit: f717995cb7dcd8998ab15516b8006aea09cfde0d
--
2.55.0.970.g62bdec98f9-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 6.12.y] KVM: selftests: Remove duplicate LAUNCH_UPDATE_VMSA call in SEV-ES migrate test
2026-09-02 19:19 [PATCH 6.12.y] KVM: selftests: Remove duplicate LAUNCH_UPDATE_VMSA call in SEV-ES migrate test Sean Christopherson
@ 2026-09-04 2:52 ` Sasha Levin
0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2026-09-04 2:52 UTC (permalink / raw)
To: stable, Greg Kroah-Hartman, Sasha Levin
Cc: kvm, linux-kselftest, linux-kernel, Sean Christopherson,
Paolo Bonzini, Shuah Khan
> 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.
Queued for 6.12, thanks.
--
Thanks,
Sasha
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-04 2:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-02 19:19 [PATCH 6.12.y] KVM: selftests: Remove duplicate LAUNCH_UPDATE_VMSA call in SEV-ES migrate test Sean Christopherson
2026-09-04 2:52 ` Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox