Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	kvm@vger.kernel.org, lkml@tlinx.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Michal Marek <mmarek@suse.cz>,
	stable@vger.kernel.org
Subject: Re: [PATCH] compiler-gcc: disable -ftracer for __noclone functions
Date: Thu, 31 Mar 2016 16:39:38 +0800	[thread overview]
Message-ID: <201603311657.a9YmF6yj%fengguang.wu@intel.com> (raw)
In-Reply-To: <1459410252-15531-1-git-send-email-pbonzini@redhat.com>

Hi Paolo,

[auto build test WARNING on v4.6-rc1]
[also build test WARNING on next-20160331]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Paolo-Bonzini/compiler-gcc-disable-ftracer-for-__noclone-functions/20160331-154556
reproduce:
        # apt-get install sparse
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   include/linux/compiler.h:232:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> arch/x86/kvm/vmx.c:8610:13: sparse: attribute '__optimize__': unknown attribute

vim +/__optimize__ +8610 arch/x86/kvm/vmx.c

d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8594  	int i, nr_msrs;
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8595  	struct perf_guest_switch_msr *msrs;
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8596  
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8597  	msrs = perf_guest_get_msrs(&nr_msrs);
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8598  
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8599  	if (!msrs)
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8600  		return;
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8601  
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8602  	for (i = 0; i < nr_msrs; i++)
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8603  		if (msrs[i].host == msrs[i].guest)
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8604  			clear_atomic_switch_msr(vmx, msrs[i].msr);
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8605  		else
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8606  			add_atomic_switch_msr(vmx, msrs[i].msr, msrs[i].guest,
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8607  					msrs[i].host);
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8608  }
d7cd9796 arch/x86/kvm/vmx.c Gleb Natapov    2011-10-05  8609  
a3b5ba49 arch/x86/kvm/vmx.c Lai Jiangshan   2011-02-11 @8610  static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
6aa8b732 drivers/kvm/vmx.c  Avi Kivity      2006-12-10  8611  {
a2fa3e9f drivers/kvm/vmx.c  Gregory Haskins 2007-07-27  8612  	struct vcpu_vmx *vmx = to_vmx(vcpu);
d974baa3 arch/x86/kvm/vmx.c Andy Lutomirski 2014-10-08  8613  	unsigned long debugctlmsr, cr4;
104f226b arch/x86/kvm/vmx.c Avi Kivity      2010-11-18  8614  
104f226b arch/x86/kvm/vmx.c Avi Kivity      2010-11-18  8615  	/* Record the guest's net vcpu time for enforced NMI injections. */
104f226b arch/x86/kvm/vmx.c Avi Kivity      2010-11-18  8616  	if (unlikely(!cpu_has_virtual_nmis() && vmx->soft_vnmi_blocked))
104f226b arch/x86/kvm/vmx.c Avi Kivity      2010-11-18  8617  		vmx->entry_time = ktime_get();
104f226b arch/x86/kvm/vmx.c Avi Kivity      2010-11-18  8618  

:::::: The code at line 8610 was first introduced by commit
:::::: a3b5ba49a8c58d9a578e016523b047467a41e047 KVM: VMX: add the __noclone attribute to vmx_vcpu_run

:::::: TO: Lai Jiangshan <laijs@cn.fujitsu.com>
:::::: CC: Marcelo Tosatti <mtosatti@redhat.com>

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

  reply	other threads:[~2016-03-31  8:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-31  7:44 [PATCH] compiler-gcc: disable -ftracer for __noclone functions Paolo Bonzini
2016-03-31  8:39 ` kbuild test robot [this message]
2018-05-05 17:22 ` Nadav Amit
2018-05-08 17:58   ` Paolo Bonzini
2018-05-08 18:12     ` Nadav Amit

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=201603311657.a9YmF6yj%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@01.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@tlinx.org \
    --cc=mmarek@suse.cz \
    --cc=pbonzini@redhat.com \
    --cc=stable@vger.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