Re: [Qemu-devel] Guest floppy regression hits qemu-kvm, qemu is not affected

2011-11-20 Thread Avi Kivity
On 11/18/2011 04:06 PM, Lucas Meneghel Rodrigues wrote: > Hi guys, > > Today during the last 'sanity' qemu-kvm testing, we've noticed a > recurring problem: guest OS does not see the floppy, making the > windows installs time out. This problem has been extensively discussed > on qemu and qemu is fi

Re: [Qemu-devel] [PATCH v8 1.0] configure: build position independent executables on x86-Linux hosts

2011-11-20 Thread Avi Kivity
On 11/15/2011 08:12 PM, Avi Kivity wrote: > Change the default on x86 Linux hosts to building PIE (position > independent executables); instead of restricting the option to > user-only targets, apply it to all targets. > > In addition, set the relocation sections to read-only (relro) when > availab

Re: [Qemu-devel] Avoiding memory API conversion races

2011-11-20 Thread Avi Kivity
On 11/18/2011 04:05 PM, Benoît Canet wrote: > > I'll do the following leaving omap to Peter and the rest to Avi. > > hw/bonito.c > hw/lm32_sys.c > hw/lm32_timer.c > hw/lm32_uart.c > hw/mcf5206.c > hw/mcf_fec.c > hw/mcf_intc.c > hw/mcf_uart.c > > I already have lm32_timer.c in my tree (not yet comm

[Qemu-devel] [PATCH] creen dump not supported when no console

2011-11-20 Thread Cao,Bing Bu
I have tested the issue use "-vga none -nographic" option. QEMU segment faults. But i think there is no any text and graphic console created in this case. The console[0] is NULL. The vga_hw_screen_dump() should return before console_select(). What do you think? --- console.c |3 +++ 1 file

Re: [Qemu-devel] [PATCH v2] ivshmem: add a new PIO BAR3(Doorbell) besides MMIO BAR0 to reduce notification time

2011-11-20 Thread Avi Kivity
On 11/18/2011 07:50 AM, zanghongy...@huawei.com wrote: > From: Hongyong Zang > > This patch, adds a PIO BAR3 for guest notifying qemu. And we find the new > notification way of PIO BAR3 reduces 30% time in comparison with the original > MMIO BAR0 way. Please update the spec, and split the patch

Re: [Qemu-devel] [PATCH] creen dump not supported when no console

2011-11-20 Thread Paolo Bonzini
On 11/20/2011 10:31 AM, Cao,Bing Bu wrote: +} else { + fprintf(stderr,"no any console,could not screen dump \n"); + return; This should be error_printf. Paolo

Re: [Qemu-devel] Avoiding memory API conversion races

2011-11-20 Thread Avi Kivity
On 11/18/2011 04:38 PM, Peter Maydell wrote: > Incidentally, another cleanup that would be nice: > there are currently two users of sysbus_init_mmio_cb2(): > hw/ppce500_pci.c and hw/sh_pci.c. I think these should be > rewritable to either use one memory region with some > subregions, or to expose

[Qemu-devel] [PATCH] Include zlib.h using #include <>

2011-11-20 Thread Stefan Weil
zlib.h is not a local include file, therefore it should be included using <> instead of "". Signed-off-by: Stefan Weil --- block/vmdk.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index e53a2f0..96f7d5d 100644 --- a/block/vmdk.c +++ b/blo

Re: [Qemu-devel] [PATCH 1/4] xen: introduce mc146818rtcxen

2011-11-20 Thread Avi Kivity
On 11/18/2011 04:54 PM, Anthony Liguori wrote: > > Thinking more about it, I think this entire line of thinking is wrong > (including mine) :-) > > The problem you're trying to solve is that the RTC fires two 1 second > timers regardless of whether the guest is reading the wall clock time, > right?

[Qemu-devel] [PATCH] linux-user: fix QEMU_STRACE=1 segfault

2011-11-20 Thread Alexander Graf
While debugging some issues with QEMU_STRACE I stumbled over segmentation faults that were pretty reproducible. Turns out we tried to treat a normal return value as errno, resulting in an access over array boundaries for the resolution. Fix this by hard-mapping values above valid errnos to the ori

Re: [Qemu-devel] [PATCH] linux-user: fix QEMU_STRACE=1 segfault

