[Qemu-devel] [PATCH] qemu_vmalloc: align properly for transparent hugepages and KVM

2011-09-05 Thread Avi Kivity
To make good use of transparent hugepages, KVM requires that guest-physical and host-virtual addresses share the low 21 bits (as opposed to just the low 12 bits normally required). Adjust qemu_vmalloc() to honor that requirement. Ignore it for small regions to avoid fragmentation. Signed-off-by:

Re: [Qemu-devel] [PATCH] qemu_vmalloc: align properly for transparent hugepages and KVM

2011-09-05 Thread Jan Kiszka
On 2011-09-05 10:07, Avi Kivity wrote: > To make good use of transparent hugepages, KVM requires that guest-physical > and host-virtual addresses share the low 21 bits (as opposed to just the low > 12 bits normally required). > > Adjust qemu_vmalloc() to honor that requirement. Ignore it for smal

Re: [Qemu-devel] [PATCH] qemu_vmalloc: align properly for transparent hugepages and KVM

2011-09-05 Thread Avi Kivity
On 09/05/2011 01:10 PM, Jan Kiszka wrote: On 2011-09-05 10:07, Avi Kivity wrote: > To make good use of transparent hugepages, KVM requires that guest-physical > and host-virtual addresses share the low 21 bits (as opposed to just the low > 12 bits normally required). > > Adjust qemu_vmalloc()

Re: [Qemu-devel] [PATCH] qemu_vmalloc: align properly for transparent hugepages and KVM

2011-09-09 Thread Anthony Liguori
On 09/05/2011 03:07 AM, Avi Kivity wrote: To make good use of transparent hugepages, KVM requires that guest-physical and host-virtual addresses share the low 21 bits (as opposed to just the low 12 bits normally required). Adjust qemu_vmalloc() to honor that requirement. Ignore it for small reg