]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: SEV: fix misplaced closing parenthesis
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jun 2022 12:03:53 +0000 (08:03 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jun 2022 12:03:53 +0000 (08:03 -0400)
This caused a warning on 32-bit systems, but undoubtedly would have acted
funny on 64-bit as well.

The fix was applied directly on merge in 5.19, see commit 08c21492c2f1 ("Merge
tag for-linus of git://git.kernel.org/pub/scm/virt/kvm/kvm").

Fixes: 36e91d4510ec ("KVM: x86: inhibit APICv/AVIC on changes to APIC ID or APIC base")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/avic.c

index 5542d8959e1147c084abaaba9413180356cee2b1..d1bc5820ea469349bedb6f61cc8d209cdb75190f 100644 (file)
@@ -908,9 +908,9 @@ bool avic_check_apicv_inhibit_reasons(enum kvm_apicv_inhibit reason)
                          BIT(APICV_INHIBIT_REASON_PIT_REINJ) |
                          BIT(APICV_INHIBIT_REASON_X2APIC) |
                          BIT(APICV_INHIBIT_REASON_BLOCKIRQ) |
-                         BIT(APICV_INHIBIT_REASON_SEV      |
+                         BIT(APICV_INHIBIT_REASON_SEV)      |
                          BIT(APICV_INHIBIT_REASON_APIC_ID_MODIFIED) |
-                         BIT(APICV_INHIBIT_REASON_APIC_BASE_MODIFIED));
+                         BIT(APICV_INHIBIT_REASON_APIC_BASE_MODIFIED);
 
        return supported & BIT(reason);
 }