|
@@ -2369,8 +2369,8 @@ static void nested_svm_uninit_mmu_context(struct kvm_vcpu *vcpu)
|
|
|
|
|
|
static int nested_svm_check_permissions(struct vcpu_svm *svm)
|
|
|
{
|
|
|
- if (!(svm->vcpu.arch.efer & EFER_SVME)
|
|
|
- || !is_paging(&svm->vcpu)) {
|
|
|
+ if (!(svm->vcpu.arch.efer & EFER_SVME) ||
|
|
|
+ !is_paging(&svm->vcpu)) {
|
|
|
kvm_queue_exception(&svm->vcpu, UD_VECTOR);
|
|
|
return 1;
|
|
|
}
|
|
@@ -2380,7 +2380,7 @@ static int nested_svm_check_permissions(struct vcpu_svm *svm)
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
- return 0;
|
|
|
+ return 0;
|
|
|
}
|
|
|
|
|
|
static int nested_svm_check_exception(struct vcpu_svm *svm, unsigned nr,
|