aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2023-07-21 13:18:54 -0700
committerSean Christopherson <[email protected]>2023-08-03 15:37:15 -0700
commitc4db4f20f3bf619bacd3d705bf427016453eedb1 (patch)
treed38002f539f772c770cd55439baedcba5bd56d98 /net/lapb/lapb_out.c
parent85fd29dd5fe459b732e46c7a9782fc403c5604ed (diff)
KVM: SVM: Check that the current CPU supports SVM in kvm_is_svm_supported()
Check "this" CPU instead of the boot CPU when querying SVM support so that the per-CPU checks done during hardware enabling actually function as intended, i.e. will detect issues where SVM isn't support on all CPUs. Disable migration for the use from svm_init() mostly so that the standard accessors for the per-CPU data can be used without getting yelled at by CONFIG_DEBUG_PREEMPT=y sanity checks. Preventing the "disabled by BIOS" error message from reporting the wrong CPU is largely a bonus, as ensuring a stable CPU during module load is a non-goal for KVM. Link: https://lore.kernel.org/all/[email protected] Cc: Kai Huang <[email protected]> Cc: Chao Gao <[email protected]> Reviewed-by: Kai Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions