]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Test KVM_SET_CPUID2 after KVM_RUN
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 17 Jan 2022 15:05:42 +0000 (16:05 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Jan 2022 17:30:24 +0000 (12:30 -0500)
commit13aa66f75640cb506ffadb0386afdee4eb3e695b
tree48dec73dd3bee4e48ddda73845d2dfca70430b6c
parent73d13210d2245925a5031dd33014cfba6eca328c
KVM: selftests: Test KVM_SET_CPUID2 after KVM_RUN

KVM forbids KVM_SET_CPUID2 after KVM_RUN was performed on a vCPU unless
the supplied CPUID data is equal to what was previously set. Test this.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20220117150542.2176196-5-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/lib/x86_64/processor.c
tools/testing/selftests/kvm/x86_64/cpuid_test.c