On Mon, Mar 01, 2010 at 08:25:08PM -0300, Marcelo Tosatti wrote:
> Hi Paul,
>
> Thank you for reviewing.
>
> On Sun, Feb 28, 2010 at 01:28:16AM +, Paul Brook wrote:
> > IMHO it would be better to check the mem_path != NULL here, rather that
> > burying the check in file_ram_alloc.
> >
> > >
Hi Paul,
Thank you for reviewing.
On Sun, Feb 28, 2010 at 01:28:16AM +, Paul Brook wrote:
> IMHO it would be better to check the mem_path != NULL here, rather that
> burying the check in file_ram_alloc.
>
> >+if (memory < hpagesize) {
> >+return NULL;
> >+}
>
> Ah, so it's
>+/*
>+ * ftruncate is not supported by hugetlbfs in older
>+ * hosts, so don't bother checking for errors.
>+ * If anything goes wrong with it under other filesystems,
>+ * mmap will fail.
>+ */
>+if (ftruncate(fd, memory))
>+ perror("ftruncate");
Code does not m
Port qemu-kvm's -mem-path and -mem-prealloc options. These are useful
for backing guest memory with huge pages via hugetlbfs.
Signed-off-by: Marcelo Tosatti
CC: john cooper
Index: qemu-kvm/cpu-all.h
===
--- qemu-kvm.orig/cpu-all.h