Re: [Qemu-devel] Win2k host problem with {get,free}{addr,name}info()

2010-09-19 Thread Joe Ross
On Wednesday, September 15, 2010, Anthony Liguori wrote: > Win2k is EOL so I don't think it's useful for us to support it as a host.  So > any type of patch is just going to add additional complexity for very little > real gain. > While Win2k probably isn't likely to be used in a virtualized se

[Qemu-devel]ask for help

2010-09-19 Thread ly
i want to modify the register allocation algorithms in the qemu.(x86->mios) maybe i want to change the cpu register map on the host. for example, map the %eax to the s7 directly to reduce the memory access. i am a binginner with the qemu,how to start this work? thank you.

Re: [Qemu-devel] asking for your help

2010-09-19 Thread Mulyadi Santosa
Hi... I just lend a small help, hopefully it helps... On Sun, Sep 19, 2010 at 17:56, 海峰 陈 wrote: > > Dear friends, > > I'm a student and i will do some work about QEMU memory management > mechanism. However, i am a > > freshman, i need friends to give me some suggestion or send some

[Qemu-devel] [PATCH 5/8] tap: Add stub for Haiku

2010-09-19 Thread Andreas Färber
Adapted from AIX code. Signed-off-by: Andreas Färber --- Makefile.objs |1 + net/tap-haiku.c | 61 +++ 2 files changed, 62 insertions(+), 0 deletions(-) create mode 100644 net/tap-haiku.c diff --git a/Makefile.objs b/Makefile.objs ind

[Qemu-devel] [PATCH 6/8] slirp: Silence warning on Haiku

2010-09-19 Thread Andreas Färber
Haiku has O_BINARY in fcntl.h. Signed-off-by: Andreas Färber Cc: Jan Kiszka --- slirp/slirp.h |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/slirp/slirp.h b/slirp/slirp.h index 3a5d592..6c7488c 100644 --- a/slirp/slirp.h +++ b/slirp/slirp.h @@ -24,7 +24,9 @@ typedef

[Qemu-devel] [FYI 7/8] qemu_malloc: Use areas on Haiku for sizes > 1 MiB

2010-09-19 Thread Andreas Färber
Works around a calloc() SEGV in Haiku's libroot. Cf. http://dev.haiku-os.org/ticket/6637 Ported to HEAD based on a patch by Michael "mmlr" Lotz. Also consider the limit when reallocating. Cc: Michael Lotz --- configure |1 + qemu-malloc.c | 53 +

[Qemu-devel] [PATCH 1/8] configure: Add basic support for Haiku

2010-09-19 Thread Andreas Färber
From: Andreas Färber For compatibility with BeOS, Haiku's error codes are negative whereas recent POSIX versions require them to be positive. As spotted by François, some parts of QEMU code rely on this, so use a mapper library to convert them to positive ones. Cc: François Revol Cc: Ingo Weinh

[Qemu-devel] [PATCH 3/8] Haiku doesn't have libm

2010-09-19 Thread Andreas Färber
Math functions are integrated into Haiku's libroot. Signed-off-by: Andreas Färber --- Makefile.target |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Makefile.target b/Makefile.target index a4e80b1..296f252 100644 --- a/Makefile.target +++ b/Makefile.target @@ -31,7 +31

[Qemu-devel] [FYI 8/8] ui: Haiku frontend

2010-09-19 Thread Andreas Färber
Since Haiku is still in development and raw builds don't contain the SDL or a VNC client, a native frontend is convenient. mmlr had maintained a basic one for BeOS/Haiku until the kqemu drop. The code has been ported to HEAD but is not yet fully updated to match CODING_STYLE. Cc: Michael Lotz Ha

[Qemu-devel] [PATCH 4/8] nbd: Haiku has _IO() in its BSD compatibility layer

2010-09-19 Thread Andreas Färber
Signed-off-by: Andreas Färber --- nbd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/nbd.c b/nbd.c index 011b50f..d4c0ab2 100644 --- a/nbd.c +++ b/nbd.c @@ -23,7 +23,7 @@ #ifndef _WIN32 #include #endif -#ifdef __sun__ +#if defined(__sun__) || defined(__HAIKU__) #

[Qemu-devel] [PATCH 2/8] configure: Don't rely on special pthreads library

2010-09-19 Thread Andreas Färber
Haiku has pthreads integrated into its libroot.so library. No linker arguments are needed for it, so don't fail if -lpthread and similar don't link. Signed-off-by: Andreas Färber --- configure | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/configure b/

[Qemu-devel] [PATCH 0/8] Add Haiku host support

