KVM: SVM: make the avic parameter a bool
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 May 2021 16:22:28 +0000 (18:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 May 2021 17:10:27 +0000 (13:10 -0400)
Make it consistent with kvm_intel.enable_apicv.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/svm.h

index 1c1bf911e02b4ed3ece95fc7499879c344140829..0e62e6a2438cfd041841e950fb9ee3ff1fb5f64c 100644 (file)
@@ -28,8 +28,8 @@
 #include "svm.h"
 
 /* enable / disable AVIC */
-int avic;
-module_param(avic, int, S_IRUGO);
+bool avic;
+module_param(avic, bool, S_IRUGO);
 
 #define SVM_AVIC_DOORBELL      0xc001011b
 
index e44567ceb8655aa9d214383460bca421ddfa141e..70419e417c0d96c34e9b605c2deead576d61b114 100644 (file)
@@ -479,7 +479,7 @@ extern struct kvm_x86_nested_ops svm_nested_ops;
 
 #define VMCB_AVIC_APIC_BAR_MASK                0xFFFFFFFFFF000ULL
 
-extern int avic;
+extern bool avic;
 
 static inline void avic_update_vapic_bar(struct vcpu_svm *svm, u64 data)
 {