Skip to contentSkip to conversation

KVM: Make KVM_INTEL depend on CPU_SUP_INTEL

PATCH Applied Avi Kivity 3 participants 4 messages Dec 14, 2011 – Dec 17, 2011

Subsystems (3)
lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

PATCH 1/1 KVM: Make KVM_INTEL depend on CPU_SUP_INTEL

PMU virtualization needs to talk to Intel-specific bits of perf; these are only available when CPU_SUP_INTEL=y.

Fixes

arch/x86/built-in.o: In function `atomic_switch_perf_msrs':
vmx.c:(.text+0x6b1d4): undefined reference to `perf_guest_get_msrs'

---
 arch/x86/kvm/Kconfig |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/kvm/Kconfig +2 -0
index ff5790d..ca4d49e 100644
@@ -52,6 +52,8 @@ config KVM
 config KVM_INTEL
 	tristate "KVM for Intel processors support"
 	depends on KVM
+	# for perf_guest_get_msrs():
+	depends on CPU_SUP_INTEL
 	---help---
 	  Provides support for KVM on Intel processors equipped with the VT
 	  extensions.
Signature · 1 line
1.7.7.1
author
#1 lore raw
Quoted 9 lines · Avi Kivity

PMU virtualization needs to talk to Intel-specific bits of perf; these are only available when CPU_SUP_INTEL=y.

Fixes

arch/x86/built-in.o: In function `atomic_switch_perf_msrs':
vmx.c:(.text+0x6b1d4): undefined reference to `perf_guest_get_msrs'

Actually, it's for 3.3. Don't know what I was thinking.

Signature · 1 line
error compiling committee.c: too many arguments to function
Acked-by on v1 1/1
#2 lore raw
In reply to Avi Kivity
Quoted 11 lines · Avi Kivity

PMU virtualization needs to talk to Intel-specific bits of perf; these are only available when CPU_SUP_INTEL=y.

Fixes

arch/x86/built-in.o: In function `atomic_switch_perf_msrs':
vmx.c:(.text+0x6b1d4): undefined reference to `perf_guest_get_msrs'

Thanks.

Quoted 17 lines
---
 arch/x86/kvm/Kconfig |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/kvm/Kconfig +2 -0
index ff5790d..ca4d49e 100644
@@ -52,6 +52,8 @@ config KVM
 config KVM_INTEL
 	tristate "KVM for Intel processors support"
 	depends on KVM
+	# for perf_guest_get_msrs():
+	depends on CPU_SUP_INTEL
 	---help---
 	  Provides support for KVM on Intel processors equipped with the VT
 	  extensions.
Signature · 2 lines
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
#3 lore raw
In reply to Avi Kivity
Quoted 11 lines · Avi Kivity

PMU virtualization needs to talk to Intel-specific bits of perf; these are only available when CPU_SUP_INTEL=y.

Fixes

arch/x86/built-in.o: In function `atomic_switch_perf_msrs':
vmx.c:(.text+0x6b1d4): undefined reference to `perf_guest_get_msrs'

Applied, thanks.