]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Verify SNP VMs are rejected from migration and mirroring
authorAtish Patra <atishp@meta.com>
Tue, 2 Jun 2026 22:36:33 +0000 (15:36 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 10 Jul 2026 16:00:21 +0000 (09:00 -0700)
commitdf371f2c62446c5fc5c5c1c91b47c219bb0d2100
tree3b3b0af909f494734c595eb00c191750e61d4661
parent6ee4140788234a6fabf59e6a50e38cdb936008cd
KVM: selftests: Verify SNP VMs are rejected from migration and mirroring

Migration and mirroring of SEV-SNP VMs are not supported yet.

Add two selftests that verify KVM rejects intra-host migration and
mirroring when the source VM is an SNP VM, so the restriction stays enforced
until proper SNP state transfer is implemented.

Signed-off-by: Atish Patra <atishp@meta.com>
Link: https://patch.msgid.link/20260602-sev_snp_fixes-v3-2-24bfd3ae047c@meta.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/sev_migrate_tests.c