1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/selftests/kvm/lib/x86_64
Sean Christopherson 1525429fe5 KVM: selftests: Fix a typo in x86-64's kvm_get_cpu_address_width()
Fix a == vs. = typo in kvm_get_cpu_address_width() that results in
@pa_bits being left unset if the CPU doesn't support enumerating its
MAX_PHY_ADDR.  Flagged by clang's unusued-value warning.

lib/x86_64/processor.c:1034:51: warning: expression result unused [-Wunused-value]
                *pa_bits == kvm_cpu_has(X86_FEATURE_PAE) ? 36 : 32;

Fixes: 3bd396353d ("KVM: selftests: Add X86_FEATURE_PAE and use it calc "fallback" MAXPHYADDR")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221213001653.3852042-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-12-27 06:00:46 -05:00
..
apic.c KVM: selftests: Introduce x2APIC register manipulation functions 2021-06-17 13:09:32 -04:00
handlers.S selftests: kvm: remove reassignment of non-absolute variables 2021-05-07 06:06:13 -04:00
hyperv.c KVM: selftests: Allocate Hyper-V partition assist page 2022-11-21 06:41:59 -05:00
memstress.c KVM: selftests: Assert in prepare_eptp() that nEPT is supported 2022-11-16 16:59:07 -08:00
processor.c KVM: selftests: Fix a typo in x86-64's kvm_get_cpu_address_width() 2022-12-27 06:00:46 -05:00
svm.c Revert "KVM: selftests: Fix nested SVM tests when built with clang" 2022-09-30 06:39:34 -04:00
ucall.c KVM: selftests: Add ucall pool based implementation 2022-11-16 16:58:53 -08:00
vmx.c KVM: selftests: Create a vendor independent helper to allocate Hyper-V specific test pages 2022-11-21 06:41:22 -05:00