[PATCH] usb: core: config.c: use buffer on stack rather then on heap
usb_get_configuration() uses a temporary buffer allocated on heap to read USB configuration descriptor. The buffer is just nine bytes an so it is a waste to allocate it on heap where it can be allocated on stack with the rest of local variables. This simplifies the code and minimises memory usage. Signed-off-b... 17 Apr 2010 09:40
[PATCH] virtio: initialize earlier
Move initialization of the virtio framework before the initialization of mtd, so that block2mtd can be used on virtio-based block devices. Addresses https://bugzilla.kernel.org/show_bug.cgi?id=15644 Signed-off-by: Stijn Tintel <stijn(a)linux-ipv6.be> --- drivers/Makefile | 2 +- 1 files changed, 1 insertion... 17 Apr 2010 08:34
[PATCH] srcu: add missing header file
When I was writing a module, I hit this compile error. include/linux/srcu.h:39: error: field 'mutex' has incomplete type include/linux/srcu.h:41: error: field 'dep_map' has incomplete type mutex.h is missed in srcu.h, but srcu.h uses struct mutex, so this patch adds this missing header file. __percpu is defi... 17 Apr 2010 07:29
perf & kvm: Enhance perf to collect KVM guest os statistics from host side
Hi Yanmin, On Fri, Apr 16, 2010 at 03:34:35PM +0800, Zhang, Yanmin wrote: Below is the kernel patch to enable perf to collect guest os statistics. Joerg, Would you like to add support on svm? I don't know the exact point to trigger NMI to host with svm. Yes I will do that, thanks for all the w... 17 Apr 2010 07:29
drivers/uio/uio.c: DMA mapping, interrupt extensions, etc.
On Thu, Apr 15, 2010 at 01:55:29PM -0700, Tom Lyon wrote: + down(&idev->gate); + if (idev->listeners == 0) { /* first open */ + if (idev->pmaster && !iommu_found() && !capable(CAP_SYS_RAWIO)) { + up(&idev->gate); + return -EPERM; + } + /* reset to known state if we can */ + if (idev->... 17 Apr 2010 07:29
ipc semaphores: order wakeups based on waiter CPU
Hi Chris, On 04/12/2010 08:49 PM, Chris Mason wrote: @@ -599,6 +622,13 @@ again: list_splice_init(&new_pending,&work_list); goto again; } + + list_sort(NULL,&wake_list, list_comp); + while (!list_empty(&wake_list)) { + q = list_entry(wake_list.next, struct sem_queue, list); + ... 17 Apr 2010 07:29
[PATCH 2/2] kvm: set new alias directly when old one is not valid
When old one is not valid, we don't need set the flags KVM_ALIAS_INVALID. Because no one {will use}/{be using} it. Signed-off-by: Lai Jiangshan <laijs(a)cn.fujitsu.com> --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index db8d7fe..6120e33 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -... 17 Apr 2010 06:24
[PATCH 1/2] kvm: simplify kvm_vm_ioctl_set_memory_alias
It's just time waste if we free a object and allocate it immediately. Signed-off-by: Lai Jiangshan <laijs(a)cn.fujitsu.com> --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 24cd0ee..db8d7fe 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2479,15 +2479,8 @@ static int kvm_vm_ioctl_set... 17 Apr 2010 06:24
[PATCH] kvm: don not fail when cache is sufficient
cleanup: don not fail when cache is sufficient Signed-off-by: Lai Jiangshan <laijs(a)cn.fujitsu.com> --- diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index c8c074c..90f666e 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -304,7 +304,7 @@ static int mmu_topup_memory_cache(struct kvm_mmu_memo... 17 Apr 2010 05:20
[PATCH] kvm x86 mmu: simplify kvm_mmu_unlink_parents()
mmu_page_remove_parent_pte() does much maintenance works, but kvm_mmu_unlink_parents() unlink all parents, so such maintenance works are not need. This patch simplifies the works of kvm_mmu_unlink_parents() by unlinking parents without so many maintenance works. Signed-off-by: Lai Jiangshan <laijs(a)cn.fujitsu... 17 Apr 2010 05:20