Skip to content

Commit 338b655

Browse files
arndbjlahtine-intel
authored andcommitted
i915: fix DRM_I915_GVT_KVMGT dependencies
Depending on x86 and KVM is not enough, as the kvm helper functions that get called here are controlled by CONFIG_KVM_X86, which is disabled if both KVM_INTEL and KVM_AMD are turned off. ERROR: modpost: "kvm_write_track_remove_gfn" [drivers/gpu/drm/i915/kvmgt.ko] undefined! ERROR: modpost: "kvm_page_track_register_notifier" [drivers/gpu/drm/i915/kvmgt.ko] undefined! ERROR: modpost: "kvm_page_track_unregister_notifier" [drivers/gpu/drm/i915/kvmgt.ko] undefined! ERROR: modpost: "kvm_write_track_add_gfn" [drivers/gpu/drm/i915/kvmgt.ko] undefined! Change the dependency to CONFIG_KVM_X86 instead. Fixes: ea4290d ("KVM: x86: leave kvm.ko out of the build if no vendor module is requested") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]> (cherry picked from commit 341e402) Signed-off-by: Joonas Lahtinen <[email protected]>
1 parent 42f7652 commit 338b655

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/i915/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,8 @@ config DRM_I915_USERPTR
123123
config DRM_I915_GVT_KVMGT
124124
tristate "Enable KVM host support Intel GVT-g graphics virtualization"
125125
depends on DRM_I915
126-
depends on X86
126+
depends on KVM_X86
127127
depends on 64BIT
128-
depends on KVM
129128
depends on VFIO
130129
select DRM_I915_GVT
131130
select KVM_EXTERNAL_WRITE_TRACKING

0 commit comments

Comments
 (0)