~ubuntu-branches/ubuntu/lucid/linux-lts-backport-natty/lucid-proposed

« back to all changes in this revision

Viewing changes to virt/kvm/iommu.c

  • Committer: Package Import Robot
  • Author(s): Luis Henriques, Luis Henriques, Andy Whitcroft, Herton Ronaldo Krzesinski, Tim Gardner, Upstream Kernel Changes
  • Date: 2012-05-23 09:43:28 UTC
  • Revision ID: package-import@ubuntu.com-20120523094328-r1feiaqpc22qvxbh
Tags: 2.6.38-15.60~lucid1
[Luis Henriques]

* Release Tracking Bug
  - LP: #1003079

[ Andy Whitcroft ]

* [Config] control.stub is an intermediate product not a dependancy
  - LP: #992414

[ Herton Ronaldo Krzesinski ]

* linux: add Build-Depends for libnewt-dev, to enable perf TUI support
  - LP: #981717

[ Tim Gardner ]

* [Config] perarch and indep tools builds need separate build directories

[ Upstream Kernel Changes ]

* fcaps: clear the same personality flags as suid when fcaps are used
  - LP: #987571
  - CVE-2012-2123
* natty security: fix compile error in commoncap.c
  - LP: #987571
  - CVE-2012-2123
* KVM: Clean up error handling during VCPU creation
  - LP: #971685
  - CVE-2012-1601
* KVM: Ensure all vcpus are consistent with in-kernel irqchip settings
  - LP: #971685
  - CVE-2012-1601
* KVM: unmap pages from the iommu when slots are removed
  - LP: #987569
  - CVE-2012-2121
* NFSv4: include bitmap in nfsv4 get acl data
  - LP: #893147
  - CVE-2011-4131
* hugepages: fix use after free bug in "quota" handling
  - LP: #990368
  - CVE-2012-2133

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
        }
286
286
}
287
287
 
 
288
void kvm_iommu_unmap_pages(struct kvm *kvm, struct kvm_memory_slot *slot)
 
289
{
 
290
        kvm_iommu_put_pages(kvm, slot->base_gfn, slot->npages);
 
291
}
 
292
 
288
293
static int kvm_iommu_unmap_memslots(struct kvm *kvm)
289
294
{
290
295
        int i, idx;
294
299
        slots = kvm_memslots(kvm);
295
300
 
296
301
        for (i = 0; i < slots->nmemslots; i++) {
297
 
                kvm_iommu_put_pages(kvm, slots->memslots[i].base_gfn,
298
 
                                    slots->memslots[i].npages);
 
302
                kvm_iommu_unmap_pages(kvm, &slots->memslots[i]);
299
303
        }
300
304
        srcu_read_unlock(&kvm->srcu, idx);
301
305