mbox series

[kvm-unit-tests,0/4] x86: hyper-v: Add support for CONFIG_KVM_HYPERV

Message ID 20231025152915.1879661-1-vkuznets@redhat.com (mailing list archive)
Headers show
Series x86: hyper-v: Add support for CONFIG_KVM_HYPERV | expand

Message

Vitaly Kuznetsov Oct. 25, 2023, 3:29 p.m. UTC
With the introduction of CONFIG_KVM_HYPERV:
https://lore.kernel.org/kvm/20231025152406.1879274-1-vkuznets@redhat.com/

it becomes possible to build KVM without Hyper-V emulation support. Make
Hyper-V tests in kvm-unit-tests handle such case with dignity.

Vitaly Kuznetsov (4):
  x86: hyper-v: Use '-cpu host,hv_passhtrough' for Hyper-V tests
  x86: hyper-v: Use report_skip() in hyperv_stimer when pre-requisites
    are not met
  x86: hyper-v:  Use 'goto' instead of putting the whole test in an 'if'
    branch in hyperv_synic
  x86: hyper-v: Unify hyperv_clock with other Hyper-V tests

 x86/hyperv_clock.c  | 12 ++++-----
 x86/hyperv_stimer.c |  6 ++---
 x86/hyperv_synic.c  | 61 +++++++++++++++++++++++----------------------
 x86/unittests.cfg   |  8 +++---
 4 files changed, 43 insertions(+), 44 deletions(-)

Comments

Vitaly Kuznetsov Jan. 24, 2024, 12:11 p.m. UTC | #1
Vitaly Kuznetsov <vkuznets@redhat.com> writes:

> With the introduction of CONFIG_KVM_HYPERV:
> https://lore.kernel.org/kvm/20231025152406.1879274-1-vkuznets@redhat.com/
>
> it becomes possible to build KVM without Hyper-V emulation support. Make
> Hyper-V tests in kvm-unit-tests handle such case with dignity.
>

Ping) CONFIG_KVM_HYPERV is merged in 6.8 and kvm-unit-tests fail
miserably when !CONFIG_KVM_HYPERV without these changes. Patches still
apply cleanly.