]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Dedup subtests of fix_hypercall_test
authorSean Christopherson <seanjc@google.com>
Wed, 28 Sep 2022 23:36:51 +0000 (23:36 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Sep 2022 10:39:34 +0000 (06:39 -0400)
commit309b28182e124db4aa885a85eb20e288aa790434
tree9f83dde094edd0e624a2b3965179c0ce9cdcee78
parent2cd50b03d877aaf5b3fcce4941d79c548c3f7836
KVM: selftests: Dedup subtests of fix_hypercall_test

Combine fix_hypercall_test's two subtests into a common routine, the only
difference between the two is whether or not the quirk is disabled.
Passing a boolean is a little gross, but using an enum to make it super
obvious that the callers are enabling/disabling the quirk seems like
overkill.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Message-Id: <20220928233652.783504-7-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c