[Qemu-devel] [PATCH] Give sdl-config higher priority than pkg-config

2010-02-13 Thread Blue Swirl
On OpenBSD, pkg-config sdl --cflags forgets to add -I/usr/local/include which is needed for iconv.h (included from SDL.h). This makes SDL detection fail. Try sdl-config first, only if it fails try pkg-config. Signed-off-by: Blue Swirl --- configure |8 1 files changed, 4 insertions

[Qemu-devel] [PATCH] Add cpu model configuration support..

2010-02-13 Thread john cooper
[Revision to fix build breakage for a few targets. This does not yet reflect Andre's suggestion to coalesce all config file flags into one space, the implementation of which depends somewhat upon acceptance of the proposed config file syntax modification and is left as a TBD for now.] This is a

Re: [Qemu-devel] [PATCH] Add cpu model configuration support.. (resend)

2010-02-13 Thread john cooper
Anthony Liguori wrote: > On 02/01/2010 01:02 PM, john cooper wrote: >> [target-x86_64.conf was unintentionally omitted from the earlier patch] >> >> This is a reimplementation of prior versions which adds >> the ability to define cpu models for contemporary processors. >> The added models are likew

[Qemu-devel] Re: [PATCH] Seabios - read e820 table from qemu_cfg

2010-02-13 Thread Kevin O'Connor
On Mon, Feb 08, 2010 at 11:31:40AM +0100, Jes Sorensen wrote: > On 01/28/10 05:39, Kevin O'Connor wrote: > >As a side note, it should probably do the e820 map check even for qemu > >users (ie, not just kvm). > > Hi Kevin, > > Here is an updated version of the patch which does the e820 read > unco

[Qemu-devel] [PATCH] USB HID does not support Set_Idle

2010-02-13 Thread Kevin O'Connor
I found that the QEMU USB keyboard support does not work properly with the Set_Idle command. Once a non-zero value is given to Set_Idle, then the keyboard reports an event on every poll - not based on the time issued in the Set_Idle command. I changed the code (see patch below) and it works for m

Re: [Qemu-devel] [PATCH] seabios: acpi: fix memory leak in build_srat().

2010-02-13 Thread Kevin O'Connor
On Fri, Feb 12, 2010 at 11:36:20AM +0900, Isaku Yamahata wrote: > numadata() is allocated for temporal use, but not freed. > free it. Thanks. -Kevin

[Qemu-devel] Re: [BUG] Regression: readonly raw images no longer work

2010-02-13 Thread Paolo Bonzini
On 02/13/2010 10:40 PM, Stefan Weil wrote: This command used to work, but fails now: $ i386-softmmu/qemu -snapshot /dev/sda qemu: could not open disk image /dev/sda: Permission denied $ ls -l /dev/sda brw-rw-r-- 1 root disk 8, 0 13. Feb 08:55 /dev/sda The original file of a snapshot needs only

[Qemu-devel] Re: [PATCH 2/2] tcg-sparc: Implement setcond, setcond2.

2010-02-13 Thread Blue Swirl
On Tue, Feb 9, 2010 at 11:37 PM, Richard Henderson wrote: > --- >  tcg/sparc/tcg-target.c |  126 > >  1 files changed, 126 insertions(+), 0 deletions(-) Something's wrong with the patch: CCsparc-bsd-user/tcg/tcg.o In file included from /src

[Qemu-devel] [BUG] Regression: readonly raw images no longer work

2010-02-13 Thread Stefan Weil
This command used to work, but fails now: $ i386-softmmu/qemu -snapshot /dev/sda qemu: could not open disk image /dev/sda: Permission denied $ ls -l /dev/sda brw-rw-r-- 1 root disk 8, 0 13. Feb 08:55 /dev/sda The original file of a snapshot needs only read access, but QEMU tries read/write acces

[Qemu-devel] Re: [PATCH 0/2] simplify global register save/restore

2010-02-13 Thread Paolo Bonzini
On 02/13/2010 09:57 PM, Blue Swirl wrote: On Sat, Feb 13, 2010 at 10:26 PM, Paolo Bonzini wrote: On 02/13/2010 06:58 PM, Blue Swirl wrote: V9 ABI gives more registers to application use. Except that glibc uses those---in theory, as I see it, it should be compiled with fixed g2 and g3 to lea

[Qemu-devel] Re: [PATCH 0/2] simplify global register save/restore

2010-02-13 Thread Blue Swirl
On Sat, Feb 13, 2010 at 10:26 PM, Paolo Bonzini wrote: > On 02/13/2010 06:58 PM, Blue Swirl wrote: >> >> V9 ABI gives more registers to application use. > > Except that glibc uses those---in theory, as I see it, it should be compiled > with fixed g2 and g3 to leave them to the application.  I get

[Qemu-devel] Re: [PATCH 0/2] simplify global register save/restore

2010-02-13 Thread Paolo Bonzini
On 02/13/2010 06:58 PM, Blue Swirl wrote: V9 ABI gives more registers to application use. Except that glibc uses those---in theory, as I see it, it should be compiled with fixed g2 and g3 to leave them to the application. I get it now. It may be possible to make the workaround a big less u

Re: [Qemu-devel] qemu-system-ppc -m g3beige -hda is setting /dev/hdc on Linux.

2010-02-13 Thread Rob Landley
On Saturday 13 February 2010 06:04:03 Alexander Graf wrote: > > Exactly, that's the issue to fix here, make DBDMA work with CD-ROM so we > > can get rid of the cmd64x controller. > > Speaking of which - in my PPC64 enabling series I use MacIO for all 4 IDE > devices. At least with recent kernels, L

Re: [Qemu-devel] qemu-system-ppc -m g3beige -hda is setting /dev/hdc on Linux.

2010-02-13 Thread Rob Landley
On Saturday 13 February 2010 04:28:44 Alexander Graf wrote: > On 13.02.2010, at 09:02, Rob Landley wrote: > > The -hda, -hdb, -hdc, and -hdd command line options for g3beige don't > > match the order the kernel assigns the drives. > > > > The reason is that the Linux kernel always initializes the

Re: [Qemu-devel] [PATCH 0/2] simplify global register save/restore

2010-02-13 Thread Blue Swirl
On Thu, Feb 11, 2010 at 1:26 AM, Paolo Bonzini wrote: > Since b567b38 (target-arm: remove T0 and T1, 2009-10-16) the only global > register that is actually used is AREG0, so the complexity of > hostregs_helper.h is unwarranted. > > Let's just say that env should be the only global register.  AREG

[Qemu-devel] Re: [PATCH 0/4] qemu-kvm: prepare for adding eventfd usage to upstream

2010-02-13 Thread Marcelo Tosatti
On Thu, Feb 11, 2010 at 12:09:12AM +0100, Paolo Bonzini wrote: > This patch series morphs the code in qemu-kvm's eventfd so that it looks > like the code in upstream qemu. Patch 4 is not yet in upstream QEMU, > I'm submitting it first to qemu-kvm to avoid conflicts. > > Paolo Bonzini (4): > mor

Re: [Qemu-devel] qemu-system-ppc -m g3beige -hda is setting /dev/hdc on Linux.

2010-02-13 Thread Aurelien Jarno
On Sat, Feb 13, 2010 at 01:04:03PM +0100, Alexander Graf wrote: > > On 13.02.2010, at 12:58, Aurelien Jarno wrote: > > > On Sat, Feb 13, 2010 at 11:28:44AM +0100, Alexander Graf wrote: > >> > >> On 13.02.2010, at 09:02, Rob Landley wrote: > >> > >>> The -hda, -hdb, -hdc, and -hdd command line o

Re: [Qemu-devel] qemu-system-ppc -m g3beige -hda is setting /dev/hdc on Linux.

2010-02-13 Thread Alexander Graf
On 13.02.2010, at 12:58, Aurelien Jarno wrote: > On Sat, Feb 13, 2010 at 11:28:44AM +0100, Alexander Graf wrote: >> >> On 13.02.2010, at 09:02, Rob Landley wrote: >> >>> The -hda, -hdb, -hdc, and -hdd command line options for g3beige don't match >>> the order the kernel assigns the drives. >>>

Re: [Qemu-devel] qemu-system-ppc -m g3beige -hda is setting /dev/hdc on Linux.

2010-02-13 Thread Aurelien Jarno
On Sat, Feb 13, 2010 at 11:28:44AM +0100, Alexander Graf wrote: > > On 13.02.2010, at 09:02, Rob Landley wrote: > > > The -hda, -hdb, -hdc, and -hdd command line options for g3beige don't match > > the order the kernel assigns the drives. > > > > The reason is that the Linux kernel always init

[Qemu-devel] Re: Qemu does not pass pressed caps lock to client

2010-02-13 Thread Paolo Bonzini
On 02/12/2010 09:49 PM, Dustin Kirkland wrote: I looked at the original Debian Bug, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=317010 The libsdl1.2 package in Ubuntu is no longer carrying that patch, debian/patches/005_lock_keys.diff. So I don't think that's quite the cause of this. The

[Qemu-devel] [PATCH 2/2] net/macvtap: add vhost support

2010-02-13 Thread Arnd Bergmann
This adds support for passing a macvtap file descriptor into vhost-net, much like we already do for tun/tap. Most of the new code is taken from the respective patch in the tun driver and may get consolidated in the future. Signed-off-by: Arnd Bergmann --- drivers/net/macvtap.c | 98 +

[Qemu-devel] [PATCH 1/2] macvtap: rework object lifetime rules

2010-02-13 Thread Arnd Bergmann
The original macvtap code has a number of problems resulting from the use of RCU for protecting the access to struct macvtap_queue from open files. This includes - need for GFP_ATOMIC allocations for skbs - potential deadlocks when copy_*_user sleeps - inability to work with vhost-net Changing th

Re: [Qemu-devel] qemu-system-ppc -m g3beige -hda is setting /dev/hdc on Linux.

2010-02-13 Thread Alexander Graf
On 13.02.2010, at 09:02, Rob Landley wrote: > The -hda, -hdb, -hdc, and -hdd command line options for g3beige don't match > the order the kernel assigns the drives. > > The reason is that the Linux kernel always initializes the cmd646 driver > before the pmac driver, thus if there's a cmd646

[Qemu-devel] Re: [PATCH] pci: introduce get_info_quirk callback.

2010-02-13 Thread Blue Swirl
On Fri, Feb 12, 2010 at 10:10 PM, Blue Swirl wrote: > On Fri, Feb 12, 2010 at 3:34 PM, Isaku Yamahata > wrote: >> On Fri, Feb 12, 2010 at 02:54:59PM +0200, Michael S. Tsirkin wrote: >>> On Fri, Feb 12, 2010 at 11:31:34AM +0900, Isaku Yamahata wrote: >>> > This patch fixes 525e05147d5a3bdc08caa42

[Qemu-devel] qemu-system-ppc -m g3beige -hda is setting /dev/hdc on Linux.

2010-02-13 Thread Rob Landley
The -hda, -hdb, -hdc, and -hdd command line options for g3beige don't match the order the kernel assigns the drives. The reason is that the Linux kernel always initializes the cmd646 driver before the pmac driver, thus if there's a cmd646 it gets /dev/hda and /dev/hdb, and the pmac gets /dev/h