This prevents an information leak from the host to the vmm and the guest. Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
diff -X /home/avi/kvm/linux-2.6/Documentation/dontdiff --exclude=Makefile -ru /home/avi/kvm/linux-2.6/drivers/kvm/kvm_main.c /home/avi/kvm-release/kernel/kvm_main.c --- linux-2.6/drivers/kvm/kvm_main.c 2006-11-30 10:59:57.000000000 +0200 +++ linux-2.6/drivers/kvm/kvm_main.c 2006-11-30 14:26:29.000000000 +0200 @@ -620,7 +620,8 @@ memset(new.phys_mem, 0, npages * sizeof(struct page *)); for (i = 0; i < npages; ++i) { - new.phys_mem[i] = alloc_page(GFP_HIGHUSER); + new.phys_mem[i] = alloc_page(GFP_HIGHUSER + | __GFP_ZERO); if (!new.phys_mem[i]) goto out_free; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/