mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
bede6eb4db
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
|
||
---|---|---|
.. | ||
avic.c | ||
hyperv.c | ||
hyperv.h | ||
nested.c | ||
pmu.c | ||
sev.c | ||
svm_onhyperv.c | ||
svm_onhyperv.h | ||
svm_ops.h | ||
svm.c | ||
svm.h | ||
vmenter.S |