<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/virt, branch v2.6.34-rc4</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/virt?h=v2.6.34-rc4</id>
<link rel='self' href='https://git.amat.us/linux/atom/virt?h=v2.6.34-rc4'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2010-03-30T13:02:32Z</updated>
<entry>
<title>include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h</title>
<updated>2010-03-30T13:02:32Z</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2010-03-24T08:04:11Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5a0e3ad6af8660be21ca98a971cd00f331318c05'/>
<id>urn:sha1:5a0e3ad6af8660be21ca98a971cd00f331318c05</id>
<content type='text'>
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files.  percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.

percpu.h -&gt; slab.h dependency is about to be removed.  Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability.  As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.

  http://userweb.kernel.org/~tj/misc/slabh-sweep.py

The script does the followings.

* Scan files for gfp and slab usages and update includes such that
  only the necessary includes are there.  ie. if only gfp is used,
  gfp.h, if slab is used, slab.h.

* When the script inserts a new include, it looks at the include
  blocks and try to put the new include such that its order conforms
  to its surrounding.  It's put in the include block which contains
  core kernel includes, in the same order that the rest are ordered -
  alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
  doesn't seem to be any matching order.

* If the script can't find a place to put a new include (mostly
  because the file doesn't have fitting include block), it prints out
  an error message indicating which .h file needs to be added to the
  file.

The conversion was done in the following steps.

1. The initial automatic conversion of all .c files updated slightly
   over 4000 files, deleting around 700 includes and adding ~480 gfp.h
   and ~3000 slab.h inclusions.  The script emitted errors for ~400
   files.

2. Each error was manually checked.  Some didn't need the inclusion,
   some needed manual addition while adding it to implementation .h or
   embedding .c file was more appropriate for others.  This step added
   inclusions to around 150 files.

3. The script was run again and the output was compared to the edits
   from #2 to make sure no file was left behind.

4. Several build tests were done and a couple of problems were fixed.
   e.g. lib/decompress_*.c used malloc/free() wrappers around slab
   APIs requiring slab.h to be added manually.

5. The script was run on all .h files but without automatically
   editing them as sprinkling gfp.h and slab.h inclusions around .h
   files could easily lead to inclusion dependency hell.  Most gfp.h
   inclusion directives were ignored as stuff from gfp.h was usually
   wildly available and often used in preprocessor macros.  Each
   slab.h inclusion directive was examined and added manually as
   necessary.

6. percpu.h was updated not to include slab.h.

7. Build test were done on the following configurations and failures
   were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
   distributed build env didn't work with gcov compiles) and a few
   more options had to be turned off depending on archs to make things
   build (like ipr on powerpc/64 which failed due to missing writeq).

   * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
   * powerpc and powerpc64 SMP allmodconfig
   * sparc and sparc64 SMP allmodconfig
   * ia64 SMP allmodconfig
   * s390 SMP allmodconfig
   * alpha SMP allmodconfig
   * um on x86_64 SMP allmodconfig

8. percpu.h modifications were reverted so that it could be applied as
   a separate patch and serve as bisection point.

Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Guess-its-ok-by: Christoph Lameter &lt;cl@linux-foundation.org&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: Lee Schermerhorn &lt;Lee.Schermerhorn@hp.com&gt;
</content>
</entry>
<entry>
<title>KVM: Convert kvm-&gt;requests_lock to raw_spinlock_t</title>
<updated>2010-03-01T15:36:13Z</updated>
<author>
<name>Avi Kivity</name>
<email>avi@redhat.com</email>
</author>
<published>2010-02-18T09:25:22Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=70e335e16882df5b5d6971022e63c3603a1e8c23'/>
<id>urn:sha1:70e335e16882df5b5d6971022e63c3603a1e8c23</id>
<content type='text'>
The code relies on kvm-&gt;requests_lock inhibiting preemption.

Noted by Jan Kiszka.

Signed-off-by: Avi Kivity &lt;avi@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: do not store wqh in irqfd</title>
<updated>2010-03-01T15:36:10Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2010-01-13T17:12:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8b97fb0fcba0e119d539ef6126ddd1d7ba9c007f'/>
<id>urn:sha1:8b97fb0fcba0e119d539ef6126ddd1d7ba9c007f</id>
<content type='text'>
wqh is unused, so we do not need to store it in irqfd anymore

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Avi Kivity &lt;avi@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: cleanup the failure path of KVM_CREATE_IRQCHIP ioctrl</title>
<updated>2010-03-01T15:36:10Z</updated>
<author>
<name>Wei Yongjun</name>
<email>yjwei@cn.fujitsu.com</email>
</author>
<published>2010-02-09T02:33:03Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=72bb2fcd23afe8db53b47e8f9edd736c517ba532'/>
<id>urn:sha1:72bb2fcd23afe8db53b47e8f9edd736c517ba532</id>
<content type='text'>
If we fail to init ioapic device or the fail to setup the default irq
routing, the device register by kvm_create_pic() and kvm_ioapic_init()
remain unregister. This patch fixed to do this.

