Hi David,
One build adjustment when integrating this onto my v7.3-based tree:
static_cpu_has() is no longer available to this caller. I changed the
decode-assist test to cpu_feature_enabled(), matching the surrounding
SVM code:
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
--- a/arch/x86/kvm/svm/svm.c
+++ b/arch/x86/kvm/svm/svm.c
@@ -2094,7 +2094,7 @@ static int npf_interception(struct kvm_vcpu *vcpu)
(vcpu->run->memory_fault.flags & KVM_MEMORY_EXIT_FLAG_PLANE_PROT)) {
unsigned int len = 0;
- if (static_cpu_has(X86_FEATURE_DECODEASSISTS) &&
+ if (cpu_feature_enabled(X86_FEATURE_DECODEASSISTS) &&
svm->vmcb->control.insn_len &&
x86_decode_emulated_instruction(vcpu, 0,
svm->vmcb->control.insn_bytes,
This is a newer-base integration adjustment, rather than a claim that
the original v7.1-rc7-based posting fails to build.
Thanks,
Sriram