<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/virt/kvm/assigned-dev.c, branch v2.6.33.2</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: Fix possible circular locking in kvm_vm_ioctl_assign_device()</title>
<updated>2009-12-27T15:36:31+00:00</updated>
<author>
<name>Sheng Yang</name>
<email>sheng@linux.intel.com</email>
</author>
<published>2009-12-15T02:28:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=fae3a3536a6fecedebd49fa847f810e599bfb132'/>
<id>fae3a3536a6fecedebd49fa847f810e599bfb132</id>
<content type='text'>
One possible order is:

KVM_CREATE_IRQCHIP ioctl(took kvm-&gt;lock) -&gt; kvm_iobus_register_dev() -&gt;
down_write(kvm-&gt;slots_lock).

The other one is in kvm_vm_ioctl_assign_device(), which take kvm-&gt;slots_lock
first, then kvm-&gt;lock.

Update the comment of lock order as well.

Observe it due to kernel locking debug warnings.

Cc: stable@kernel.org
Signed-off-by: Sheng Yang &lt;sheng@linux.intel.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>
One possible order is:

KVM_CREATE_IRQCHIP ioctl(took kvm-&gt;lock) -&gt; kvm_iobus_register_dev() -&gt;
down_write(kvm-&gt;slots_lock).

The other one is in kvm_vm_ioctl_assign_device(), which take kvm-&gt;slots_lock
first, then kvm-&gt;lock.

Update the comment of lock order as well.

Observe it due to kernel locking debug warnings.

Cc: stable@kernel.org
Signed-off-by: Sheng Yang &lt;sheng@linux.intel.com&gt;
Signed-off-by: Avi Kivity &lt;avi@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>KVM: Move assigned device code to own file</title>
<updated>2009-12-03T07:32:09+00:00</updated>
<author>
<name>Avi Kivity</name>
<email>avi@redhat.com</email>
</author>
<published>2009-08-26T11:57:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=bfd99ff5d483b11c32bca49fbff7a5ac59038b0a'/>
<id>bfd99ff5d483b11c32bca49fbff7a5ac59038b0a</id>
<content type='text'>
Signed-off-by: Avi Kivity &lt;avi@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Avi Kivity &lt;avi@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