2010-09-19 Thread Andreas Färber
Hello, The following patch series together with qemu_madvise() allows to build and run QEMU on Haiku, using GCC 4.x. Patches 1-5 add support for Haiku hosts to build ppc-softmmu. They are based on qemu_madvise() v7, since Haiku does not have madvise(), but they do not depend on it themselves so c

Re: [Qemu-devel] Re: Problem with virtio

2010-09-19 Thread Frans de Boer
On 09/19/2010 05:53 PM, Michael S. Tsirkin wrote: > On Sat, Sep 18, 2010 at 11:13:12PM +0200, Frans de Boer wrote: > >> On 09/17/2010 10:10 AM, Frans de Boer wrote: >> >>> On 09/17/2010 01:40 AM, Luiz Capitulino wrote: >>> >>> On Thu, 16 Sep 2010 23:49:51 +0200 Frans de

Re: [Qemu-devel] [PATCH] mingw: add version information to the executables

2010-09-19 Thread Stefan Weil
Could it be that the patch lines were wrapped by your mailer? I cannot apply it here. Regards, Stefan Am 19.09.2010 10:42, schrieb Blue Swirl: Add QEMU version information to the executables, based on earlier work by C. W. Betts and Robert Riebisch. Signed-off-by: Blue Swirl --- Makefile

Re: [Qemu-devel] ACPI error when mapping a 2GB BAR w/ 4GB of RAM

2010-09-19 Thread Avi Kivity
On 09/17/2010 10:00 PM, Cam Macdonell wrote: After fixing the resource_size_t return value with pci_resource_alignment, I see one other strange behaviour only when using 4GB of RAM and a 2GB BAR. I haven't found any other combination of RAM/BAR size that triggers this bug. I am using 2.6.36-rc

Re: [Qemu-devel] Re: ACPI error when mapping a 2GB BAR w/ 4GB of RAM

2010-09-19 Thread Avi Kivity
On 09/17/2010 11:45 PM, Cam Macdonell wrote: > It seems most likely...< 2GB also means<= 1GB (which would fit in > the hole). Although, I have to admit, I'm not sure how seabios handles > the hole nowadays. > > What about 2GB with 32bit BAR? The bios seems to ignore it and the guest can't

Re: [Qemu-devel] Win2k host problem with {get,free}{addr,name}info()

2010-09-19 Thread Blue Swirl
On Wed, Sep 15, 2010 at 7:25 PM, Anthony Liguori wrote: > On 09/15/2010 02:11 PM, Blue Swirl wrote: >> >> Hi, >> >> I tried to test QEMU on Win2k, but there are run time errors because >> of missing {get,free}{addr,name}info() functions. After adding dummy >> defines in place, there are no more er

[Qemu-devel] Re: [PATCH] new parameter boot=on|off for "-net nic" and "-device" NIC devices

2010-09-19 Thread Michael S. Tsirkin
On Tue, Sep 14, 2010 at 05:46:55PM +0200, Bernhard Kohl wrote: > This patch was motivated by the following use case: In our system > the VMs usually have 4 NICs, any combination of virtio-net-pci and > pci-assign NIC devices. The VMs boot via gPXE preferably over the > pci-assign devices. > > Ther

[Qemu-devel] Re: Problem with virtio

2010-09-19 Thread Michael S. Tsirkin
On Sat, Sep 18, 2010 at 11:13:12PM +0200, Frans de Boer wrote: > On 09/17/2010 10:10 AM, Frans de Boer wrote: > > On 09/17/2010 01:40 AM, Luiz Capitulino wrote: > > > >> On Thu, 16 Sep 2010 23:49:51 +0200 > >> Frans de Boer wrote: > >> > >> > >> > >>> Dear reader, > >>> > >>> Using qemu

Re: [Qemu-devel] [PATCH] e1000: Pad short frames to minimum size (60 bytes)

2010-09-19 Thread Michael S. Tsirkin
On Sun, Sep 19, 2010 at 02:04:55PM +0200, Edgar E. Iglesias wrote: > On Sun, Sep 19, 2010 at 01:18:01PM +0200, Michael S. Tsirkin wrote: > > On Sun, Sep 19, 2010 at 07:36:51AM +0100, Stefan Hajnoczi wrote: > > > On Sat, Sep 18, 2010 at 10:27 PM, Edgar E. Iglesias > > > wrote: > > > > This doesn't

Re: [Qemu-devel] [PATCH] e1000: Pad short frames to minimum size (60 bytes)

2010-09-19 Thread Edgar E. Iglesias
On Sun, Sep 19, 2010 at 01:18:01PM +0200, Michael S. Tsirkin wrote: > On Sun, Sep 19, 2010 at 07:36:51AM +0100, Stefan Hajnoczi wrote: > > On Sat, Sep 18, 2010 at 10:27 PM, Edgar E. Iglesias > > wrote: > > > This doesn't look right. AFAIK, MAC's dont pad on receive. > > > > I agree. NICs that do

