KVM: x86: add config for non-kvm users of page tracking
authorDavid Stevens <stevensd@chromium.org>
Wed, 22 Sep 2021 04:58:58 +0000 (13:58 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Oct 2021 07:44:57 +0000 (03:44 -0400)
Add a config option that allows kvm to determine whether or not there
are any external users of page tracking.

Signed-off-by: David Stevens <stevensd@chromium.org>
Message-Id: <20210922045859.2011227-2-stevensd@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Kconfig
drivers/gpu/drm/i915/Kconfig

index ac69894..6191861 100644 (file)
@@ -129,4 +129,7 @@ config KVM_MMU_AUDIT
         This option adds a R/W kVM module parameter 'mmu_audit', which allows
         auditing of KVM MMU events at runtime.
 
+config KVM_EXTERNAL_WRITE_TRACKING
+       bool
+
 endif # VIRTUALIZATION
index f960f5d..1077624 100644 (file)
@@ -126,6 +126,7 @@ config DRM_I915_GVT_KVMGT
        depends on DRM_I915_GVT
        depends on KVM
        depends on VFIO_MDEV
+       select KVM_EXTERNAL_WRITE_TRACKING
        default n
        help
          Choose this option if you want to enable KVMGT support for