Re: [Qemu-devel] Webcams under KVM and Linux

2011-05-31 Thread Gerd Hoffmann
Hi, Takes a frame from ANY available V4L2 device (/dev/video0), caches it, and sends it completely to the guest before requesting any other frame. I think you can double-buffer (i.e. let the host driver fill one buffer while sending the other one to the guest). Probably gives a slightly hig

Re: [Qemu-devel] [PATCH 2/3] QMP: Add BLOCK_MEDIA_EJECT event documentation

2011-05-31 Thread Amit Shah
On (Mon) 30 May 2011 [16:54:22], Markus Armbruster wrote: > Luiz Capitulino writes: ... > >> The monitor command 'eject' already caused a lot of confusion, please > >> don't make the same mistake in this event name. Even though I know more > >> or less what eject can mean in qemu, I'm not sure w

Re: [Qemu-devel] [PATCH uq/master V2] kvm: Add CPUID support for VIA CPU

2011-05-31 Thread BrillyWu
Hi, Jan > > I am sure I have checked it with the scripts/checkpatch.pl, and it > > shows no error or warning. Maybe I should check whether my windows > > editor and mail client can work well before sending it to > you. I 'm > > sorry. > > Sorry, you are right. Your patch revealed a bug in the che

Re: [Qemu-devel] [PATCH uq/master V2] kvm: Add CPUID support for VIA CPU

2011-05-31 Thread Jan Kiszka
On 2011-05-31 09:39, BrillyWu wrote: > Hi, Jan > >>> I am sure I have checked it with the scripts/checkpatch.pl, and it >>> shows no error or warning. Maybe I should check whether my windows >>> editor and mail client can work well before sending it to >> you. I 'm >>> sorry. >> >> Sorry, you are

[Qemu-devel] [PATCH-v3 2/2] kvm: Fix unused-but-set-variable warning

2011-05-31 Thread Christophe Fergeau
Based on a patch from Hans de Goede This warning is new in gcc 4.6. Acked-by: Amit Shah Signed-off-by: Christophe Fergeau --- target-i386/kvm.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index faedc6c..58a70bc 100644 --- a/

[Qemu-devel] [PATCH-v3 1/2] tcg: Fix unused-but-set-variable warning

2011-05-31 Thread Christophe Fergeau
Based on a patch from Hans de Goede This warning is new in gcc 4.6. Acked-by: Amit Shah Signed-off-by: Christophe Fergeau --- tcg/tcg.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 8748c05..e53b54c 100644 --- a/tcg/tcg.c +++ b/tcg/tcg

[Qemu-devel] [PATCH-v3 0/2] Fix unused-but-set-variable warnings

2011-05-31 Thread Christophe Fergeau
Here is another version of these patches. Christophe Changes: v3 - added S-o-b v2 - split patches - removed whitespace at end of lines in tcm. - changed #if defined XXX to #if defined(XXX) - removed commented out line from kvm.c in the 1st patch v1 - initial version from Hans Christophe

Re: [Qemu-devel] [PATCH 2/3] QMP: Add BLOCK_MEDIA_EJECT event documentation

2011-05-31 Thread Kevin Wolf
Am 30.05.2011 16:21, schrieb Luiz Capitulino: > On Mon, 30 May 2011 10:46:07 +0200 > Kevin Wolf wrote: > >> Am 27.05.2011 21:31, schrieb Luiz Capitulino: >>> Signed-off-by: Luiz Capitulino >>> --- >>> QMP/qmp-events.txt | 18 ++ >>> 1 files changed, 18 insertions(+), 0 deletio

Re: [Qemu-devel] [PATCH 3/3] QMP: Introduce the BLOCK_MEDIA_EJECT event

2011-05-31 Thread Kevin Wolf
Am 30.05.2011 16:49, schrieb Markus Armbruster: > Luiz Capitulino writes: > >> On Sat, 28 May 2011 09:58:24 +0200 >> Markus Armbruster wrote: >> >>> Luiz Capitulino writes: diff --git a/block.h b/block.h index 1f58eab..e4053dd 100644 --- a/block.h +++ b/block.h @@ -50,6

Re: [Qemu-devel] [PATCH uq/master V2] kvm: Add CPUID support for VIA CPU

2011-05-31 Thread BrillyWu
> >> Blue, this does not trigger the missing braces warning: > > > > Do you mean the bug is that it can not trigger missing > braces warining? > > The script fails to detect missing braces as marked below. > > > It seems that there is no missing braces in my patch, but some > > unnecessary braces.

Re: [Qemu-devel] drop -enable-nesting

2011-05-31 Thread Daniel P. Berrange
On Mon, May 30, 2011 at 06:19:14PM +0300, Avi Kivity wrote: > On 05/30/2011 06:15 PM, Jan Kiszka wrote: > >On 2011-05-30 17:10, Roedel, Joerg wrote: > >> On Mon, May 30, 2011 at 11:04:02AM -0400, Jan Kiszka wrote: > >>> On 2011-05-30 16:38, Nadav Har'El wrote: > On Mon, May 30, 2011, Jan Ki

Re: [Qemu-devel] drop -enable-nesting

