linux/arch/x86/kvm/svm
Binbin Wu bede6eb4db KVM: x86: Use boolean return value for is_{pae,pse,paging}()
Convert is_{pae,pse,paging}() to use kvm_is_cr{0,4}_bit_set() and return
bools.  Returning an "int" requires not one, but two implicit casts, first
from "unsigned long" to "int", and then again to a "bool".  Both casts are
more than a bit dangerous; the ulong=>int casts would drop a bit on 64-bit
kernels _if_ the bits in question weren't in the lower 32 bits, and the
int=>bool cast can result in false negatives/positives, e.g. see commit
0c928ff26b ("KVM: SVM: Fix benign "bool vs. int" comparison in
svm_set_cr0()").

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Binbin Wu <binbin.wu@linux.intel.com>
Link: https://lore.kernel.org/r/20230322045824.22970-3-binbin.wu@linux.intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2023-03-22 10:18:11 -07:00
..
avic.c KVM: SVM: WARN if GATag generation drops VM or vCPU ID information 2023-03-14 10:20:07 -04:00
hyperv.c KVM: nSVM: hyper-v: Enable L2 TLB flush 2022-11-18 12:59:18 -05:00
hyperv.h KVM: nSVM: hyper-v: Enable L2 TLB flush 2022-11-18 12:59:18 -05:00
nested.c KVM: nSVM: Don't sync tlb_ctl back to vmcb12 on nested VM-Exit 2023-01-31 12:56:26 -08:00
pmu.c KVM: x86/pmu: Cap kvm_pmu_cap.num_counters_gp at KVM's internal max 2023-01-26 18:03:42 -08:00
sev.c KVM: SVM: Fix potential overflow in SEV's send|receive_update_data() 2023-02-07 14:36:45 -08:00
svm_onhyperv.c KVM: x86: Unify pr_fmt to use module name for all KVM modules 2022-12-29 15:47:35 -05:00
svm_onhyperv.h KVM: SVM: hyper-v: placate modpost section mismatch error 2023-02-22 13:32:07 -05:00
svm_ops.h KVM: SVM: restore host save area from assembly 2022-11-09 12:25:33 -05:00
svm.c KVM: x86: Use boolean return value for is_{pae,pse,paging}() 2023-03-22 10:18:11 -07:00
svm.h KVM: x86: Move HF_NMI_MASK and HF_IRET_MASK into "struct vcpu_svm" 2023-01-31 12:56:42 -08:00
vmenter.S Linux 6.1-rc6 2022-11-21 23:01:51 +01:00