[Qemu-devel] Re: [PATCH] fix qruncom compilation problems

2010-12-13 Thread Paolo Bonzini
On 12/11/2010 03:42 PM, Stefano Bonifazi wrote: Surely I do understand you! Your help has been very very useful and appreciated already thank you! May you direct me to somebody who's working on it? Some TCG guru who could understand immediately what's wrong?:) I noticed, far now, that each

[Qemu-devel] RE: [PATCH] fix qruncom compilation problems

2010-12-11 Thread Stefano Bonifazi
-Original Message- From: Paolo Bonzini [mailto:pbonz...@redhat.com] Sent: venerdì 10 dicembre 2010 22:49 To: Stefano Bonifazi Subject: Re: [PATCH] fix qruncom compilation problems For runcom (without the q) this wouldn't work, because it runs the code in vm86 mode. It's possible that

[Qemu-devel] Re: [PATCH] fix qruncom compilation problems

2010-12-10 Thread Paolo Bonzini
On 12/09/2010 06:29 PM, Stefano Bonifazi wrote: how can one think that addresses around zero are free for a mapping?? Addresses around zero are always free, because if they weren't you couldn't detect NULL pointer dereferences reliably. mmap-ing at zero thus is a tricky operation, because

[Qemu-devel] Re: [PATCH] fix qruncom compilation problems

2010-12-10 Thread Stefano Bonifazi
On 12/10/2010 09:53 AM, Paolo Bonzini wrote: On 12/09/2010 06:29 PM, Stefano Bonifazi wrote: how can one think that addresses around zero are free for a mapping?? Addresses around zero are always free, because if they weren't you couldn't detect NULL pointer dereferences reliably. mmap-ing

[Qemu-devel] Re: [PATCH] fix qruncom compilation problems

2010-12-09 Thread Stefano Bonifazi
On 12/08/2010 01:49 PM, Paolo Bonzini wrote: Signed-off-by: Paolo Bonzinipbonz...@redhat.com --- I had this patch lying around but I don't think I ever got qruncom to work completely. Makefile.target |3 ++ tests/Makefile |7 ++-- tests/qruncom.c | 93

[Qemu-devel] Re: [PATCH] fix qruncom compilation problems

2010-12-09 Thread Paolo Bonzini
On 12/08/2010 10:43 PM, Stefano Bonifazi wrote: I've linked qemu-malloc.o and cutils.o together with qruncom.c and I managed to succesfully make it! here the make line: #$(MAKE) -C ../i386-linux-user libqemu.a $(CC) $(CFLAGS) -fomit-frame-pointer $(LDFLAGS) -I../target-i386 -I.. -I../linux-user

[Qemu-devel] Re: [PATCH] fix qruncom compilation problems

2010-12-09 Thread Stefano Bonifazi
On 12/09/2010 08:16 AM, Paolo Bonzini wrote: On 12/08/2010 10:43 PM, Stefano Bonifazi wrote: Anyway running it with a com file as argument gave the error: mmap: Operation not permitted You have to run it as root I think. Paolo Thank you! Running as root worked, though it raises then the