Signed-off-by: Wei Yongjun &lt;yjwei@cn.fujitsu.com&gt;
Signed-off-by: Avi Kivity &lt;avi@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: kvm-&gt;arch.vioapic should be NULL if kvm_ioapic_init() failure</title>
<updated>2010-03-01T15:36:09Z</updated>
<author>
<name>Wei Yongjun</name>
<email>yjwei@cn.fujitsu.com</email>
</author>
<published>2010-02-09T02:31:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=1ae77badc2504d157800f10a81a58cc9c941e7cb'/>
<id>urn:sha1:1ae77badc2504d157800f10a81a58cc9c941e7cb</id>
<content type='text'>
kvm-&gt;arch.vioapic should be NULL in case of kvm_ioapic_init() failure
due to cannot register io dev.

Signed-off-by: Wei Yongjun &lt;yjwei@cn.fujitsu.com&gt;
Signed-off-by: Avi Kivity &lt;avi@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: Fix Codestyle in virt/kvm/coalesced_mmio.c</title>
<updated>2010-03-01T15:36:09Z</updated>
<author>
<name>Jochen Maes</name>
<email>jochen.maes@sejo.be</email>
</author>
<published>2010-02-08T10:29:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=43db669730743fcc2a74b641ff4d77781eb15bfa'/>
<id>urn:sha1:43db669730743fcc2a74b641ff4d77781eb15bfa</id>
<content type='text'>
Fixed 2 codestyle issues in virt/kvm/coalesced_mmio.c

Signed-off-by: Jochen Maes &lt;jochen.maes@sejo.be&gt;
Signed-off-by: Avi Kivity &lt;avi@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: Introduce kvm_host_page_size</title>
<updated>2010-03-01T15:36:08Z</updated>
<author>
<name>Joerg Roedel</name>
<email>joerg.roedel@amd.com</email>
</author>
<published>2010-01-28T11:37:56Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8f0b1ab6fb045a1324d9435ba00c2940783b0041'/>
<id>urn:sha1:8f0b1ab6fb045a1324d9435ba00c2940783b0041</id>
<content type='text'>
This patch introduces a generic function to find out the
host page size for a given gfn. This function is needed by
the kvm iommu code. This patch also simplifies the x86
host_mapping_level function.

Signed-off-by: Joerg Roedel &lt;joerg.roedel@amd.com&gt;
Signed-off-by: Avi Kivity &lt;avi@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: enable PCI multiple-segments for pass-through device</title>
<updated>2010-03-01T15:36:06Z</updated>
<author>
<name>Zhai, Edwin</name>
<email>edwin.zhai@intel.com</email>
</author>
<published>2010-01-29T06:38:44Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ab9f4ecbb6d39a18e300a0d10a4968c37404aa76'/>
<id>urn:sha1:ab9f4ecbb6d39a18e300a0d10a4968c37404aa76</id>
<content type='text'>
Enable optional parameter (default 0) - PCI segment (or domain) besides
BDF, when assigning PCI device to guest.

Signed-off-by: Zhai Edwin &lt;edwin.zhai@intel.com&gt;
Acked-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
Signed-off-by: Marcelo Tosatti &lt;mtosatti@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: Fix kvm_coalesced_mmio_ring duplicate allocation</title>
<updated>2010-03-01T15:36:03Z</updated>
<author>
<name>Sheng Yang</name>
<email>sheng@linux.intel.com</email>
</author>
<published>2010-01-21T08:20:04Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f0f4b930900ffa8daddb5262522c3e5c67ee1835'/>
<id>urn:sha1:f0f4b930900ffa8daddb5262522c3e5c67ee1835</id>
<content type='text'>
The commit 0953ca73 "KVM: Simplify coalesced mmio initialization"
allocate kvm_coalesced_mmio_ring in the kvm_coalesced_mmio_init(), but
didn't discard the original allocation...

Signed-off-by: Sheng Yang &lt;sheng@linux.intel.com&gt;
Signed-off-by: Marcelo Tosatti &lt;mtosatti@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: fix cleanup_srcu_struct on vm destruction</title>
<updated>2010-03-01T15:36:01Z</updated>
<author>
<name>Marcelo Tosatti</name>
<email>mtosatti@redhat.com</email>
</author>
<published>2010-01-19T14:45:23Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=647492047763c3ee8fe51ecf9a04f39040aa495b'/>
<id>urn:sha1:647492047763c3ee8fe51ecf9a04f39040aa495b</id>
<content type='text'>
cleanup_srcu_struct on VM destruction remains broken:

BUG: unable to handle kernel paging request at ffffffffffffffff
IP: [&lt;ffffffff802533d2&gt;] srcu_read_lock+0x16/0x21
RIP: 0010:[&lt;ffffffff802533d2&gt;]  [&lt;ffffffff802533d2&gt;] srcu_read_lock+0x16/0x21
Call Trace:
 [&lt;ffffffffa05354c4&gt;] kvm_arch_vcpu_uninit+0x1b/0x48 [kvm]
 [&lt;ffffffffa05339c6&gt;] kvm_vcpu_uninit+0x9/0x15 [kvm]
 [&lt;ffffffffa0569f7d&gt;] vmx_free_vcpu+0x7f/0x8f [kvm_intel]
 [&lt;ffffffffa05357b5&gt;] kvm_arch_destroy_vm+0x78/0x111 [kvm]
 [&lt;ffffffffa053315b&gt;] kvm_put_kvm+0xd4/0xfe [kvm]

Move it to kvm_arch_destroy_vm.

Signed-off-by: Marcelo Tosatti &lt;mtosatti@redhat.com&gt;
Reported-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
</content>
</entry>
</feed>
