mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Tianyu Lan <Tianyu.Lan@microsoft.com>
Cc: kbuild-all@01.org, Tianyu Lan <Tianyu.Lan@microsoft.com>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>,
	"rkrcmar@redhat.com" <rkrcmar@redhat.com>,
	"tglx@linutronix.de" <tglx@linutronix.de>,
	"mingo@redhat.com" <mingo@redhat.com>,
	"hpa@zytor.com" <hpa@zytor.com>,
	"x86@kernel.org" <x86@kernel.org>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Michael Kelley (EOSG)" <Michael.H.Kelley@microsoft.com>,
	KY Srinivasan <kys@microsoft.com>,
	"vkuznets@redhat.com" <vkuznets@redhat.com>
Subject: Re: [PATCH 2/4] KVM: Add tlb remote flush callback in kvm_x86_ops.
Date: Tue, 3 Jul 2018 10:39:57 +0800	[thread overview]
Message-ID: <201807031005.TSMG3NzT%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180702141653.88936-3-Tianyu.Lan@microsoft.com>

[-- Attachment #1: Type: text/plain, Size: 2888 bytes --]

Hi Tianyu,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on kvm/linux-next]
[also build test ERROR on v4.18-rc3 next-20180702]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Tianyu-Lan/KVM-x86-hyper-V-Introduce-PV-guest-address-space-mapping-flush-support/20180703-012046
base:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_flush_remote_tlbs':
>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:265:6: error: 'kvm_x86_ops' undeclared (first use in this function); did you mean 'kvm_xive_ops'?
     if (kvm_x86_ops->tlb_remote_flush &&
         ^~~~~~~~~~~
         kvm_xive_ops
   arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:265:6: note: each undeclared identifier is reported only once for each function it appears in

vim +265 arch/powerpc/kvm/../../../virt/kvm/kvm_main.c

   255	
   256	#ifndef CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL
   257	void kvm_flush_remote_tlbs(struct kvm *kvm)
   258	{
   259		long dirty_count;
   260	
   261		/*
   262		 * Call tlb_remote_flush first and go back old way when
   263		 * return failure.
   264		 */
 > 265		if (kvm_x86_ops->tlb_remote_flush &&
   266		    !kvm_x86_ops->tlb_remote_flush(kvm))
   267			return;
   268	
   269		/*
   270		 * Read tlbs_dirty before setting KVM_REQ_TLB_FLUSH in
   271		 * kvm_make_all_cpus_request.
   272		 */
   273		dirty_count = smp_load_acquire(&kvm->tlbs_dirty);
   274	
   275		/*
   276		 * We want to publish modifications to the page tables before reading
   277		 * mode. Pairs with a memory barrier in arch-specific code.
   278		 * - x86: smp_mb__after_srcu_read_unlock in vcpu_enter_guest
   279		 * and smp_mb in walk_shadow_page_lockless_begin/end.
   280		 * - powerpc: smp_mb in kvmppc_prepare_to_enter.
   281		 *
   282		 * There is already an smp_mb__after_atomic() before
   283		 * kvm_make_all_cpus_request() reads vcpu->mode. We reuse that
   284		 * barrier here.
   285		 */
   286		if (kvm_make_all_cpus_request(kvm, KVM_REQ_TLB_FLUSH))
   287			++kvm->stat.remote_tlb_flush;
   288		cmpxchg(&kvm->tlbs_dirty, dirty_count, 0);
   289	}
   290	EXPORT_SYMBOL_GPL(kvm_flush_remote_tlbs);
   291	#endif
   292	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 23809 bytes --]

  reply	other threads:[~2018-07-03  2:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-02 14:17 [PATCH 0/4] KVM/x86/hyper-V: Introduce PV guest address space mapping flush support Tianyu Lan
2018-07-02 14:17 ` [PATCH 1/4] X86/Hyper-V: Add flush HvFlushGuestPhysicalAddressSpace hypercall support Tianyu Lan
2018-07-02 14:17 ` [PATCH 2/4] KVM: Add tlb remote flush callback in kvm_x86_ops Tianyu Lan
2018-07-03  2:39   ` kbuild test robot [this message]
2018-07-02 14:17 ` [PATCH 3/4] KVM/VMX: Add identical ept table pointer check Tianyu Lan
2018-07-02 15:09   ` Vitaly Kuznetsov
2018-07-04  6:18     ` Tianyu Lan
     [not found]   ` <20180702172950.GA27827@linux.intel.com>
2018-07-04  6:24     ` Tianyu Lan
2018-07-02 14:17 ` [PATCH 4/4] KVM/x86: Add tlb_remote_flush callback support for vmcs Tianyu Lan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201807031005.TSMG3NzT%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=Michael.H.Kelley@microsoft.com \
    --cc=Tianyu.Lan@microsoft.com \
    --cc=hpa@zytor.com \
    --cc=kbuild-all@01.org \
    --cc=kvm@vger.kernel.org \
    --cc=kys@microsoft.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=vkuznets@redhat.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®