提交 e9196ceb 编写于 作者: D Dan Carpenter 提交者: Paolo Bonzini

KVM: Tidy the whitespace in nested_svm_check_permissions()

I moved the || to the line before.  Also I replaced some spaces with a
tab on the "return 0;" line.  It looks OK in the diff but originally
that line was only indented 7 spaces.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NJoerg Roedel <jroedel@suse.de>
Signed-off-by: NRadim Krčmář <rkrcmar@redhat.com>
上级 47a66eed
...@@ -2369,8 +2369,8 @@ static void nested_svm_uninit_mmu_context(struct kvm_vcpu *vcpu) ...@@ -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) static int nested_svm_check_permissions(struct vcpu_svm *svm)
{ {
if (!(svm->vcpu.arch.efer & EFER_SVME) if (!(svm->vcpu.arch.efer & EFER_SVME) ||
|| !is_paging(&svm->vcpu)) { !is_paging(&svm->vcpu)) {
kvm_queue_exception(&svm->vcpu, UD_VECTOR); kvm_queue_exception(&svm->vcpu, UD_VECTOR);
return 1; return 1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册