[kvm-devel] hugetlbfs not working

2008-03-27 Thread Alexander Graf
Hi, I'm currently trying to get hugetlbfs working on the current git version and am quite puzzled to see it not working. It appears as if the ftruncate call fails: open("/dev/hugetlbfs//kvm.vI3G8z", O_RDWR|O_CREAT|O_EXCL, 0600) = 7 unlink("/dev/hugetlbfs//kvm.vI3G8z")= 0 ftruncate(7, 1572

Re: [kvm-devel] hugetlbfs not working

2008-03-27 Thread Avi Kivity
Alexander Graf wrote: > Hi, > > I'm currently trying to get hugetlbfs working on the current git > version and am quite puzzled to see it not working. It appears as if > the ftruncate call fails: > > open("/dev/hugetlbfs//kvm.vI3G8z", O_RDWR|O_CREAT|O_EXCL, 0600) = 7 > unlink("/dev/hugetlbfs//k

Re: [kvm-devel] hugetlbfs not working

2008-03-27 Thread Alexander Graf
On Mar 27, 2008, at 4:19 PM, Avi Kivity wrote: > Alexander Graf wrote: >> Hi, >> >> I'm currently trying to get hugetlbfs working on the current git >> version and am quite puzzled to see it not working. It appears as >> if the ftruncate call fails: >> >> open("/dev/hugetlbfs//kvm.vI3G8z",

Re: [kvm-devel] hugetlbfs not working

2008-03-27 Thread Anthony Liguori
Alexander Graf wrote: > On Mar 27, 2008, at 4:19 PM, Avi Kivity wrote: > > >> Alexander Graf wrote: >> >>> Hi, >>> >>> I'm currently trying to get hugetlbfs working on the current git >>> version and am quite puzzled to see it not working. It appears as >>> if the ftruncate call fails

Re: [kvm-devel] hugetlbfs not working

2008-03-27 Thread Avi Kivity
Anthony Liguori wrote: > > If you don't bail when ftruncate fails, does it work as expected for > you? Perhaps older versions of hugetlbfs didn't support truncate. If you don't truncate, how can you change the file size? hugetlbfs doesn't support write(). I vaugely recall using ftruncate() o

Re: [kvm-devel] hugetlbfs not working

2008-03-27 Thread Marcelo Tosatti
On Thu, Mar 27, 2008 at 06:09:56PM +0200, Avi Kivity wrote: > Anthony Liguori wrote: > > > > If you don't bail when ftruncate fails, does it work as expected for > > you? Perhaps older versions of hugetlbfs didn't support truncate. > > If you don't truncate, how can you change the file size? h

Re: [kvm-devel] hugetlbfs not working

2008-03-27 Thread Marcelo Tosatti
On Thu, Mar 27, 2008 at 06:09:56PM +0200, Avi Kivity wrote: > Anthony Liguori wrote: > > > > If you don't bail when ftruncate fails, does it work as expected for > > you? Perhaps older versions of hugetlbfs didn't support truncate. > > If you don't truncate, how can you change the file size? h

Re: [kvm-devel] hugetlbfs not working

2008-03-31 Thread Marcelo Tosatti
On Fri, Mar 28, 2008 at 09:41:06AM +0300, Avi Kivity wrote: > >mmap() should fail if anything goes wrong with ftruncate and the file > >length is not extented on tmpfs. > > > >--- vl.c.orig 2008-03-27 18:51:31.0 -0300 > >+++ vl.c2008-03-27 18:52:40.0 -0300 > >@@ -8749,11 +

Re: [kvm-devel] hugetlbfs not working

2008-03-31 Thread Avi Kivity
Marcelo Tosatti wrote: > QEMU/KVM: ftruncate() is not supported by hugetlbfs on older hosts > > Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]> > Applied, thanks. -- error compiling committee.c: too many arguments to function --