Skip to contentSkip to conversation

linux-next: build failure after merge of the kvm-fixes tree

DISCUSSION Stephen Rothwell 3 participants 3 messages May 26, 2021 – May 27, 2021

Subsystems (5)
x86 KVM Linux-next tree KVM x86 +1 more subsystems
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the kvm-fixes tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

In file included from arch/powerpc/include/asm/kvm_ppc.h:19,
from arch/powerpc/include/asm/dbell.h:17,
from arch/powerpc/kernel/asm-offsets.c:38:
include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
include/linux/kvm_host.h:270:9: error: implicit declaration of function 'single_task_running' [-Werror=implicit-function-declaration]

  270 |  return single_task_running() && !need_resched() && ktime_before(cur, stop);
      |         ^~~~~~~~~~~~~~~~~~~

Caused by commit

85d4c3baeb45 ("KVM: PPC: exit halt polling on need_resched()")

I have used the kvm-fixes tree from next-20210524 again today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 11 lines · Stephen Rothwell

Hi all,

After merging the kvm-fixes tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

In file included from arch/powerpc/include/asm/kvm_ppc.h:19,
from arch/powerpc/include/asm/dbell.h:17,
from arch/powerpc/kernel/asm-offsets.c:38:
include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
include/linux/kvm_host.h:270:9: error: implicit declaration of function 'single_task_running' [-Werror=implicit-function-declaration]

Quoted 8 lines
  270 |  return single_task_running() && !need_resched() && ktime_before(cur, stop);
      |         ^~~~~~~~~~~~~~~~~~~

Caused by commit

85d4c3baeb45 ("KVM: PPC: exit halt polling on need_resched()")

I have used the kvm-fixes tree from next-20210524 again today.

The kvm/master is broken by several patches.

arch/x86/kvm/hyperv.c +0 -0
index 0f6f394..e851671 100644
@@ -1659,7 +1659,7 @@ struct kvm_hv_hcall {
 
 static u64 kvm_hv_flush_tlb(struct kvm_vcpu *vcpu, struct

kvm_hv_hcall *hc, bool ex)
{
- int i, j;

+    int i;
     gpa_t gpa;
     struct kvm *kvm = vcpu->kvm;
     struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu);
arch/x86/kvm/x86.c +0 -0
index 9d095bed..feb9611 100644
@@ -3604,7 +3604,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu,

struct msr_data *msr_info)

          * to ensure backwards-compatible behavior for migration.
          */
         if (msr_info->host_initiated &&
-            kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_TSC_HOST_ACCESS))
+            kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_TSC_HOST_ACCESS)) {
             offset = vcpu->arch.l1_tsc_offset;
             ratio = vcpu->arch.l1_tsc_scaling_ratio;
         } else {
include/linux/kvm_host.h +1 -0
index 18905c9..4273e04 100644
@@ -10,6 +10,7 @@
 #include <linux/spinlock.h>
 #include <linux/signal.h>
 #include <linux/sched.h>
+#include <linux/sched/stat.h>
 #include <linux/bug.h>
 #include <linux/minmax.h>
 #include <linux/mm.h>
maintainer
#2 lore raw
Quoted 15 lines · Wanpeng Li
Quoted 14 lines · Stephen Rothwell

Hi all,

After merging the kvm-fixes tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

In file included from arch/powerpc/include/asm/kvm_ppc.h:19,
from arch/powerpc/include/asm/dbell.h:17,
from arch/powerpc/kernel/asm-offsets.c:38:
include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
include/linux/kvm_host.h:270:9: error: implicit declaration of function 'single_task_running' [-Werror=implicit-function-declaration]

   270 |  return single_task_running() && !need_resched() && ktime_before(cur, stop);
       |         ^~~~~~~~~~~~~~~~~~~
Quoted 7 lines
Quoted 5 lines

Caused by commit

85d4c3baeb45 ("KVM: PPC: exit halt polling on need_resched()")

I have used the kvm-fixes tree from next-20210524 again today.

The kvm/master is broken by several patches.

I made a mess and pushed a bunch of 5.13 patches to it. Apologies everyone, I will rewind kvm/master. If you had checked it out yesterday, be careful to remove anything not belonging to your tree.

Paolo

Quoted 41 lines
arch/x86/kvm/hyperv.c +1 -1
index 0f6f394..e851671 100644
@@ -1659,7 +1659,7 @@ struct kvm_hv_hcall {
 
  static u64 kvm_hv_flush_tlb(struct kvm_vcpu *vcpu, struct
 kvm_hv_hcall *hc, bool ex)
  {
-    int i, j;
+    int i;
      gpa_t gpa;
      struct kvm *kvm = vcpu->kvm;
      struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu);
arch/x86/kvm/x86.c +1 -1
index 9d095bed..feb9611 100644
@@ -3604,7 +3604,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu,
 struct msr_data *msr_info)
           * to ensure backwards-compatible behavior for migration.
           */
          if (msr_info->host_initiated &&
-            kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_TSC_HOST_ACCESS))
+            kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_TSC_HOST_ACCESS)) {
              offset = vcpu->arch.l1_tsc_offset;
              ratio = vcpu->arch.l1_tsc_scaling_ratio;
          } else {
include/linux/kvm_host.h +1 -0
index 18905c9..4273e04 100644
@@ -10,6 +10,7 @@
  #include <linux/spinlock.h>
  #include <linux/signal.h>
  #include <linux/sched.h>
+#include <linux/sched/stat.h>
  #include <linux/bug.h>
  #include <linux/minmax.h>
  #include <linux/mm.h>