Re: [Qemu-devel] [PATCH v9 11/15] target-or32: Add system instructions

2012-07-15 Thread Blue Swirl
On Sun, Jul 15, 2012 at 12:39 AM, Jia Liu wrote: > Hi Blue > > On Sat, Jul 14, 2012 at 10:42 PM, Blue Swirl wrote: >> On Sat, Jul 14, 2012 at 2:08 PM, Jia Liu wrote: >>> Hi Max >>> >>> On Sat, Jul 14, 2012 at 9:49 PM, Max Filippov wrote: >> I don't think so, please check for example target-

Re: [Qemu-devel] [QEMU PATCH 2/7] hw/apic.c: rename bit functions to not conflict with bitops.h

2012-07-15 Thread Gleb Natapov
On Sat, Jul 14, 2012 at 09:09:23AM +, Blue Swirl wrote: > On Fri, Jul 13, 2012 at 6:07 PM, Eduardo Habkost wrote: > > On Thu, Jul 12, 2012 at 07:24:35PM +, Blue Swirl wrote: > >> On Tue, Jul 10, 2012 at 8:22 PM, Eduardo Habkost > >> wrote: > >> > Signed-off-by: Eduardo Habkost > >> > >>

Re: [Qemu-devel] [PATCH v9 11/15] target-or32: Add system instructions

2012-07-15 Thread Jia Liu
Hi Blue, On Sun, Jul 15, 2012 at 3:54 PM, Blue Swirl wrote: > On Sun, Jul 15, 2012 at 12:39 AM, Jia Liu wrote: >> Hi Blue >> >> On Sat, Jul 14, 2012 at 10:42 PM, Blue Swirl wrote: >>> On Sat, Jul 14, 2012 at 2:08 PM, Jia Liu wrote: Hi Max On Sat, Jul 14, 2012 at 9:49 PM, Max Fil

[Qemu-devel] [PATCH] configure: Fix build with ALSA audio driver

2012-07-15 Thread Stefan Weil
Since commit 417c9d72d48275d19c60861896efd4962d21aca2, all configure tests normally run with -Werror. Some of these tests now fail because they raised a compiler warning. Here a build breakage for ALSA (configure --audio-drv-list=alsa) is fixed. Signed-off-by: Stefan Weil --- One of the buildb

[Qemu-devel] [PATCH] configure: Fix build with capabilities

2012-07-15 Thread Stefan Weil
Since commit 417c9d72d48275d19c60861896efd4962d21aca2 all configure tests normally run with -Werror. Some of these tests now fail because they raised a compiler warning. This patch fixes support for capabilities. Signed-off-by: Stefan Weil --- configure |2 +- 1 file changed, 1 insertion(+)

[Qemu-devel] [PULL] kvm queue

2012-07-15 Thread Avi Kivity
Please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master to receive the kvm queue for qemu.git. Features include fixes for the apic device model (including a longstanding bug which caused random failures on 64-bit Windows), exposing new cpu features, and an eventfd API cha

[Qemu-devel] [PATCH 1/2] configure: Replace bash code by standard shell code

2012-07-15 Thread Stefan Weil
"+=" does not work with dash and other simple /bin/sh implementations. The new code prepends the flag while the old code either did not work (it continued after an error message which typically was not read) or appended the flag. That difference should not matter here. Signed-off-by: Stefan Weil

[Qemu-devel] [PATCH 2/2] configure: Fix errors in test for__sync_fetch_and_and

2012-07-15 Thread Stefan Weil
The old test code raises two compiler warnings which are errors since commit 417c9d72d48275d19c60861896efd4962d21aca2. These errors could result in compilations with compiler flag -march486 (so all nice features of newer processors got lost). Signed-off-by: Stefan Weil --- configure |2 +-

[Qemu-devel] [PATCH V4] VMWare PVSCSI paravirtual device implementation

2012-07-15 Thread Deep Debroy
Below is v4 of VMWare PVSCSI device implementation patches (earlier submitted by Dmitry Fleytman) so that it gets applied to the qemu master. Note that below patch is against scsi-next branch of git://github.com/bonzini/qemu.git. Details from Dmitry's earlier submission can be found at: http://list

