]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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 ac69894eab88895020ac77e7b5c6f2a1b014d0be..6191861381768c60e5aa409e05934fba3a21d4a6 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 f960f5d7664e6a0448d34cbace16b7297285f7f0..10776242764881ccdf93994af8407f4c080155c1 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