2011-11-20 Thread Peter Maydell
On 20 November 2011 12:06, Alexander Graf wrote: > --- a/linux-user/syscall.c > +++ b/linux-user/syscall.c > @@ -711,6 +711,9 @@ static inline int host_to_target_errno(int err) > >  static inline int target_to_host_errno(int err) >  { > +    if (err >= ERRNO_TABLE_SIZE) { > +        return err; >

Re: [Qemu-devel] [PATCH] linux-user: fix QEMU_STRACE=1 segfault

2011-11-20 Thread Alexander Graf
On 20.11.2011, at 16:31, Peter Maydell wrote: > On 20 November 2011 12:06, Alexander Graf wrote: >> --- a/linux-user/syscall.c >> +++ b/linux-user/syscall.c >> @@ -711,6 +711,9 @@ static inline int host_to_target_errno(int err) >> >> static inline int target_to_host_errno(int err) >> { >> +

Re: [Qemu-devel] [PATCH v8 1.0] configure: build position independent executables on x86-Linux hosts

2011-11-20 Thread Blue Swirl
On Sun, Nov 20, 2011 at 09:11, Avi Kivity wrote: > On 11/15/2011 08:12 PM, Avi Kivity wrote: >> Change the default on x86 Linux hosts to building PIE (position >> independent executables); instead of restricting the option to >> user-only targets, apply it to all targets. >> >> In addition, set th

Re: [Qemu-devel] Status of the SH4 / ARM7 emulators

2011-11-20 Thread Andreas Färber
Hello Renato, Am 19.11.2011 22:20, schrieb Renato Utsch: > I am making a dreamcast emulator and I wanted to know the status > of the sh-4 emulator, if it is stable, if it actually works, etc... And > the same for the ARM7-TDMI emulator (if QEMU supports it, it supports?), > because this would save

Re: [Qemu-devel] [PATCH][qemu-iotests] Test loading internal snapshots

2011-11-20 Thread Christoph Hellwig
On Fri, Nov 18, 2011 at 06:36:11PM +0100, Kevin Wolf wrote: > Am 05.08.2011 16:37, schrieb Kevin Wolf: > > Test loading internal snapshots where the L1 table of the snapshot > > is smaller than the current L1 table. > > > > Signed-off-by: Kevin Wolf > > I just noticed that this still isn't merge

Re: [Qemu-devel] Status of the SH4 / ARM7 emulators

2011-11-20 Thread Peter Maydell
On 20 November 2011 18:08, Andreas Färber wrote: > sh4-softmmu has been successfully used to boot Linux on certain boards. > What will remain is for you to add a Dreamcast machine, instantiating > the CPU and devices, and implementing those not available in QEMU today, > such as GD-ROM. How good

Re: [Qemu-devel] Status of the SH4 / ARM7 emulators

2011-11-20 Thread Andreas Färber
Am 19.11.2011 22:53, schrieb Peter Maydell: > We also don't support having multiple CPUs with different architectures > in one emulator: you can have an ARM emulator, or an SH4 emulator, > but not an emulation of a system with both an ARM and an SH4 core. Although I have recently been investigatin

Re: [Qemu-devel] Status of the SH4 / ARM7 emulators

2011-11-20 Thread Peter Maydell
On 20 November 2011 20:51, Andreas Färber wrote: > Am 19.11.2011 22:53, schrieb Peter Maydell: >> We also don't support having multiple CPUs with different architectures > Although I have recently been investigating exactly that combo. Yes, it would be nice to be able to do it cleanly... > * Par

[Qemu-devel] [PATCH] configure: check for EFD_NONBLOCK | EFD_CLOEXEC flags

2011-11-20 Thread Max Filippov
Add check for the EFD_NONBLOCK and EFD_CLOEXEC flags to the CONFIG_EVENTFD test. This fixes the following build failure on Fedora 9: CCevent_notifier.o event_notifier.c: In function `event_notifier_init': event_notifier.c:21: error: `EFD_NONBLOCK' undeclared (first use in this f

[Qemu-devel] linux-user crashing in multi-threaded programs

2011-11-20 Thread Alexander Graf
Howdy, In an adventure to find out why yast2-core fails in its testsuite during build on ARM for us, I dove into the code for a bit and debugged it down to our old friend: multi-threaded TB invalidation. I have a nice test case at http://csgraf.de/tmp/yast2-core.tbz2 which you can easily us

Re: [Qemu-devel] qemu & kernel :address generated are non-uniform

2011-11-20 Thread Mulyadi Santosa
On Fri, Nov 18, 2011 at 21:49, sparsh mittal wrote: > GBrange numberOfAddresses > > 0-0.5---> 3325 > > 0.5-1---> 1253 > > 1-1.5---> 0 > > 1.5-2---> 30 > > 2-2.5---> 0 > > 2.5-3---> 1708 > > 3-3.5---> 10521 > > 3.5-4---> 0 > > 4-4.5--> 15428 Hi... I never observe the above address usage like you

Re: [Qemu-devel] linux-user crashing in multi-threaded programs

2011-11-20 Thread Alexander Graf
On 21.11.2011, at 03:05, Alexander Graf wrote: > Howdy, > > In an adventure to find out why yast2-core fails in its testsuite during > build on ARM for us, I dove into the code for a bit and debugged it down to > our old friend: multi-threaded TB invalidation. > > I have a nice test case at >

Re: [Qemu-devel] [RFC PATCH] vfio: VFIO Driver core framework

2011-11-20 Thread David Gibson
On Fri, Nov 18, 2011 at 01:32:56PM -0700, Alex Williamson wrote: > On Thu, 2011-11-17 at 11:02 +1100, David Gibson wrote: > > On Tue, Nov 15, 2011 at 11:01:28AM -0700, Alex Williamson wrote: > > > On Tue, 2011-11-15 at 17:34 +1100, David Gibson wrote: > > > > On Thu, Nov 03, 2011 at 02:12:24PM -060

[Qemu-devel] UDP patch request

2011-11-20 Thread Kamil Rytarowski
Hello! As a user (not a developer) of GNS3 I ask you to include the patch for UDP. VirtualBox has included it, so it's time for QEMU now. There was discussion about it (p.ex http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg00787.html ) I wish I had it finally for Qemu 1.0. It makes p

[Qemu-devel] [PATCH v2] block: Use bdrv functions to replace file operation in qcow.c

2011-11-20 Thread Li Zhi Hui
Since common file operation functions lack of error detection and use much more I/O syscalls, so change them to bdrv series functions and reduce I/O request. v2: avoid malloc a large memory v1: convert file operation functions to bdrv functions and reduce I/O request. Signed-off-by: Li Zhi Hui