]> git.feebdaed.xyz Git - 0xmirror/libvirt.git/commit
src: fix redundant/misleading build conditional for KVM MSR code
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 24 Nov 2025 13:50:22 +0000 (13:50 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 27 Nov 2025 12:54:09 +0000 (12:54 +0000)
commitdf0d1c915d0fc47c4666dc57110531ee4a521e99
tree5f4bbfd12e3cdf2c505f62a3a313c1f4dac59e0b
parent40f5e37ff39ad4a55ebe0d7b45a0a352d4def648
src: fix redundant/misleading build conditional for KVM MSR code

The condition

   WITH_LINUX_KVM_H && (defined(__linux__) || defined(__FreeBSD__))

is redundant. If the meson check for linux/kvm.h succeeded, we
must be on a Linux host and cannot be on a FreeBSD host. Remove
these redundant OS conditions from the MSR code to stop misleading
readers.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virhostcpu.c