]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: KVM: allow sev_migrate_tests on machines without SEV-ES
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Feb 2022 10:07:09 +0000 (05:07 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Feb 2022 10:16:43 +0000 (05:16 -0500)
commit7efd6cb258d3764c3a5f8017d622606e06a7d695
tree2c2df3607cced48661f251062c5102befd65b091
parent3885bd4860aa2b94f0e79a4e759831afdd51614f
selftests: KVM: allow sev_migrate_tests on machines without SEV-ES

I managed to get hold of a machine that has SEV but not SEV-ES, and
sev_migrate_tests fails because sev_vm_create(true) returns ENOTTY.
Fix this, and while at it also return KSFT_SKIP on machines that do
not have SEV at all, instead of returning 0.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/sev_migrate_tests.c