Re: [Qemu-devel] Re: [PATCH v2 2/9] pcie: helper functions for pcie extended capability.

2010-09-19 Thread Michael S. Tsirkin
On Sun, Sep 19, 2010 at 01:11:21PM +0900, Isaku Yamahata wrote: > On Wed, Sep 15, 2010 at 03:05:13PM +0200, Michael S. Tsirkin wrote: > > On Wed, Sep 15, 2010 at 02:50:01PM +0900, Isaku Yamahata wrote: > > > On Wed, Sep 08, 2010 at 01:31:22PM +0300, Michael S. Tsirkin wrote: > > > > > + > > > > > +

[Qemu-devel] Re: [PATCH v3 05/13] pcie: helper functions for pcie capability and extended capability.

2010-09-19 Thread Michael S. Tsirkin
On Sun, Sep 19, 2010 at 01:56:23PM +0900, Isaku Yamahata wrote: > On Wed, Sep 15, 2010 at 02:43:10PM +0200, Michael S. Tsirkin wrote: > > > +/*** > > > + * pci express capability helper functions > > > + */ > > > +void pcie_not

Re: [Qemu-devel] [PATCH] e1000: Pad short frames to minimum size (60 bytes)

2010-09-19 Thread Michael S. Tsirkin
On Sun, Sep 19, 2010 at 07:36:51AM +0100, Stefan Hajnoczi wrote: > On Sat, Sep 18, 2010 at 10:27 PM, Edgar E. Iglesias > wrote: > > This doesn't look right. AFAIK, MAC's dont pad on receive. > > I agree. NICs that do padding will do it on transmit, not receive. > Anything coming in on the wire s

[Qemu-devel] asking for your help

2010-09-19 Thread 海峰 陈
Dear  friends,       I'm a student and i will do some work about QEMU memory management mechanism. However, i am a   freshman, i need  friends to give  me some suggestion or send some helpfull documentation to me. Thanks.           My English is poor,maybe there are some mist

Re: [Qemu-devel] [PATCH v3 00/15] GCC warning flags

2010-09-19 Thread Blue Swirl
On Sun, Sep 19, 2010 at 9:52 AM, Andreas Färber wrote: > Hi Blue, > > Some of the warnings currently enabled are applicable only to C and > Objective-C code, but gcc warns for C++: > > cc1plus: warning: command line option "-Wold-style-definition" is valid for > C/ObjC but not for C++ > cc1plus: w

[Qemu-devel] [PATCH v7] Introduce qemu_madvise()

2010-09-19 Thread Andreas Färber
From: Andreas Färber vl.c has a Sun-specific hack to supply a prototype for madvise(), but the call site has apparently moved to arch_init.c. Haiku doesn't implement madvise() in favor of posix_madvise(). OpenBSD and Solaris 10 don't implement posix_madvise() but madvise(). Check for madvise()

Re: [Qemu-devel] [PATCH v3 00/15] GCC warning flags

2010-09-19 Thread Andreas Färber
Hi Blue, Some of the warnings currently enabled are applicable only to C and Objective-C code, but gcc warns for C++: cc1plus: warning: command line option "-Wold-style-definition" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wold-style-declaration" is valid

Re: [Qemu-devel] [PATCH] Cocoa: Avoid missing prototype warnings for qemu_main

2010-09-19 Thread Andreas Färber
Am 11.09.2010 um 11:55 schrieb Andreas Färber: In vl.c main is redefined to qemu_main but no prototype is available. Move it into qemu-common.h since it is needed in ui/cocoa.m, too. Adjust the call sites to the signature used in vl.c. Signed-off-by: Andreas Färber Ping? Should I issue a pul

Re: [Qemu-devel] [PATCH] trace: Fix user emulator dependency on trace objects

2010-09-19 Thread Andreas Färber
Am 12.09.2010 um 17:21 schrieb Andreas Färber: On a clean build, after generating trace.h, make would recurse into *-*-user without a clue how to build ../trace.o (added to $(obj-y) in Makefile.target) since its generation rule is in the main Makefile. The softmmus are seemingly unaffected b

[Qemu-devel] [PATCH] mingw: add version information to the executables

2010-09-19 Thread Blue Swirl
Add QEMU version information to the executables, based on earlier work by C. W. Betts and Robert Riebisch. Signed-off-by: Blue Swirl --- Makefile | 10 +++--- Makefile.objs |1 + configure | 12 version.rc| 28 4 files changed,