Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5616C4707F for ; Thu, 27 May 2021 11:44:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 96C8B613DC for ; Thu, 27 May 2021 11:44:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233936AbhE0LqG (ORCPT ); Thu, 27 May 2021 07:46:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:58270 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233836AbhE0LqF (ORCPT ); Thu, 27 May 2021 07:46:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622115872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5EkUl2AHkjTvyhXvN8pIvnw608I2TQwFWpE2hO80KoI=; b=i1pR+ag4iRdfiHRYmLGJG0H8TlB0IPAD5EoBOCeZEx7INziwR8jX6yOrUFiygTAJyHpvna FcTGDIl9cgPnGzh75vtuq2CoC/uRJBEAZocYep86tDgvmN4m/u2R0YSTCahVKWLMo6OBh5 oCkWYULF45LWRNTdhw1eapaVL4GzkTs= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-92-BkRBNIspOhWWhQct5n74yQ-1; Thu, 27 May 2021 07:44:30 -0400 X-MC-Unique: BkRBNIspOhWWhQct5n74yQ-1 Received: by mail-ej1-f72.google.com with SMTP id mp38-20020a1709071b26b02903df8ccd76fbso1566552ejc.23 for ; Thu, 27 May 2021 04:44:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5EkUl2AHkjTvyhXvN8pIvnw608I2TQwFWpE2hO80KoI=; b=A+oCZZQKeWotHySkhBwZaLAxGEL9N94WvG7/cDhnHr0F/L/zrnYjwr4qMlFy0fS64d IGU3EEbCeX7dIRFppmSeL2+pwY8vsnMNtIm4oy0ocoGssm7OuEIpXve0HLCxu675bjat VwDyDJkEUDGk0W9QQtvJefE1C2fJ5JvsGiL5jqTw7GJp5AVRhlPDz0Qt1J9KE6AxXEzt zJ7gBTN86O7ZXHvvKJXpLhqYkMjsngPEeWBjq4AE3gqX7kwAesPyCxkRO3uglm+xRjfS Hqz0pebZLbQrj6GYiLd/ntQVZ71bntDEZ5Wdr7YZfgm6lCKaZ6xm83ljdRwVlqVgfrMq pTKA== X-Gm-Message-State: AOAM532o1SZTq0e4QM7GenCnhd41ITGeXgmmu7yE62ciTrGA/qoWtBRd VKBCCCIyj/acJTgTj2PjHefBgDH0Nhhy12WC0D7cTHlfhp+yPoLt3l9RE1HiMVD6V3aPdLjqJjv wLeEV28vnfTJ3 X-Received: by 2002:a05:6402:15:: with SMTP id d21mr3710263edu.66.1622115869698; Thu, 27 May 2021 04:44:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWXe1O4j7xdizgAqxvsjX4MSfhJlfA2EVfNnWE/rPIqY6auscC55tvpfp/RD2kuAyi6nXJag== X-Received: by 2002:a05:6402:15:: with SMTP id d21mr3710237edu.66.1622115869444; Thu, 27 May 2021 04:44:29 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id j17sm886750ejv.60.2021.05.27.04.44.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 May 2021 04:44:28 -0700 (PDT) Subject: Re: linux-next: build failure after merge of the kvm-fixes tree To: Wanpeng Li , Stephen Rothwell Cc: KVM , Wanpeng Li , Linux Kernel Mailing List , Linux Next Mailing List References: <20210527084356.12c2784f@canb.auug.org.au> From: Paolo Bonzini Message-ID: Date: Thu, 27 May 2021 13:44:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 27/05/21 06:56, Wanpeng Li wrote: > On Thu, 27 May 2021 at 10:50, Stephen Rothwell wrote: >> >> 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. > > 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 > diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c > index 0f6f394..e851671 100644 > --- a/arch/x86/kvm/hyperv.c > +++ b/arch/x86/kvm/hyperv.c > @@ -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); > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index 9d095bed..feb9611 100644 > --- a/arch/x86/kvm/x86.c > +++ b/arch/x86/kvm/x86.c > @@ -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 { > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > index 18905c9..4273e04 100644 > --- a/include/linux/kvm_host.h > +++ b/include/linux/kvm_host.h > @@ -10,6 +10,7 @@ > #include > #include > #include > +#include > #include > #include > #include >