Commit 26666957 authored by Joerg Roedel's avatar Joerg Roedel Committed by Avi Kivity

KVM: SVM: move nested_svm_intr main logic out of if-clause

This patch removes one indentation level from nested_svm_intr and
makes the logic more readable.
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent cda0ffdd
...@@ -1374,7 +1374,9 @@ static int nested_svm_check_exception(struct vcpu_svm *svm, unsigned nr, ...@@ -1374,7 +1374,9 @@ static int nested_svm_check_exception(struct vcpu_svm *svm, unsigned nr,
static inline int nested_svm_intr(struct vcpu_svm *svm) static inline int nested_svm_intr(struct vcpu_svm *svm)
{ {
if (is_nested(svm)) { if (!is_nested(svm))
return 0;
if (!(svm->vcpu.arch.hflags & HF_VINTR_MASK)) if (!(svm->vcpu.arch.hflags & HF_VINTR_MASK))
return 0; return 0;
...@@ -1387,7 +1389,6 @@ static inline int nested_svm_intr(struct vcpu_svm *svm) ...@@ -1387,7 +1389,6 @@ static inline int nested_svm_intr(struct vcpu_svm *svm)
nsvm_printk("VMexit -> INTR\n"); nsvm_printk("VMexit -> INTR\n");
return 1; return 1;
} }
}
return 0; return 0;
} }
......
Markdown is supported
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