<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/Documentation/virtual/kvm/locking.txt, branch v3.14.4</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>KVM: doc: Fix typo in doc/virtual/kvm</title>
<updated>2013-12-31T19:24:54+00:00</updated>
<author>
<name>Masanari Iida</name>
<email>standby24x7@gmail.com</email>
</author>
<published>2013-12-21T16:21:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=171800328f6e2443e0e356de5b41fb7e0fff4448'/>
<id>171800328f6e2443e0e356de5b41fb7e0fff4448</id>
<content type='text'>
Correct spelling typo in Documentations/virtual/kvm

Signed-off-by: Masanari Iida &lt;standby24x7@gmail.com&gt;
Acked-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Signed-off-by: Marcelo Tosatti &lt;mtosatti@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Correct spelling typo in Documentations/virtual/kvm

Signed-off-by: Masanari Iida &lt;standby24x7@gmail.com&gt;
Acked-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Signed-off-by: Marcelo Tosatti &lt;mtosatti@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>KVM: Convert kvm_lock back to non-raw spinlock</title>
<updated>2013-09-30T07:21:51+00:00</updated>
<author>
<name>Paolo Bonzini</name>
<email>pbonzini@redhat.com</email>
</author>
<published>2013-09-25T11:53:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=2f303b74a62fb74983c0a66e2df353be963c527c'/>
<id>2f303b74a62fb74983c0a66e2df353be963c527c</id>
<content type='text'>
In commit e935b8372cf8 ("KVM: Convert kvm_lock to raw_spinlock"),
the kvm_lock was made a raw lock.  However, the kvm mmu_shrink()
function tries to grab the (non-raw) mmu_lock within the scope of
the raw locked kvm_lock being held.  This leads to the following:

BUG: sleeping function called from invalid context at kernel/rtmutex.c:659
in_atomic(): 1, irqs_disabled(): 0, pid: 55, name: kswapd0
Preemption disabled at:[&lt;ffffffffa0376eac&gt;] mmu_shrink+0x5c/0x1b0 [kvm]

Pid: 55, comm: kswapd0 Not tainted 3.4.34_preempt-rt
Call Trace:
 [&lt;ffffffff8106f2ad&gt;] __might_sleep+0xfd/0x160
 [&lt;ffffffff817d8d64&gt;] rt_spin_lock+0x24/0x50
 [&lt;ffffffffa0376f3c&gt;] mmu_shrink+0xec/0x1b0 [kvm]
 [&lt;ffffffff8111455d&gt;] shrink_slab+0x17d/0x3a0
 [&lt;ffffffff81151f00&gt;] ? mem_cgroup_iter+0x130/0x260
 [&lt;ffffffff8111824a&gt;] balance_pgdat+0x54a/0x730
 [&lt;ffffffff8111fe47&gt;] ? set_pgdat_percpu_threshold+0xa7/0xd0
 [&lt;ffffffff811185bf&gt;] kswapd+0x18f/0x490
 [&lt;ffffffff81070961&gt;] ? get_parent_ip+0x11/0x50
 [&lt;ffffffff81061970&gt;] ? __init_waitqueue_head+0x50/0x50
 [&lt;ffffffff81118430&gt;] ? balance_pgdat+0x730/0x730
 [&lt;ffffffff81060d2b&gt;] kthread+0xdb/0xe0
 [&lt;ffffffff8106e122&gt;] ? finish_task_switch+0x52/0x100
 [&lt;ffffffff817e1e94&gt;] kernel_thread_helper+0x4/0x10
 [&lt;ffffffff81060c50&gt;] ? __init_kthread_worker+0x

After the previous patch, kvm_lock need not be a raw spinlock anymore,
so change it back.

Reported-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Cc: kvm@vger.kernel.org
Cc: gleb@redhat.com
Cc: jan.kiszka@siemens.com
Reviewed-by: Gleb Natapov &lt;gleb@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In commit e935b8372cf8 ("KVM: Convert kvm_lock to raw_spinlock"),
the kvm_lock was made a raw lock.  However, the kvm mmu_shrink()
function tries to grab the (non-raw) mmu_lock within the scope of
the raw locked kvm_lock being held.  This leads to the following:

BUG: sleeping function called from invalid context at kernel/rtmutex.c:659
in_atomic(): 1, irqs_disabled(): 0, pid: 55, name: kswapd0
Preemption disabled at:[&lt;ffffffffa0376eac&gt;] mmu_shrink+0x5c/0x1b0 [kvm]