Re: [Qemu-devel] QEMU VNC Audio - All audio data null

2012-07-15 Thread agraham
On 07/15/2012 12:21 AM, malc wrote: On Sun, 15 Jul 2012, agraham wrote: On 07/15/2012 12:01 AM, malc wrote: On Sat, 14 Jul 2012, agraham wrote: [..snip..] /usr/bin/qemu-kvm -usb -no-fd-bootchk -M pc -enable-kvm -m 128 -drive file=/Storage/Windows/Images/Clone_of_Windows-XP-x32,if=none,medi

[Qemu-devel] [PATCH] cpu-defs.h: pull in qemu-common.h for HOST_LONG_BITS

2012-07-15 Thread Mike Frysinger
This file uses the define HOST_LONG_BITS, but doesn't explicitly include qemu-common.h for it leading to build warnings for some setups: In file included from qemu/target-bfin/cpu.h:17, from qemu/cputlb.c:21: qemu/cpu-defs.h:83:5: warning: "HOST_LONG_BITS" is not defined Signed-of

[Qemu-devel] [PATCH] configure: do not quote $PKG_CONFIG

2012-07-15 Thread Mike Frysinger
We should not quote the PKG_CONFIG setting as this deviates from the canonical upstream behavior that gets integrated with all other build systems, and deviates from how we treat all other toolchain variables that we get from the environment. Ultimately, the point is that it breaks passing custom

Re: [Qemu-devel] [PATCH] cpu-defs.h: pull in qemu-common.h for HOST_LONG_BITS

2012-07-15 Thread Stefan Weil
Am 15.07.2012 22:25, schrieb Mike Frysinger: This file uses the define HOST_LONG_BITS, but doesn't explicitly include qemu-common.h for it leading to build warnings for some setups: In file included from qemu/target-bfin/cpu.h:17, from qemu/cputlb.c:21: qemu/cpu-defs.h:83:5: war

[Qemu-devel] [PATCH] configure: adapt vde test to -Werror

2012-07-15 Thread Laszlo Ersek
... after commit 417c9d72 ("configure: add -Werror to QEMU_CFLAGS early") Signed-off-by: Laszlo Ersek --- configure |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 0a3896e..8a1b902 100755 --- a/configure +++ b/configure @@ -1819,7 +1819,7 @@

Re: [Qemu-devel] QEMU VNC Audio - All audio data null

2012-07-15 Thread malc
On Sun, 15 Jul 2012, agraham wrote: > On 07/15/2012 12:21 AM, malc wrote: > > On Sun, 15 Jul 2012, agraham wrote: > > > > > On 07/15/2012 12:01 AM, malc wrote: > > > > On Sat, 14 Jul 2012, agraham wrote: > > > > > > > > [..snip..] > > > > > > > > > > > > > > /usr/bin/qemu-kvm -usb -no-fd-bootc

Re: [Qemu-devel] [PATCH] configure: do not quote $PKG_CONFIG

2012-07-15 Thread Stefan Weil
Am 15.07.2012 22:26, schrieb Mike Frysinger: We should not quote the PKG_CONFIG setting as this deviates from the canonical upstream behavior that gets integrated with all other build systems, and deviates from how we treat all other toolchain variables that we get from the environment. Ultimate

[Qemu-devel] [PATCH 10/16] qom: release previous object when setting

2012-07-15 Thread minyard
From: Corey Minyard When setting an object, if you don't release the previous object that was there, it may become unusable. This change allows a chardev to be removed from one object's properties and added to another's. --- qom/object.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(

[Qemu-devel] [PATCH 03/16] vl: Move init_timer_alarm() earlier

2012-07-15 Thread minyard
From: Corey Minyard The timers may be used in initialization, so move them earlier so they are ready. A reconnect options will be added to qemu-char, and it uses a timer, but the timer alarm wasn't initialized yet. Signed-off-by: Corey Minyard --- vl.c | 10 +- 1 files changed, 5 in

[Qemu-devel] [PATCH 05/16] qemu-char: Allow a chardev to reconnect if disconnected

2012-07-15 Thread minyard
From: Corey Minyard Allow a socket that connects to reconnect on a periodic basis if it fails to connect at startup or if the connection drops while in use. Signed-off-by: Corey Minyard --- qemu-char.c | 54 ++ qemu-char.h |4 ++

