aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorBinbin Wu <[email protected]>2023-03-22 12:58:21 +0800
committerSean Christopherson <[email protected]>2023-03-22 10:10:53 -0700
commit607475cfa0f753862c0030de836875fe4ac5cf8a (patch)
treed1606c5c811da33380874a051ca026d34706ab04 /lib/test_fortify/write_overflow-strncpy-src.c
parent0c928ff26bd68d9638444601c0cbf4e4f978b752 (diff)
KVM: x86: Add helpers to query individual CR0/CR4 bits
Add helpers to check if a specific CR0/CR4 bit is set to avoid a plethora of implicit casts from the "unsigned long" return of kvm_read_cr*_bits(), and to make each caller's intent more obvious. Defer converting helpers that do truly ugly casts from "unsigned long" to "int", e.g. is_pse(), to a future commit so that their conversion is more isolated. Opportunistically drop the superfluous pcid_enabled from kvm_set_cr3(); the local variable is used only once, immediately after its declaration. Suggested-by: Sean Christopherson <[email protected]> Signed-off-by: Binbin Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] [sean: move "obvious" conversions to this commit, massage changelog] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions