aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm/nested.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-02-18 09:51:06 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2021-03-15 04:42:38 -0400
commit2a32a77cefa662773197b362db8e4190027c89fa (patch)
treefadb60d365945e2be9fa236a1296acd07e46e86a /arch/x86/kvm/svm/nested.c
parentKVM: nSVM: Trace VM-Enter consistency check failures (diff)
downloadlinux-dev-2a32a77cefa662773197b362db8e4190027c89fa.tar.xz
linux-dev-2a32a77cefa662773197b362db8e4190027c89fa.zip
KVM: SVM: merge update_cr0_intercept into svm_set_cr0
The logic of update_cr0_intercept is pointlessly complicated. All svm_set_cr0 is compute the effective cr0 and compare it with the guest value. Inlining the function and simplifying the condition clarifies what it is doing. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/nested.c')
0 files changed, 0 insertions, 0 deletions