[Qemu-devel] [PATCH 11/16] Add a base IPMI interface

2012-07-15 Thread minyard
From: Corey Minyard Add the basic IPMI types and infrastructure to QEMU. Low-level interfaces and simulation interfaces will register with this; it's kind of the go-between to tie them together. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_

[Qemu-devel] [PATCH 04/16] qemu-char: Allocate CharDriverState in qemu_chr_new_from_opts

2012-07-15 Thread minyard
From: Corey Minyard This allocates the CharDriverState structure in a more logical place. It reduces code size and it allows a coming option to automatically attempt to reconnect a chardev if the connection fails. Signed-off-by: Corey Minyard --- console.c |9 + console.h

[Qemu-devel] [PATCH 08/16] qemu-char: Close fd at end of file

2012-07-15 Thread minyard
From: Corey Minyard The chardev backends that used qemu_chr_open_fd did not get their file descriptors closed at end of file or when the chardev was closed. This could result in a file descriptor leak. Signed-off-by: Corey Minyard --- qemu-char.c | 29 +++-- 1 files c

[Qemu-devel] [PATCH 12/16] IPMI: Add a PC ISA type structure

2012-07-15 Thread minyard
From: Corey Minyard This provides the base infrastructure to tie IPMI low-level interfaces into a PC ISA bus. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs |1 + hw/isa_ipmi.c

[Qemu-devel] [PATCH 13/16] IPMI: Add a KCS low-level interface

2012-07-15 Thread minyard
From: Corey Minyard This provides the simulation of the KCS hardware interface. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs |1 + hw/ipmi_kcs.c | 329

[Qemu-devel] [PATCH 01/16] smbios: Add a function to directly add an entry

2012-07-15 Thread minyard
From: Corey Minyard There was no way to directly add a table entry to the SMBIOS table, even though the BIOS supports this. So add a function to do this. This is in preparation for the IPMI handler adding it's SMBIOS table entry. Signed-off-by: Corey Minyard --- hw/smbios.c | 27 +++

[Qemu-devel] [PATCH 02/16] pc: move SMBIOS setup to after device init

2012-07-15 Thread minyard
From: Corey Minyard Setting up the firmware interface for the SMBIOS table needs to be done later in the process, after device initialization, so that devices can add entries to the table. Signed-off-by: Corey Minyard --- hw/pc.c | 24 ++-- hw/pc.h | 11 ++

[Qemu-devel] [PATCH 16/16] IPMI: Add an external connection simulation interface

2012-07-15 Thread minyard
From: Corey Minyard This adds an interface for IPMI that connects to a remote BMC over a chardev (generally a TCP socket). The OpenIPMI lanserv simulator describes this interface, see that for interface details. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + def

[Qemu-devel] [PATCH 15/16] IPMI: Add a local BMC simulation

2012-07-15 Thread minyard
From: Corey Minyard This provides a minimal local BMC, basically enough to comply with the spec and provide a complete watchdog timer (including a sensor, SDR, and event). Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 +

[Qemu-devel] [PATCH 07/16] qemu-char: remove free of chr from win_stdio_close

2012-07-15 Thread minyard
From: Corey Minyard This will result in a double free on close, because it's freed in qemu_chr_delete() right after calling the close function. Signed-off-by: Corey Minyard --- qemu-char.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

[Qemu-devel] [PATCH 14/16] IPMI: Add a BT low-level interface

2012-07-15 Thread minyard
From: Corey Minyard This provides the simulation of the BT hardware interface for IPMI. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs |1 + hw/ipmi_bt.c |

[Qemu-devel] [PATCH 09/16] qdev: Add a pre-firmware init capability

2012-07-15 Thread minyard
From: Corey Minyard Some devices may need to do some firmware-type initialization before the firmware itself is initialized. For instance, any device that adds SMBIOS table entries (like IPMI) will need to do that before the BIOS is initialized. So add a list of devices that get initialized bef

[Qemu-devel] [PATCH 06/16] qemu-char: Fix a race reporting opens and closes

