<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/Documentation/virtual/kvm/locking.txt, branch linux-5.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-01-09T13:46:12Z</updated>
<entry>
<title>kvm: x86: mmu: Update documentation for fast page fault mechanism</title>
<updated>2017-01-09T13:46:12Z</updated>
<author>
<name>Junaid Shahid</name>
</author>
<published>2016-12-07T00:46:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=63dbe14d39b0505e3260bed92e5f4905f49c09d9'/>
<id>urn:sha1:63dbe14d39b0505e3260bed92e5f4905f49c09d9</id>
<content type='text'>
Add a brief description of the lockless access tracking mechanism
to the documentation of fast page faults in locking.txt.

Signed-off-by: Junaid Shahid &lt;junaids@google.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: hyperv: fix locking of struct kvm_hv fields</title>
<updated>2016-12-16T16:53:38Z</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2016-12-12T09:12:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3f5ad8be3713572f3946b69eb376206153d0ea2d'/>
<id>urn:sha1:3f5ad8be3713572f3946b69eb376206153d0ea2d</id>
<content type='text'>
Introduce a new mutex to avoid an AB-BA deadlock between kvm-&gt;lock and
vcpu-&gt;mutex.  Protect accesses in kvm_hv_setup_tsc_page too, as suggested
by Roman.

Reported-by: Dmitry Vyukov &lt;dvyukov@google.com&gt;
Reviewed-by: Roman Kagan &lt;rkagan@virtuozzo.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: document lock orders</title>
<updated>2016-10-27T09:35:47Z</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2016-10-13T11:10:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=58e3948a87e39289aeda5753e9712092c8ca0745'/>
<id>urn:sha1:58e3948a87e39289aeda5753e9712092c8ca0745</id>
<content type='text'>
This is long overdue, and not really hard.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Message-Id: &lt;1476357057-17899-1-git-send-email-pbonzini@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: x86: Fix typos</title>
<updated>2016-06-14T09:16:28Z</updated>
<author>
<name>Andrea Gelmini</name>
</author>
<published>2016-05-21T12:14:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bb3541f175a977198d128f3a4e13534e019754a3'/>
<id>urn:sha1:bb3541f175a977198d128f3a4e13534e019754a3</id>
<content type='text'>
Signed-off-by: Andrea Gelmini &lt;andrea.gelmini@gelma.net&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: Update Posted-Interrupts Descriptor when vCPU is blocked</title>
<updated>2015-10-01T13:06:53Z</updated>
<author>
<name>Feng Wu</name>
</author>
<published>2015-09-18T14:29:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bf9f6ac8d74969690df1485b33b7c238ca9f2269'/>
<id>urn:sha1:bf9f6ac8d74969690df1485b33b7c238ca9f2269</id>
<content type='text'>
This patch updates the Posted-Interrupts Descriptor when vCPU
is blocked.

pre-block:
- Add the vCPU to the blocked per-CPU list
- Set 'NV' to POSTED_INTR_WAKEUP_VECTOR

post-block:
- Remove the vCPU from the per-CPU list

Signed-off-by: Feng Wu &lt;feng.wu@intel.com&gt;
[Concentrate invocation of pre/post-block hooks to vcpu_block. - Paolo]
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: doc: Fix typo in doc/virtual/kvm</title>
<updated>2013-12-31T19:24:54Z</updated>
<author>
<name>Masanari Iida</name>
</author>
<published>2013-12-21T16:21:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=171800328f6e2443e0e356de5b41fb7e0fff4448'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>KVM: Convert kvm_lock back to non-raw spinlock</title>
<updated>2013-09-30T07:21:51Z</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2013-09-25T11:53:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2f303b74a62fb74983c0a66e2df353be963c527c'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>KVM: protect kvm_usage_count with its own spinlock</title>
<updated>2013-09-30T07:21:46Z</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2013-09-10T10:58:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4a937f96f3a29c58b7edd349d2e4dfac371efdf2'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>KVM: Add documentation for kvm-&gt;srcu lock</title>
<updated>2013-09-24T17:12:12Z</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2013-09-09T15:32:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=519192aaae38e24d6b32d3d55d791fe294981185'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>KVM: MMU: document mmu-lock and fast page fault</title>
<updated>2012-07-11T13:51:23Z</updated>
<author>
<name>Xiao Guangrong</name>
</author>
<published>2012-06-20T08:00:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=58d8b1728ea3da391ef01c43a384ea06ce4b7c8a'/>
<id>urn:sha1: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>
</entry>
</feed>