Pid: 55, comm: kswapd0 Not tainted 3.4.34_preempt-rt
Call Trace:
 [&lt;ffffffff8106f2ad&gt;] __might_sleep+0xfd/0x160
 [&lt;ffffffff817d8d64&gt;] rt_spin_lock+0x24/0x50
 [&lt;ffffffffa0376f3c&gt;] mmu_shrink+0xec/0x1b0 [kvm]
 [&lt;ffffffff8111455d&gt;] shrink_slab+0x17d/0x3a0
 [&lt;ffffffff81151f00&gt;] ? mem_cgroup_iter+0x130/0x260
 [&lt;ffffffff8111824a&gt;] balance_pgdat+0x54a/0x730
 [&lt;ffffffff8111fe47&gt;] ? set_pgdat_percpu_threshold+0xa7/0xd0
 [&lt;ffffffff811185bf&gt;] kswapd+0x18f/0x490
 [&lt;ffffffff81070961&gt;] ? get_parent_ip+0x11/0x50
 [&lt;ffffffff81061970&gt;] ? __init_waitqueue_head+0x50/0x50
 [&lt;ffffffff81118430&gt;] ? balance_pgdat+0x730/0x730
 [&lt;ffffffff81060d2b&gt;] kthread+0xdb/0xe0
 [&lt;ffffffff8106e122&gt;] ? finish_task_switch+0x52/0x100
 [&lt;ffffffff817e1e94&gt;] kernel_thread_helper+0x4/0x10
 [&lt;ffffffff81060c50&gt;] ? __init_kthread_worker+0x

After the previous patch, kvm_lock need not be a raw spinlock anymore,
so change it back.

Reported-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Cc: kvm@vger.kernel.org
Cc: gleb@redhat.com
Cc: jan.kiszka@siemens.com
Reviewed-by: Gleb Natapov &lt;gleb@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>KVM: protect kvm_usage_count with its own spinlock</title>
<updated>2013-09-30T07:21:46+00:00</updated>
<author>
<name>Paolo Bonzini</name>
<email>pbonzini@redhat.com</email>
</author>
<published>2013-09-10T10:58:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4a937f96f3a29c58b7edd349d2e4dfac371efdf2'/>
<id>4a937f96f3a29c58b7edd349d2e4dfac371efdf2</id>
<content type='text'>
The VM list need not be protected by a raw spinlock.  Separate the
two so that kvm_lock can be made non-raw.

Cc: kvm@vger.kernel.org
Cc: gleb@redhat.com
Cc: jan.kiszka@siemens.com
Reviewed-by: Gleb Natapov &lt;gleb@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The VM list need not be protected by a raw spinlock.  Separate the
two so that kvm_lock can be made non-raw.

Cc: kvm@vger.kernel.org
Cc: gleb@redhat.com
Cc: jan.kiszka@siemens.com
Reviewed-by: Gleb Natapov &lt;gleb@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>KVM: Add documentation for kvm-&gt;srcu lock</title>
<updated>2013-09-24T17:12:12+00:00</updated>
<author>
<name>Thomas Huth</name>
<email>thuth@linux.vnet.ibm.com</email>
</author>
<published>2013-09-09T15:32:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=519192aaae38e24d6b32d3d55d791fe294981185'/>
<id>519192aaae38e24d6b32d3d55d791fe294981185</id>
<content type='text'>
This patch documents the kvm-&gt;srcu lock (using the information from
a mail which has been posted by Marcelo Tosatti to the kvm mailing
list some months ago, see the following URL for details:
http://www.mail-archive.com/kvm@vger.kernel.org/msg90040.html )

Signed-off-by: Thomas Huth &lt;thuth@linux.vnet.ibm.com&gt;
Reviewed-by: Xiao Guangrong &lt;xiaoguangrong@linux.vnet.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch documents the kvm-&gt;srcu lock (using the information from
a mail which has been posted by Marcelo Tosatti to the kvm mailing
list some months ago, see the following URL for details:
http://www.mail-archive.com/kvm@vger.kernel.org/msg90040.html )

Signed-off-by: Thomas Huth &lt;thuth@linux.vnet.ibm.com&gt;
Reviewed-by: Xiao Guangrong &lt;xiaoguangrong@linux.vnet.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>KVM: MMU: document mmu-lock and fast page fault</title>
<updated>2012-07-11T13:51:23+00:00</updated>
<author>
<name>Xiao Guangrong</name>
<email>xiaoguangrong@linux.vnet.ibm.com</email>
</author>
<published>2012-06-20T08:00:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=58d8b1728ea3da391ef01c43a384ea06ce4b7c8a'/>
<id>58d8b1728ea3da391ef01c43a384ea06ce4b7c8a</id>
<content type='text'>
Document fast page fault and mmu-lock in locking.txt

Signed-off-by: Xiao Guangrong &lt;xiaoguangrong@linux.vnet.ibm.com&gt;
Signed-off-by: Avi Kivity &lt;avi@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Document fast page fault and mmu-lock in locking.txt

Signed-off-by: Xiao Guangrong &lt;xiaoguangrong@linux.vnet.ibm.com&gt;
Signed-off-by: Avi Kivity &lt;avi@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Move kvm, uml, and lguest subdirectories under a common "virtual" directory, I.E:</title>
<updated>2011-05-06T16:22:02+00:00</updated>
<author>
<name>Rob Landley</name>
<email>rlandley@parallels.com</email>
</author>
<published>2011-05-06T16:22:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ed16648eb5b86917f0b90bdcdbc857202da72f90'/>
<id>ed16648eb5b86917f0b90bdcdbc857202da72f90</id>
<content type='text'>
  cd Documentation
  mkdir virtual
  git mv kvm uml lguest virtual

Signed-off-by: Rob Landley &lt;rlandley@parallels.com&gt;
Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  cd Documentation
  mkdir virtual
  git mv kvm uml lguest virtual

Signed-off-by: Rob Landley &lt;rlandley@parallels.com&gt;
Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