2011-05-31 Thread Avi Kivity
On 05/31/2011 11:44 AM, Daniel P. Berrange wrote: > I think it's safe to drop -enable-nesting immediately. Dan, does > libvirt make use of it? Yes, but it should be safe to drop it. Currently, if the user specifies a CPU with the 'svm' flag present in libvirt guest XML, then we will pass args

Re: [Qemu-devel] drop -enable-nesting

2011-05-31 Thread Roedel, Joerg
On Tue, May 31, 2011 at 04:58:16AM -0400, Avi Kivity wrote: > On 05/31/2011 11:44 AM, Daniel P. Berrange wrote: > > > I think it's safe to drop -enable-nesting immediately. Dan, does > > > libvirt make use of it? > > > > Yes, but it should be safe to drop it. Currently, if the user specifies > >

[Qemu-devel] how to add a new guest cpu to qemu?

2011-05-31 Thread 尹茸
Dear alpha, I'm a college student and a fan of linux. I am learning the source of qemu, and find your name in the maintainers. I really want to add a new guest cpu which is used by the course I'm taking. Would you please give me the documents or at least some hints that will help me add the new

Re: [Qemu-devel] drop -enable-nesting

2011-05-31 Thread Paolo Bonzini
On 05/31/2011 10:58 AM, Avi Kivity wrote: But qemu will complain about an option it can't parse. The presence of -enable-nesting is inferred from the help text. Paolo

Re: [Qemu-devel] drop -enable-nesting

2011-05-31 Thread Avi Kivity
On 05/31/2011 12:15 PM, Paolo Bonzini wrote: On 05/31/2011 10:58 AM, Avi Kivity wrote: But qemu will complain about an option it can't parse. The presence of -enable-nesting is inferred from the help text. Okay, so it can be safely dropped. -- error compiling committee.c: too many argumen

Re: [Qemu-devel] [PATCH 0/4] introduce cpu_physical_memory_map_fast

2011-05-31 Thread Paolo Bonzini
On 05/12/2011 04:51 PM, Paolo Bonzini wrote: On 05/03/2011 06:49 PM, Paolo Bonzini wrote: Paravirtualized devices (and also some real devices) can assume they are going to access RAM. For this reason, provide a fast-path function with the following properties: 1) it will never allocate a bounce

Re: [Qemu-devel] [OpenBIOS] solaris 8 on sparc, webstart launcher crashing

2011-05-31 Thread Mark Cave-Ayland
On 28/05/11 07:40, Blue Swirl wrote: (lots cut) I was able to get the exact same error& stack trace as the sig11 one from (2) above. Addresses were the same, only diferences were the PID, LWP, and sp (330, 9, 0xee752c78) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Starting Web Start Launcher

[Qemu-devel] [PATCH 00/14] usb: various usb fixes

2011-05-31 Thread Hans de Goede
Here is a patch series with a bunch of usb fixes, mostly (linux) usb redirection related. Regards, Hans

[Qemu-devel] [PATCH 02/14] usb-linux: Get speed from sysfs rather then from the connectinfo ioctl

2011-05-31 Thread Hans de Goede
The connectinfo ioctl only differentiates between lo speed devices, and all other speeds, where as we would like to know the real speed. The real speed is available in sysfs so use that when available. --- usb-linux.c | 37 + 1 files changed, 21 insertions(+),

[Qemu-devel] [PATCH 04/14] usb-linux: Don't do perror when errno is not set

2011-05-31 Thread Hans de Goede
Note that "op" also is not set, so before this change these error paths would feed NULL to perror. --- usb-linux.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 672a589..e6c6138 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -373,7 +373

[Qemu-devel] [PATCH 05/14] usb-linux: Don't call usb_host_close when usb_host_open fails

2011-05-31 Thread Hans de Goede
--- usb-linux.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index e6c6138..544aea3 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -363,13 +363,16 @@ static int usb_host_claim_interfaces(USBHostDevice *dev, int configuration) const c

[Qemu-devel] [PATCH 01/14] usb-linux: Set usb_auto_timer to NULL after deleting it

2011-05-31 Thread Hans de Goede
We might check for it being NULL later, if the device gets unplugged. --- usb-linux.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 4d7a31a..ea3ab5f 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1675,6 +1675,7 @@ static void usb_host_auto

[Qemu-devel] [PATCH 08/14] usb-linux: Don't try to open the same device twice

2011-05-31 Thread Hans de Goede
If a user wants to redirect 2 identical usb sticks, in theory this is possible by doing: usb_add host:1234:5678 usb_add host:1234:5678 But this will lead to us trying to open the first stick twice, since we don't break the loop after having found a match in our filter list, so the next' filter lis

[Qemu-devel] [PATCH 06/14] usb-linux: Ensure devep != 0

2011-05-31 Thread Hans de Goede
So that we don't index endp_table with a negative index. --- usb-linux.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 544aea3..e2f45d3 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1029,6 +1029,11 @@ static int usb_linux_update_endp_

[Qemu-devel] [PATCH 03/14] usb-linux: Teach about super speed

2011-05-31 Thread Hans de Goede
--- usb-linux.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index db28762..672a589 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1375,7 +1375,9 @@ static int usb_host_scan_dev(void *opaque, USBScanFunc *func) if (get_t

[Qemu-devel] [PATCH 14/14] usb: Proper error propagation for usb_device_attach errors

2011-05-31 Thread Hans de Goede
--- hw/usb-bus.c | 23 --- hw/usb-msd.c |5 +++-- usb-linux.c |6 +- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 0a49921..2ae2678 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -75,7 +75,7 @@ static int usb_

[Qemu-devel] [PATCH 07/14] usb-linux: If opening a device fails remove it from our filter list

2011-05-31 Thread Hans de Goede
So that we don't retry to open it every 2 seconds flooding stderr with error messages. --- usb-linux.c | 31 --- 1 files changed, 28 insertions(+), 3 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index e2f45d3..334012e 100644 --- a/usb-linux.c +++ b/usb-linux.c

[Qemu-devel] [PATCH 10/14] usb-linux: Enlarge buffer for descriptors to 8192 bytes

2011-05-31 Thread Hans de Goede
1024 bytes is way to small, one hd UVC webcam I have over here has so many resolutions its descriptors take op close to 4k. Hopefully 8k will be enough for all devices. --- usb-linux.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 3508cda

[Qemu-devel] [PATCH 09/14] usb-linux: Don't declare a usbdevice_name

2011-05-31 Thread Hans de Goede
Declaring a usbdevice_name while we still have an explicit call to usb_host_device_open in vl.c causes usb_host_device_open to get called twice if the initial call fails. --- usb-linux.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index eb9

[Qemu-devel] [PATCH 11/14] usb-bus: Add knowledge of USB_SPEED_SUPER to usb_speed helper

2011-05-31 Thread Hans de Goede
--- hw/usb-bus.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 874c253..91f2083 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -273,6 +273,7 @@ static const char *usb_speed(unsigned int speed) [ USB_SPEED_LOW ] = "1.5",

[Qemu-devel] [PATCH 13/14] usb-bus: Don't detach non attached devices on device exit

2011-05-31 Thread Hans de Goede
This causes an "Error: tried to detach unattached usb device " to be printed, this can happen when deleting ie a usb host qdev, which did not get attached (because a device matching the filter never got plugged in). --- hw/usb-bus.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) di

[Qemu-devel] [PATCH 12/14] usb-bus: Don't allow attaching a device to a bus with no free ports

2011-05-31 Thread Hans de Goede
--- hw/usb-bus.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 91f2083..bb040d2 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -179,6 +179,11 @@ static void do_attach(USBDevice *dev) dev->product_desc); ret

[Qemu-devel] [PATCH 1/4] usb: Add a speedmask to devices

2011-05-31 Thread Hans de Goede
This is used to indicate at which speed[s] the device can operate, so that this can be checked to match the ports capabilities when it gets attached to a bus. Note that currently all usb1 emulated device claim to be fullspeed, this seems to not cause any problems, but still seems wrong, because wi

[Qemu-devel] [PATCH 4/4] usb-linux: allow "compatible" high speed devices to connect at fullspeed

2011-05-31 Thread Hans de Goede
Some usb2 highspeed devices, like usb-msd devices, work fine when redirected to a usb1 virtual controller. Allow this to avoid the new speedhecks causing regressions for users who do not enable the new experimental ehci code. --- usb-linux.c | 39 +++ 1 files

[Qemu-devel] USB: automatically choose bus to connect to based on speed

2011-05-31 Thread Hans de Goede
This patch series makes the usb subsystem automatically attach a usb device to the right bus, based on the device's and the bus' speed, unless a bus is explicitly specified by the user. This makes the uhci controller more or less act as a companion controller to the ehci controller (if enabled), an

[Qemu-devel] [PATCH 2/4] usb-bus: Don't allow speed mismatch while attaching devices

