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>
#if WITH_LINUX_KVM_H && defined(KVM_GET_MSRS) && \
- (defined(__i386__) || defined(__x86_64__)) && \
- (defined(__linux__) || defined(__FreeBSD__))
+ (defined(__i386__) || defined(__x86_64__))
static int
virHostCPUGetMSRFromKVM(unsigned long index,
uint64_t *result)
}
#endif /* WITH_LINUX_KVM_H && defined(KVM_GET_MSRS) && \
- (defined(__i386__) || defined(__x86_64__)) && \
- (defined(__linux__) || defined(__FreeBSD__)) */
+ (defined(__i386__) || defined(__x86_64__)) */
int
virHostCPUReadSignature(virArch arch,