2012-07-15 Thread minyard
From: Corey Minyard When an open event is reported, it is done through a bh. But close events are reported immediately. So if an open event is in the bh and a close occurs, an extraneous open happens, which can confuse a user. To fix this, this patch sets the "opened" flag immediately instead

Re: [Qemu-devel] [PATCH] configure: do not quote $PKG_CONFIG

2012-07-15 Thread Mike Frysinger
On Sunday 15 July 2012 15:54:51 Stefan Weil wrote: > Am 15.07.2012 22:26, schrieb Mike Frysinger: > > We should not quote the PKG_CONFIG setting as this deviates from the > > canonical upstream behavior that gets integrated with all other build > > systems, and deviates from how we treat all other

Re: [Qemu-devel] [PATCH] cpu-defs.h: pull in qemu-common.h for HOST_LONG_BITS

2012-07-15 Thread Mike Frysinger
On Sunday 15 July 2012 15:34:33 Stefan Weil wrote: > Am 15.07.2012 22:25, schrieb Mike Frysinger: > > This file uses the define HOST_LONG_BITS, but doesn't explicitly include > > qemu-common.h for it leading to build warnings for some setups: > > In file included from qemu/target-bfin/cpu.h:17, > >

Re: [Qemu-devel] [PATCH 01/16] smbios: Add a function to directly add an entry

2012-07-15 Thread Corey Minyard
I messed up and didn't get an introduction for these patches. So here goes. These patches are for adding an IPMI interface to QEMU. It adds a KCS and BT interface; it should be easy to add a SMIC interface if anyone wants that, but it's not often used. For simulation of an IPMI management c

Re: [Qemu-devel] QEMU VNC Audio - All audio data null

2012-07-15 Thread malc
On Sun, 15 Jul 2012, agraham wrote: [..snip..] > > I've found the root cause and hopefully you should be able to reproduce the > issue. > > There was a configure option introduced called "--enable-mixemu". > > --enable-mixemu enable mixer emulation Try this diff --git a/audio/audio.

Re: [Qemu-devel] [PATCH] hw/virtio-scsi: Set max_target=0 during vhost-scsi operation

2012-07-15 Thread Zhi Yong Wu
HI, nab, On Fri, Jul 13, 2012 at 6:08 AM, Nicholas A. Bellinger wrote: > Hi Zhi, > > On Thu, 2012-07-12 at 14:59 +0800, Zhi Yong Wu wrote: >> thanks, it is applied to my vhost_scsi git tree >> git://github.com/wuzhy/qemu.git vhost-scsi >> > > Thanks for picking up this patch in your vhost-scsi tr

Re: [Qemu-devel] QEMU VNC Audio - All audio data null

2012-07-15 Thread agraham
On 07/16/2012 01:03 AM, malc wrote: On Sun, 15 Jul 2012, agraham wrote: [..snip..] I've found the root cause and hopefully you should be able to reproduce the issue. There was a configure option introduced called "--enable-mixemu". --enable-mixemu enable mixer emulation Try this

[Qemu-devel] [PATCH v2 0/3] Fix ping issues in linux-user guest

2012-07-15 Thread Jing Huang
The following changes since commit 3437e545857aa15e583e314471e9c86fc3e9a89c: qemu-log: fix x86 and user logging (Sat Jul 7 14:40:18 2012 +) These patches fix ping issues in linux-user guest: - do_sebdrecv() could not pass sockaddr to target after executing recvmsg(). Therefore, ping will show

[Qemu-devel] [PATCH v2 1/3] linux-user: pass sockaddr from host to target

2012-07-15 Thread Jing Huang
This patch pass sockaddr from host to target. Signed-off-by: Jing Huang --- linux-user/syscall.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 539af3f..28c8ba5 100644 --- a/linux-user/syscall.c +++ b/linux-user

[Qemu-devel] [PATCH v2 2/3] linux-user: make do_setsockopt support SOL_RAW ICMP_FILTER socket option

2012-07-15 Thread Jing Huang
This patch makes do_setsockopt() support SOL_RAW ICMP_FILTER socket option. Signed-off-by: Jing Huang --- linux-user/syscall.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 28c8ba5..fc8690d 100644 --

[Qemu-devel] [PATCH v2 3/3] linux-user: exclude SO_TIMESTAMP cmsg_type from unsuppoted ancillary data