2011-05-31 Thread Hans de Goede
--- hw/usb-bus.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 2ae2678..1817d5c 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -200,6 +200,11 @@ static int do_attach(USBDevice *dev) } else { port = QTAILQ_FIRST(&bus->f

[Qemu-devel] [PATCH 3/4] usb-bus: Automatically select right usb bus based on device and bus speed

2011-05-31 Thread Hans de Goede
If the bus was not explictly specified by the user, automatically select the right usb bus based on device and bus speed. --- hw/qdev.c|2 +- hw/usb-bus.c | 53 - hw/usb.h |1 + 3 files changed, 54 insertions(+), 2 deletions(-)

Re: [Qemu-devel] [PATCH 14/14] usb: Proper error propagation for usb_device_attach errors

2011-05-31 Thread Michael Tokarev
31.05.2011 13:35, Hans de Goede wrote: > --- > hw/usb-bus.c | 23 --- > hw/usb-msd.c |5 +++-- > usb-linux.c |6 +- > 3 files changed, 20 insertions(+), 14 deletions(-) > > diff --git a/hw/usb-bus.c b/hw/usb-bus.c > index 0a49921..2ae2678 100644 > --- a/hw/usb-b

Re: [Qemu-devel] [PATCH 14/14] usb: Proper error propagation for usb_device_attach errors

2011-05-31 Thread Hans de Goede
Hi, On 05/31/2011 11:42 AM, Michael Tokarev wrote: 31.05.2011 13:35, Hans de Goede wrote: --- hw/usb-bus.c | 23 --- hw/usb-msd.c |5 +++-- usb-linux.c |6 +- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c ind

Re: [Qemu-devel] USB: automatically choose bus to connect to based on speed

2011-05-31 Thread Paolo Bonzini
On 05/31/2011 11:39 AM, Hans de Goede wrote: This patch series makes the usb subsystem automatically attach a usb device to the right bus, based on the device's and the bus' speed, unless a bus is explicitly specified by the user. This makes the uhci controller more or less act as a companion con

Re: [Qemu-devel] [PATCH 14/14] usb: Proper error propagation for usb_device_attach errors

2011-05-31 Thread Kevin Wolf
Am 31.05.2011 11:51, schrieb Hans de Goede: > Hi, > > On 05/31/2011 11:42 AM, Michael Tokarev wrote: >> 31.05.2011 13:35, Hans de Goede wrote: >>> --- >>> hw/usb-bus.c | 23 --- >>> hw/usb-msd.c |5 +++-- >>> usb-linux.c |6 +- >>> 3 files changed, 20 insert

Re: [Qemu-devel] [PATCH 14/14] usb: Proper error propagation for usb_device_attach errors

2011-05-31 Thread Hans de Goede
Hi, On 05/31/2011 11:56 AM, Kevin Wolf wrote: Am 31.05.2011 11:51, schrieb Hans de Goede: Hi, On 05/31/2011 11:42 AM, Michael Tokarev wrote: 31.05.2011 13:35, Hans de Goede wrote: --- hw/usb-bus.c | 23 --- hw/usb-msd.c |5 +++-- usb-linux.c |6 +-

[Qemu-devel] [RFC][PATCH] ide: Break migration by splitting error status from status register

2011-05-31 Thread Kevin Wolf
When adding the werror=stop mode, some flags were added to s->status which are used to determine what kind of operation should be restarted when the VM is continued. Unfortunately, it turns out that s->status is in fact a device register and as such is visible to the guest (some of the abused bits

Re: [Qemu-devel] [PATCH 14/14] usb: Proper error propagation for usb_device_attach errors

2011-05-31 Thread Kevin Wolf
Am 31.05.2011 12:05, schrieb Hans de Goede: > Hi, > > On 05/31/2011 11:56 AM, Kevin Wolf wrote: >> Am 31.05.2011 11:51, schrieb Hans de Goede: >>> Hi, >>> >>> On 05/31/2011 11:42 AM, Michael Tokarev wrote: 31.05.2011 13:35, Hans de Goede wrote: > --- >hw/usb-bus.c | 23 +

Re: [Qemu-devel] USB: automatically choose bus to connect to based on speed

2011-05-31 Thread Hans de Goede
Hi, On 05/31/2011 11:52 AM, Paolo Bonzini wrote: On 05/31/2011 11:39 AM, Hans de Goede wrote: This patch series makes the usb subsystem automatically attach a usb device to the right bus, based on the device's and the bus' speed, unless a bus is explicitly specified by the user. This makes the

Re: [Qemu-devel] [PATCH 14/14] usb: Proper error propagation for usb_device_attach errors

2011-05-31 Thread Hans de Goede
Hi, On 05/31/2011 12:12 PM, Kevin Wolf wrote: Am 31.05.2011 12:05, schrieb Hans de Goede: Hi, On 05/31/2011 11:56 AM, Kevin Wolf wrote: Am 31.05.2011 11:51, schrieb Hans de Goede: Hi, On 05/31/2011 11:42 AM, Michael Tokarev wrote: 31.05.2011 13:35, Hans de Goede wrote: --- hw/usb-bus.

Re: [Qemu-devel] [PATCH] xen: fix interrupt routing

2011-05-31 Thread Stefano Stabellini
On Sat, 28 May 2011, Alexander Graf wrote: > > On 26.05.2011, at 17:48, Stefano Stabellini wrote: > > > xen: fix interrupt routing > > > > - remove i440FX-xen and i440fx_write_config_xen > > we don't need to intercept pci config writes to i440FX anymore; > > Why not? In which version? Did anyth

Re: [Qemu-devel] [PATCH uq/master V3] kvm: Add CPUID support for VIA CPU

2011-05-31 Thread jj
>From brill...@viatech.com.cn When KVM is running on VIA CPU with host cpu's model, the feautures of VIA CPU will be passed into kvm guest by calling the CPUID instruction for Centaur. Signed-off-by: BrillyWu Signed-off-by: KaryJin --- target-i386/cpu.h |7 +++ target-i386/cpuid.c |

Re: [Qemu-devel] [PATCH uq/master V3] kvm: Add CPUID support for VIA CPU

2011-05-31 Thread jj
From: brill...@viatech.com.cn When KVM is running on VIA CPU with host cpu's model, the feautures of VIA CPU will be passed into kvm guest by calling the CPUID instruction for Centaur. Signed-off-by: BrillyWu Signed-off-by: KaryJin --- target-i386/cpu.h |7 +++ target-i386/cpuid.c |

Re: [Qemu-devel] [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2011-05-31 Thread Marcelo Tosatti
On Sat, Dec 11, 2010 at 09:39:30AM +0200, Avi Kivity wrote: > On 12/08/2010 07:08 PM, Marcelo Tosatti wrote: > >Use _RMV method to indicate whether device can be removed. > > > >Data is retrieved from QEMU via I/O port 0xae0c. > > > > Where did this port come from? Its the next available addres

[Qemu-devel] Liga de Futbol 7. Inicia Junio 6

2011-05-31 Thread SENDERO SOCCER
Sendero Soccer Liga de Futbol 7 Torneo de verano, fecha de inicio: 6 de Junio 2011 Inscripciones Abiertas Liga de Lunes a Viernes $6,000 Incluye 9 partidos + finales Liga de Fin de Semana $5,500 Incluye 9 partidos + finales Servicios Adicionales que ofrecemos: Renta de canchas $500 por hora $65

[Qemu-devel] [PATCH] qemu-img create: Fix displayed default cluster size

2011-05-31 Thread Kevin Wolf
When not specifying a cluster size on the command line, qemu-img printed a cluster size of 0: Formatting '/tmp/test.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=0 This patch adds the default cluster size to the QEMUOptionParameter list, so that it displays the default value

Re: [Qemu-devel] KVM call agenda for May 31st

2011-05-31 Thread Juan Quintela
Juan Quintela wrote: > Please send in any agenda items you are interested in covering. > > Thanks, Juan. As there is no agenda, call got cancelled. See you next week, Juan.

[Qemu-devel] test images for qemu omap1 machines (cheetah, sx1, sx1-v1)

2011-05-31 Thread Peter Maydell
Hi; I'm currently looking at pulling the omap3 support patches into shape for submitting to upstream qemu. As part of this I'd like to test that I don't accidentally break the existing omap1/omap2 support. I have a test image for omap2 (n800/n810), but haven't been able to find any for the omap1 ma

[Qemu-devel] [PATCH] s390x: fix cksm instruction

2011-05-31 Thread Alexander Graf
The cksm instruction was implemented incorrectly, rendering UDP and TCP checksum calculation wrong, making an emulated s390x Linux guest break in most networking operations. This patch fixes odd end checksum calculation, takes the input register as input for the checksum and optimizes the overflow

Re: [Qemu-devel] [PATCH 3/3] QMP: Introduce the BLOCK_MEDIA_EJECT event

2011-05-31 Thread Luiz Capitulino
On Tue, 31 May 2011 10:12:17 +0200 Kevin Wolf wrote: > Am 30.05.2011 16:49, schrieb Markus Armbruster: > > Luiz Capitulino writes: > > > >> On Sat, 28 May 2011 09:58:24 +0200 > >> Markus Armbruster wrote: > >> > >>> Luiz Capitulino writes: > diff --git a/block.h b/block.h > index 1f

Re: [Qemu-devel] [PULL] usb patch queue: initial usb 2.0 support.

2011-05-31 Thread Anthony Liguori
On 05/26/2011 05:13 AM, Gerd Hoffmann wrote: On 05/23/11 11:43, Gerd Hoffmann wrote: Hi, Here is the usb patch queue, with EHCI support being the outstanding new feature. Most patches are unmodified. Patch #5 got a better commit message. The EHCI patch now lists all contributes in the commit me

Re: [Qemu-devel] [PULL v5 00/25] SCSI subsystem improvements

2011-05-31 Thread Anthony Liguori
On 05/26/2011 05:56 AM, Paolo Bonzini wrote: The following changes since commit aa29141d84d58171c2d219f0a4b599bd76fb2e37: Merge remote-tracking branch 'kraxel/CVE-2011-1751' into staging (2011-05-25 07:04:13 -0500) are available in the git repository at: git://github.com/bonzini/qemu.gi

Re: [Qemu-devel] [PULL] virtio-serial updates

2011-05-31 Thread Anthony Liguori
On 05/27/2011 05:20 AM, Amit Shah wrote: Hello, Please pull to get virtio-serial cleanups from Markus and a move to bh for flushing out throttled data from Alon. (git mirror might take some time to sync). The following changes since commit aa29141d84d58171c2d219f0a4b599bd76fb2e37: Merge re

Re: [Qemu-devel] [PULL] Trivial patches for May 22 to May 29 2011

2011-05-31 Thread Anthony Liguori
On 05/29/2011 06:36 AM, Stefan Hajnoczi wrote: The following changes since commit 2eb9f241824d000fcd90bd7f4b49e40b88e62975: bitbang_i2c: Fix spurious slave read after NACK (2011-05-28 16:20:43 +0200) are available in the git repository at: ssh://repo.or.cz/srv/git/qemu/stefanha.git trivia

Re: [Qemu-devel] [PATCH 3/3] QMP: Introduce the BLOCK_MEDIA_EJECT event

2011-05-31 Thread Anthony Liguori
On 05/31/2011 08:35 AM, Luiz Capitulino wrote: On Tue, 31 May 2011 10:12:17 +0200 Do we break anything if we make eject really eject the medium (we have a virtual tray status now) instead of just closing the image? I don't think so. I guess users/clients really have the expectation that the on

Re: [Qemu-devel] [Bug 788697] Re: [PowerPC] [patch] mtmsr does not preserve high bits of MSR

2011-05-31 Thread Nathan Whitehorn
On 05/26/11 18:47, agraf wrote: > On 27.05.2011, at 01:33, Nathan Whitehorn wrote: > >> On 05/26/11 11:45, agraf wrote: >>> On 26.05.2011, at 18:09, Nathan Whitehorn wrote: >>> ** Patch added: "mtmstr.diff" https://bugs.launchpad.net/bugs/788697/+attachment/2143748/+files/mtmstr.

Re: [Qemu-devel] [PATCH] #include cleanliness

2011-05-31 Thread Anthony Liguori
On 05/30/2011 04:06 AM, Avi Kivity wrote: On 05/30/2011 01:06 AM, Anthony Liguori wrote: On 05/19/2011 09:17 AM, Avi Kivity wrote: My mother always told me to explicitly #include any headers need to compile a file, instead of relying on other #includes to bring them in. This patch fixes up targ

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Vivek Goyal
On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote: > Hello, all, > > I have prepared to work on a feature called "Disk I/O limits" for > qemu-kvm projeect. > This feature will enable the user to cap disk I/O amount performed by a > VM.It is important for some storage resources

Re: [Qemu-devel] [PATCH] Use SIGIO with caution

2011-05-31 Thread Anthony Liguori
On 05/29/2011 04:50 PM, Andreas Färber wrote: BeOS and Haiku don't define SIGIO. When undefined, it won't arrive and doesn't need to be blocked. Signed-off-by: Andreas Färber Anything to do with signal masks is never a trivial patch BTW... But I actually think explicit handling of SIGIO is un

Re: [Qemu-devel] [Bug 788697] Re: [PowerPC] [patch] mtmsr does not preserve high bits of MSR

2011-05-31 Thread Alexander Graf
On 31.05.2011, at 15:35, Nathan Whitehorn wrote: > On 05/26/11 18:47, agraf wrote: >> On 27.05.2011, at 01:33, Nathan Whitehorn wrote: >> >>> On 05/26/11 11:45, agraf wrote: On 26.05.2011, at 18:09, Nathan Whitehorn wrote: > ** Patch added: "mtmstr.diff" > > https://bug

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Anthony Liguori
On 05/31/2011 08:45 AM, Vivek Goyal wrote: On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote: Hello, all, I have prepared to work on a feature called "Disk I/O limits" for qemu-kvm projeect. This feature will enable the user to cap disk I/O amount performed by a VM.It is i

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Daniel P. Berrange
On Tue, May 31, 2011 at 09:45:37AM -0400, Vivek Goyal wrote: > On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote: > > Hello, all, > > > > I have prepared to work on a feature called "Disk I/O limits" for > > qemu-kvm projeect. > > This feature will enable the user to cap disk I/

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Vivek Goyal
On Tue, May 31, 2011 at 08:50:40AM -0500, Anthony Liguori wrote: > On 05/31/2011 08:45 AM, Vivek Goyal wrote: > >On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote: > >>Hello, all, > >> > >> I have prepared to work on a feature called "Disk I/O limits" for > >> qemu-kvm projeect. > >>

Re: [Qemu-devel] [PATCH] Use SIGIO with caution

2011-05-31 Thread Jan Kiszka
On 2011-05-31 15:47, Anthony Liguori wrote: > On 05/29/2011 04:50 PM, Andreas Färber wrote: >> BeOS and Haiku don't define SIGIO. When undefined, it won't arrive >> and doesn't need to be blocked. >> >> Signed-off-by: Andreas Färber > > Anything to do with signal masks is never a trivial patch BTW

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Vivek Goyal
On Tue, May 31, 2011 at 02:56:46PM +0100, Daniel P. Berrange wrote: > On Tue, May 31, 2011 at 09:45:37AM -0400, Vivek Goyal wrote: > > On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote: > > > Hello, all, > > > > > > I have prepared to work on a feature called "Disk I/O limits" for >

Re: [Qemu-devel] [PATCH] Use SIGIO with caution

2011-05-31 Thread Avi Kivity
On 05/31/2011 04:47 PM, Anthony Liguori wrote: On 05/29/2011 04:50 PM, Andreas Färber wrote: BeOS and Haiku don't define SIGIO. When undefined, it won't arrive and doesn't need to be blocked. Signed-off-by: Andreas Färber Anything to do with signal masks is never a trivial patch BTW... But I

[Qemu-devel] [PATCH 2/2] Add support for Zipit Z2 machine

2011-05-31 Thread Vasily Khoruzhick
Zipit Z2 is small PXA270 based handheld. Signed-off-by: Vasily Khoruzhick --- Makefile.target |1 + hw/z2.c | 302 +++ 2 files changed, 303 insertions(+), 0 deletions(-) create mode 100644 hw/z2.c diff --git a/Makefile.target b/M

[Qemu-devel] [PATCH 1/2] pxa2xx_lcd: add proper rotation support

2011-05-31 Thread Vasily Khoruzhick
Until now, pxa2xx_lcd only supported 90deg rotation, but some machines (for example Zipit Z2) needs 270deg rotation. Signed-off-by: Vasily Khoruzhick --- hw/framebuffer.c |2 + hw/pxa2xx_lcd.c | 80 - input.c | 34

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Daniel P. Berrange
On Tue, May 31, 2011 at 10:10:37AM -0400, Vivek Goyal wrote: > On Tue, May 31, 2011 at 02:56:46PM +0100, Daniel P. Berrange wrote: > > On Tue, May 31, 2011 at 09:45:37AM -0400, Vivek Goyal wrote: > > > On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote: > > > > Hello, all, > > > > > > > >

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Anthony Liguori
On 05/31/2011 09:04 AM, Vivek Goyal wrote: On Tue, May 31, 2011 at 08:50:40AM -0500, Anthony Liguori wrote: On 05/31/2011 08:45 AM, Vivek Goyal wrote: On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote: Hello, all, I have prepared to work on a feature called "Disk I/O limits" fo

Re: [Qemu-devel] [PATCH] Use SIGIO with caution

2011-05-31 Thread Anthony Liguori
On 05/31/2011 09:06 AM, Jan Kiszka wrote: On 2011-05-31 15:47, Anthony Liguori wrote: On 05/29/2011 04:50 PM, Andreas Färber wrote: BeOS and Haiku don't define SIGIO. When undefined, it won't arrive and doesn't need to be blocked. Signed-off-by: Andreas Färber Anything to do with signal mask

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Vivek Goyal
On Tue, May 31, 2011 at 03:19:56PM +0100, Daniel P. Berrange wrote: > On Tue, May 31, 2011 at 10:10:37AM -0400, Vivek Goyal wrote: > > On Tue, May 31, 2011 at 02:56:46PM +0100, Daniel P. Berrange wrote: > > > On Tue, May 31, 2011 at 09:45:37AM -0400, Vivek Goyal wrote: > > > > On Mon, May 30, 2011

Re: [Qemu-devel] [PATCH] Use SIGIO with caution

2011-05-31 Thread Jan Kiszka
On 2011-05-31 16:26, Anthony Liguori wrote: > On 05/31/2011 09:06 AM, Jan Kiszka wrote: >> On 2011-05-31 15:47, Anthony Liguori wrote: >>> On 05/29/2011 04:50 PM, Andreas Färber wrote: BeOS and Haiku don't define SIGIO. When undefined, it won't arrive and doesn't need to be blocked.

[Qemu-devel] [PATCH] s390x: implement lrvgr

2011-05-31 Thread Alexander Graf
The LRVGR instruction was missing. Implement it, so everyone's happy. Reported-by: Balazs Kutil Signed-off-by: Alexander Graf --- target-s390x/translate.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index afeb5e6

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Ryan Harper
* Daniel P. Berrange [2011-05-31 09:25]: > On Tue, May 31, 2011 at 10:10:37AM -0400, Vivek Goyal wrote: > > On Tue, May 31, 2011 at 02:56:46PM +0100, Daniel P. Berrange wrote: > > > On Tue, May 31, 2011 at 09:45:37AM -0400, Vivek Goyal wrote: > > > > On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Y

[Qemu-devel] [PULL] Few VirtFS patches.

2011-05-31 Thread Venkateswararao Jujjuri
The following changes since commit b1d7d2b93a1d6b2d2848b616cc35acdf521c923c: Anthony Liguori (1): Merge remote-tracking branch 'stefanha/trivial-patches' into staging are available in the git repository at: git://repo.or.cz/qemu/aliguori/jvrao.git for-anthony Aneesh Kumar K.V (3):

Re: [Qemu-devel] [PATCH] Use SIGIO with caution

2011-05-31 Thread Alexander Graf
On 31.05.2011, at 16:54, Jan Kiszka wrote: > On 2011-05-31 16:26, Anthony Liguori wrote: >> On 05/31/2011 09:06 AM, Jan Kiszka wrote: >>> On 2011-05-31 15:47, Anthony Liguori wrote: On 05/29/2011 04:50 PM, Andreas Färber wrote: > BeOS and Haiku don't define SIGIO. When undefined, it won'

Re: [Qemu-devel] [PATCH] Use SIGIO with caution

2011-05-31 Thread Anthony Liguori
On 05/31/2011 10:44 AM, Alexander Graf wrote: On 31.05.2011, at 16:54, Jan Kiszka wrote: On 2011-05-31 16:26, Anthony Liguori wrote: On 05/31/2011 09:06 AM, Jan Kiszka wrote: On 2011-05-31 15:47, Anthony Liguori wrote: On 05/29/2011 04:50 PM, Andreas Färber wrote: BeOS and Haiku don't defi

[Qemu-devel] [PATCH] ppc: provide PIR register on all book-S CPUs

2011-05-31 Thread Nathan Whitehorn
The PIR register is architecturally specified on all PowerPC non-embedded CPUs, but currently is only available on the 604, 620, and G4. Add it to all 601-derived CPUs. target-ppc/translate_init.c | 20 +--- 1 files changed, 5 insertions(+), 15 deletions(-) diff --git a/targ

[Qemu-devel] [PATCH] timer: drop HPET and RTC

2011-05-31 Thread Anthony Liguori
dynticks will provide equally good timer granularity on all modern Linux systems. This is more or less dead code these days. Signed-off-by: Anthony Liguori diff --git a/qemu-timer.c b/qemu-timer.c index 4141b6e..72066c7 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -39,15 +39,6 @@ #include

[Qemu-devel] [PATCH] ppc64: fix mtmsr behavior on 64-bit targets

2011-05-31 Thread Nathan Whitehorn
The mtmsr instruction is required not to modify the upper 32-bits of the machine state register, but checks the current value of MSR[SF] to decide whether to do this. This has the effect of zeroing the upper 32 bits of the MSR whenever mtmsr is executed in 64-bit mode. Unconditionally preserve

Re: [Qemu-devel] [OpenBIOS] solaris 8 on sparc, webstart launcher crashing

2011-05-31 Thread Brian Vandenberg
> Yeah - at this point the kernel should have taken over completely and so I > expect that you're hitting an emulation bug (probably the Solaris compiler > emits certain instruction sequences not used by gcc which is why this has > only just come to light). Alright. I'll do what I can. Thanks

[Qemu-devel] [PATCH] Fix build on FreeBSD

2011-05-31 Thread Nathan Whitehorn
Add some includes required to build qemu on FreeBSD. --- bsd-user/syscall.c |2 ++ iohandler.c|1 + os-posix.c |4 3 files changed, 7 insertions(+), 0 deletions(-) diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c index eb1cdf2..7b49f54 100644 --- a/bsd-user/

[Qemu-devel] QEMU for ppc440 on i386 host

2011-05-31 Thread Lê Đức Tài
Hi! My name is Tai. Sorry for bother you! I have a question about QEMU for powerpc. Can QEMU emulate the ppc440 on a i386 host? I mean it is full-system emulation. Because when I'm trying to run linux ppc440 with qemu on my i386 PC I alway get the error like that: $ qemu-system-ppc -M bamboo -ke

[Qemu-devel] Hello Would You Like To Earn

2011-05-31 Thread Sharon . Burns
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit->http:tinyurl.com/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

[Qemu-devel] [PATCH] smc91c111: qdevify reset

2011-05-31 Thread Peter Maydell
From: Juha Riihimäki Register the smc91c111 reset function as a qdev reset function. Signed-off-by: Juha Riihimäki Reviewed-by: Peter Maydell --- hw/smc91c111.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/hw/smc91c111.c b/hw/smc91c111.c index dafea5c..701b

[Qemu-devel] [PATCH] audio: fix integer overflow expression

2011-05-31 Thread Peter Maydell
From: Juha Riihimäki Fix an integer overflow that can happen for signed 32 bit types when using FLOAT_MIXENG. (Note that at the moment this is only true when using the MacOSX coreaudio audio driver.) Signed-off-by: Juha Riihimäki Reviewed-by: Peter Maydell --- I'm trying to get random patches

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Vivek Goyal
On Tue, May 31, 2011 at 09:25:31AM -0500, Anthony Liguori wrote: > On 05/31/2011 09:04 AM, Vivek Goyal wrote: > >On Tue, May 31, 2011 at 08:50:40AM -0500, Anthony Liguori wrote: > >>On 05/31/2011 08:45 AM, Vivek Goyal wrote: > >>>On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote: > He

Re: [Qemu-devel] [PATCH] ppc: provide PIR register on all book-S CPUs

2011-05-31 Thread Alexander Graf
On 31.05.2011, at 16:52, Nathan Whitehorn wrote: > The PIR register is architecturally specified on all PowerPC non-embedded > CPUs, but currently is only available on the 604, 620, and G4. Add it to all > 601-derived CPUs. Please add a signed-off-by line. Also, please CC me on all PPC related

Re: [Qemu-devel] QEMU for ppc440 on i386 host

2011-05-31 Thread Alexander Graf
On 31.05.2011, at 18:05, Lê Đức Tài wrote: > Hi! > My name is Tai. > Sorry for bother you! > > I have a question about QEMU for powerpc. > Can QEMU emulate the ppc440 on a i386 host? > I mean it is full-system emulation. > Because when I'm trying to run linux ppc440 with qemu on my i386 PC > I

Re: [Qemu-devel] [PATCH] audio: fix integer overflow expression

2011-05-31 Thread Peter Maydell
This definitely had malc on the cc list when I sent it; as far as I can tell the mailing list server ate that cc... -- PMM On 31 May 2011 18:28, Peter Maydell wrote: > From: Juha Riihimäki > > Fix an integer overflow that can happen for signed 32 bit types > when using FLOAT_MIXENG. (Note that

Re: [Qemu-devel] [PATCH] ppc64: fix mtmsr behavior on 64-bit targets

2011-05-31 Thread Alexander Graf
On 31.05.2011, at 16:56, Nathan Whitehorn wrote: > The mtmsr instruction is required not to modify the upper 32-bits of the > machine state register, but checks the current value of MSR[SF] to decide > whether to do this. This has the effect of zeroing the upper 32 bits of the > MSR whenever m

Re: [Qemu-devel] [patch 6/7] QEMU live block copy

2011-05-31 Thread Avi Kivity
On 05/31/2011 07:06 PM, Marcelo Tosatti wrote: On Sun, May 29, 2011 at 11:54:25AM +0300, Avi Kivity wrote: > On 05/24/2011 12:31 AM, Marcelo Tosatti wrote: > >Support live image copy + switch. That is, copy an image backing > >a guest hard disk to a destination image (destination image must >

  1   2   >