Skip to content
Commit 2a32a77c authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 11f0cbf0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment