Re: [kvm-devel] hugetlbfs

2008-04-10 Thread Yunfeng Zhao
Dor Laor wrote: On Wed, 2008-04-09 at 17:26 +0800, Yunfeng Zhao wrote: Hi, I meet problem to get hugetlbfs work on my test box. If i added --mem-path to qemu, the guest will always fail to boot with the error messages below printed on qemu console:

[kvm-devel] hugetlbfs

2008-04-09 Thread Yunfeng Zhao
Hi, I meet problem to get hugetlbfs work on my test box. If i added --mem-path to qemu, the guest will always fail to boot with the error messages below printed on qemu console: ### ata0 master: ATA-0 Hard-Disk ( 0 MBytes) ata1 master: ATAPI-0 Device

Re: [kvm-devel] hugetlbfs

2008-04-09 Thread Dor Laor
On Wed, 2008-04-09 at 17:26 +0800, Yunfeng Zhao wrote: Hi, I meet problem to get hugetlbfs work on my test box. If i added --mem-path to qemu, the guest will always fail to boot with the error messages below printed on qemu console: ### ata0 master:

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 +8749,7 @@

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

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 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() on

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? hugetlbfs