2012-07-15 Thread Jing Huang
This patch excludes SO_TIMESTAMP cmsg_type from unsuppoted ancillary data. Signed-off-by: Jing Huang --- linux-user/syscall.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index fc8690d..9fce57c 100644 --- a/linux-user/sys

Re: [Qemu-devel] [PATCH v2 2/3] linux-user: make do_setsockopt support SOL_RAW ICMP_FILTER socket option

2012-07-15 Thread Dunrong Huang
2012/7/16 Jing Huang : > This patch makes do_setsockopt() support SOL_RAW ICMP_FILTER socket option. > > Signed-off-by: Jing Huang > --- > linux-user/syscall.c | 20 > 1 files changed, 20 insertions(+), 0 deletions(-) > > diff --git a/linux-user/syscall.c b/linux-user/sysca

[Qemu-devel] [PATCH] qemu-char: (Re-)connect for tcp_chr_write() unconnected writing

2012-07-15 Thread Lei Li
tcp_chr_write() did not deal with writing to an unconnected connection, (re-)connect it for this situation. Signed-off-by: Lei Li --- qemu-char.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index c2aaaee..25eaeeb 100644 --- a/qemu-char

Re: [Qemu-devel] [PATCH 0/2] RFC: powerpc-vfio: adding support

2012-07-15 Thread Alexey Kardashevskiy
Jan, Alex, ping? On 12/07/12 15:47, Alexey Kardashevskiy wrote: > On 12/07/12 15:29, Alex Williamson wrote: >> On Thu, 2012-07-12 at 14:58 +1000, Alexey Kardashevskiy wrote: >>> On 12/07/12 14:43, Alex Williamson wrote: On Thu, 2012-07-12 at 14:38 +1000, Alexey Kardashevskiy wrote: > On

Re: [Qemu-devel] [PATCH] cpu-defs.h: pull in qemu-common.h for HOST_LONG_BITS

2012-07-15 Thread Stefan Weil
Am 15.07.2012 23:54, schrieb Mike Frysinger: On Sunday 15 July 2012 15:34:33 Stefan Weil wrote: Am 15.07.2012 22:25, schrieb Mike Frysinger: This file uses the define HOST_LONG_BITS, but doesn't explicitly include qemu-common.h for it leading to build warnings for some setups: In file included

Re: [Qemu-devel] [PATCH] cpu-defs.h: pull in qemu-common.h for HOST_LONG_BITS

2012-07-15 Thread Stefan Weil
Am 16.07.2012 07:26, schrieb Stefan Weil: Am 15.07.2012 23:54, schrieb Mike Frysinger: On Sunday 15 July 2012 15:34:33 Stefan Weil wrote: Am 15.07.2012 22:25, schrieb Mike Frysinger: This file uses the define HOST_LONG_BITS, but doesn't explicitly include qemu-common.h for it leading to build

Re: [Qemu-devel] [PATCH 10/16] qom: release previous object when setting

2012-07-15 Thread Paolo Bonzini
Il 15/07/2012 22:25, miny...@acm.org ha scritto: > From: Corey Minyard > > When setting an object, if you don't release the previous object > that was there, it may become unusable. This change allows a > chardev to be removed from one object's properties and added to > another's. > --- > qom/o

[Qemu-devel] Disabling Console Switch using Ctrl + Alt + 2

2012-07-15 Thread Erik Rull
Hi all, how can I disable a switch to the "parallel0" console when accidentially pressing Ctrl + Alt + 2? I don't need such a feature and it confuses some users of the running guest system (some language layouts have the @ placed on the 2 where you need to access either with AltGr or Ctrl + Alt)

Re: [Qemu-devel] [PATCH] SCSI: Fail medium writes with proper sense for readonly LUNs

2012-07-15 Thread Paolo Bonzini
Il 13/07/2012 23:30, Ronnie Sahlberg ha scritto: > Add sense code for DATA_PROTECT/WRITE_PROTECTED and return this error > for any WRITE*/WRITE_VERIFY* calls if the device is readonly=on, > i.e. write-protected > > Signed-off-by: Ronnie Sahlberg Applied, thanks! Paolo > --- > hw/scsi-bus.c |