Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp178690pxk; Wed, 2 Sep 2020 18:32:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgNaXdaLW7H893jxS3EOts3n7YdssGzlUuWrtHIh+f8MdKvG1NaJG1U/TiweY1CuwpPKdl X-Received: by 2002:a17:906:4b18:: with SMTP id y24mr851389eju.471.1599096767160; Wed, 02 Sep 2020 18:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599096767; cv=none; d=google.com; s=arc-20160816; b=nqxYeMklhq06XjCU0GwCzfLkKm3F8113Ga7ScwULREFc2j55DNsttW8yiyCtwWv01h gscmwQ2C+hE1KcCww2ojkhsTCE1dOlP0ZV9CAG1MqYvTPVxBhSl8xBOFdzE0C0TppMyl yyYvTbukrIIQf0X568zXPMp+oVPp6yyLhy808ZxRzZ9j3PjOKWzYVQqRDrPDsWuBVI5F ueTgXRhldizkl6LGxXk30Pj6zASVU6ixzKQgXzHU4BCSFn9d959uvxgwKxuEQwaOgrhb mlIAyauJVhKIPvGoeR/RTfOaTKPIce0hltbDeSPu73IGxJT0ylVhYAfpcWZQ83fZqEYq inoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=1UF8ZswLm2YxPJUQw7iNkdBHKwOAXGZ5uov9qTxwmRc=; b=k1Q5v99HoMRg7A4GApGNn0rhy+3joHN3U6aF5RusmdvGtJwvY4lUsUJXMsmyNLbjaJ PD4vkAI4CfTORQdBt8nAKC+wlyFXG56BQxnkyJ/mTqR/4z0f2WF87VhN+0SueIu8NCJ/ BZmYLTU7EV3Gv2gyb37qZsXhPkhU9EoGFTgK70EaMLo4RCYDAwpwxpAVKUosnKR7h8FT asPEGZV3CoYUG5SYIykEDNKVlTXg3GcDaAR20U+wos/bcgjrx5rfkLjXQtkroJvf7Uou JBM8SXG+8YQFuY1mKjpyVtXduYpqzpC6LDZ6lcn7rgRVfCUNAXsCGzWlPh+O9u7Fv7oS 7w5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c0yR4ztO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ks17si819461ejb.204.2020.09.02.18.32.22; Wed, 02 Sep 2020 18:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c0yR4ztO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726821AbgICBbv (ORCPT + 99 others); Wed, 2 Sep 2020 21:31:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726177AbgICBbt (ORCPT ); Wed, 2 Sep 2020 21:31:49 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BE4FC061245; Wed, 2 Sep 2020 18:31:49 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id c142so865468pfb.7; Wed, 02 Sep 2020 18:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1UF8ZswLm2YxPJUQw7iNkdBHKwOAXGZ5uov9qTxwmRc=; b=c0yR4ztOj4dfTuQZ8tjWP/FbwDQwfjTWhGH1SMjiqIQAJ8TFCNmeixm4EMJMZP5t7F aSppoxWlKq552Zel3apcxSqpZFWL6rG6hCN6Y//bRlAmYPYwsY/9Tk38sv0J5wqpuijv C+DC+BUIUfbcuRn6f+oH5rQ+vKkizIhZQwpXX+FzD0Het1xcUUYfd5pBh06FIj095Zfd zcDdcghrcrid58fKddqk5TwYHX8ZHEVR+2++v3se8FcA+H82K6xOEGEj88boIKfDQ+JT lt6Sr7eJdNycbFAXumlV8ZiZo2D0Dk3jg7FmdmWUDYXBu1m0BAMb302hBIgA6KkkzCYU vb+A== 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=1UF8ZswLm2YxPJUQw7iNkdBHKwOAXGZ5uov9qTxwmRc=; b=kG/iJVYuKNjpt/mJFx5KocABPBJ+YNnGphFTKqBdSCuOndH0uh25OMQhNTg3Lsy8HE RODboWtQYE3MtlR3OZZvKR7cHgEEGGvnvTohmyWSJozlZHP/PNI3kD3r2vA2X5jS27rQ zgz1PyUimn4tx/EvZeFZ29sDCVOyg64IpfxJ6o/LtjohAJW/v924GimaYjb2mTwSFJ60 osRmX0c6yTHZ3xgQzkCJdrX2SVqp3h47HWDh+9kI85j966fpsqNsfEMCq+ejsVl5D+ui DcbPY3wfukSTgcFw9529u34rIrk/4SvtS4qF17lS96RCM2aCQIHyC/lvv+zD3AiQHQ7E MyAA== X-Gm-Message-State: AOAM532bT9mWxg1LZFlIzYFZMdAwP8p118WedvBVhFqpOVGwlCunt9Wk 0Q8e5IsSNCPk0SilGH8Plg== X-Received: by 2002:a62:3814:: with SMTP id f20mr1227163pfa.23.1599096709093; Wed, 02 Sep 2020 18:31:49 -0700 (PDT) Received: from [127.0.0.1] ([103.7.29.9]) by smtp.gmail.com with ESMTPSA id y29sm834242pfq.207.2020.09.02.18.31.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Sep 2020 18:31:48 -0700 (PDT) Subject: Re: [PATCH] KVM: Check the allocation of pv cpu mask To: kernel test robot , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "x86@kernel.org" Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, "hpa@zytor.com" , "bp@alien8.de" , "mingo@redhat.com" , tglx@linutronix.de, joro@8bytes.org, jmattson@google.com, "wanpengli@tencent.com" References: <202009020129.H90h8RdM%lkp@intel.com> From: Haiwei Li Message-ID: Date: Thu, 3 Sep 2020 09:31:38 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <202009020129.H90h8RdM%lkp@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/9/2 01:35, kernel test robot wrote: > Hi Haiwei, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on kvm/linux-next] > [also build test ERROR on linus/master v5.9-rc3 next-20200828] > [cannot apply to linux/master vhost/linux-next] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > > url: https://github.com/0day-ci/linux/commits/Haiwei-Li/KVM-Check-the-allocation-of-pv-cpu-mask/20200901-195412 > base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next > config: x86_64-randconfig-a011-20200901 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c10e63677f5d20f18010f8f68c631ddc97546f7d) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install x86_64 cross compiling tool for clang build > # apt-get install binutils-x86-64-linux-gnu > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > >>> arch/x86/kernel/kvm.c:801:35: error: use of undeclared identifier 'kvm_send_ipi_mask_allbutself' > apic->send_IPI_mask_allbutself = kvm_send_ipi_mask_allbutself; > ^ > 1 error generated. THX, i will fix and resend. > > # https://github.com/0day-ci/linux/commit/13dd13ab0aefbb5c31bd8681831e6a11ac381509 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Haiwei-Li/KVM-Check-the-allocation-of-pv-cpu-mask/20200901-195412 > git checkout 13dd13ab0aefbb5c31bd8681831e6a11ac381509 > vim +/kvm_send_ipi_mask_allbutself +801 arch/x86/kernel/kvm.c > > 791 > 792 if (alloc) > 793 for_each_possible_cpu(cpu) { > 794 if (!zalloc_cpumask_var_node( > 795 per_cpu_ptr(&__pv_cpu_mask, cpu), > 796 GFP_KERNEL, cpu_to_node(cpu))) { > 797 goto zalloc_cpumask_fail; > 798 } > 799 } > 800 > > 801 apic->send_IPI_mask_allbutself = kvm_send_ipi_mask_allbutself; > 802 pv_ops.mmu.flush_tlb_others = kvm_flush_tlb_others; > 803 return 0; > 804 > 805 zalloc_cpumask_fail: > 806 kvm_free_pv_cpu_mask(); > 807 return -ENOMEM; > 808 } > 809 arch_initcall(kvm_alloc_cpumask); > 810 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org >