All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Cc: Avi Kivity <avi@redhat.com>, LKML <linux-kernel@vger.kernel.org>,
	KVM <kvm@vger.kernel.org>
Subject: Re: [PATCH v3 1/3] KVM: fix rcu usage warning in kvm_arch_vcpu_ioctl_set_sregs()
Date: Wed, 19 Jan 2011 16:13:47 -0200	[thread overview]
Message-ID: <20110119181347.GA13142@amt.cnet> (raw)
In-Reply-To: <4D3673A7.4090402@cn.fujitsu.com>

On Wed, Jan 19, 2011 at 01:16:23PM +0800, Xiao Guangrong wrote:
> On 01/12/2011 03:39 PM, Xiao Guangrong wrote:
> > Fix:
> > 
> > [ 1001.499596] ===================================================
> > [ 1001.499599] [ INFO: suspicious rcu_dereference_check() usage. ]
> > [ 1001.499601] ---------------------------------------------------
> > [ 1001.499604] include/linux/kvm_host.h:301 invoked rcu_dereference_check() without protection!
> > 	......
> > [ 1001.499636] Pid: 6035, comm: qemu-system-x86 Not tainted 2.6.37-rc6+ #62
> > [ 1001.499638] Call Trace:
> > [ 1001.499644]  [] lockdep_rcu_dereference+0x9d/0xa5
> > [ 1001.499653]  [] gfn_to_memslot+0x8d/0xc8 [kvm]
> > [ 1001.499661]  [] gfn_to_hva+0x16/0x3f [kvm]
> > [ 1001.499669]  [] kvm_read_guest_page+0x1e/0x5e [kvm]
> > [ 1001.499681]  [] kvm_read_guest_page_mmu+0x53/0x5e [kvm]
> > [ 1001.499699]  [] load_pdptrs+0x3f/0x9c [kvm]
> > [ 1001.499705]  [] ? vmx_set_cr0+0x507/0x517 [kvm_intel]
> > [ 1001.499717]  [] kvm_arch_vcpu_ioctl_set_sregs+0x1f3/0x3c0 [kvm]
> > [ 1001.499727]  [] kvm_vcpu_ioctl+0x6a5/0xbc5 [kvm]
> > 
> > Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
> 
> Ping ...?

Applied this fix. For the make_all_cpus_request optimization, can you
show numbers with this new version? Because now there is LOCK# similarly
to the spinlock.


  reply	other threads:[~2011-01-19 18:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-12  7:39 [PATCH v3 1/3] KVM: fix rcu usage warning in kvm_arch_vcpu_ioctl_set_sregs() Xiao Guangrong
2011-01-12  7:40 ` [PATCH v3 2/3] KVM: send IPI to vcpu only when it's in guest mode Xiao Guangrong
2011-01-12  9:54   ` Nadav Har'El
2011-01-12  9:59     ` Avi Kivity
2011-01-12  7:41 ` [PATCH v3 3/3] KVM: make make_all_cpus_request() lockless Xiao Guangrong
2011-01-19  5:16 ` [PATCH v3 1/3] KVM: fix rcu usage warning in kvm_arch_vcpu_ioctl_set_sregs() Xiao Guangrong
2011-01-19 18:13   ` Marcelo Tosatti [this message]
2011-01-20  3:03     ` Xiao Guangrong
2011-01-20 15:27       ` Marcelo Tosatti
2011-01-27  2:35         ` Xiao Guangrong
2011-01-27 13:15         ` Avi Kivity

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=20110119181347.GA13142@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xiaoguangrong@cn.fujitsu.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.