Re: [Qemu-devel] [PATCH 1/2] Support for MIPS64 user mode emulation

2011-06-15 Thread Khansa Butt
This is the case for 64 bit guest user mode static binary on 32 bit host. Dynamically linked binary has not this problem see in elfload.c:load_elf_image() for (i = 0; i < ehdr->e_phnum; ++i) { if(phdr[i].p_type == PT_INTERP) dyn_link = 1; if (phdr[i].p_type == PT_LOAD) {

Re: [Qemu-devel] [PATCH] target-ppc: ext32u instead of andi with

2011-06-15 Thread Alexander Graf
On 16.06.2011, at 00:28, Alexander Graf wrote: > From: Aurelien Jarno > > Cc: Alexander Graf > Signed-off-by: Aurelien Jarno Sorry for this one. I set up git-send-mail on a new machine and mistakenly sent this one out as test mail :). Please just ignore it. Alex

Re: [Qemu-devel] [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability

2011-06-15 Thread Stefan Hajnoczi
On Wed, Jun 15, 2011 at 7:16 PM, Venkateswararao Jujjuri wrote: > On 06/15/2011 10:35 AM, Stefan Hajnoczi wrote: >> >> On Tue, Jun 14, 2011 at 9:12 AM, M. Mohan Kumar  wrote: >>> >>> [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability >>> >>> In passthrough security model, follow

Re: [Qemu-devel] user-mode networking not allowing internet traffic

2011-06-15 Thread Amitava Shee
> User mode network (SLIRP) only supports plain TCP and UDP, traceroute and ping (which need ICMP) do not work. Indeed - wget google.com works just fine! Chris, your link to the documentation is helpful. Here's my modified command amitava@bonjovi:~/qemu$ kvm -name cold -m 512 -drive file=$PWD/co

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2011-06-15 Thread moonman
If you need an i386 chroot for testing, I created one a while ago (archlinux): http://www.mediafire.com/download.php?qq63mnay2byqqie -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/739785 Title: qemu

Re: [Qemu-devel] [PATCH] hw/9118.c: Implement active-low interrupt support

2011-06-15 Thread andrzej zaborowski
Hi, On 26 May 2011 18:34, Peter Maydell wrote: > The 9118 ethernet controller interrupt line is active low unless > the IRQ config register is programmed to set both the IRQ_POL > (polarity: active-high) and IRQ_TYPE (type: push-pull) bits: > implement support for inverting the irq output in othe

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2011-06-15 Thread moonman
Ok, it seemed as though "ls" worked from "strace -ff -o ls-strace- alignment-2.log chroot /i386 /usr/bin/qemu-i386 /bin/ls" so I tried to execute the package manager: [root@Plugbox ~]# chroot /i386 /usr/bin/qemu-i386 /usr/bin/pacman -Suy qemu: Unsupported syscall: 240 :: Synchronizing

[Qemu-devel] [PATCH v2] virtio: Define queue_size to unsigned

2011-06-15 Thread Amos Kong
It's not valid for queue_size to be negative, then the type ought to be unsigned. Changes from V1: - drop the check and just define it to unsigned. Signed-off-by: Amos Kong --- hw/virtio.c |2 +- hw/virtio.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/virtio

Re: [Qemu-devel] [RFC 23/23] 40p: Add an 8514/A graphics card

2011-06-15 Thread Roy Tam
2011/6/16 Andreas Färber : > Am 15.06.2011 um 06:33 schrieb Roy Tam: > >> 2011/6/14 Andreas Färber : >>> >>> The IBM E15 is equivalent to an S3 Vision864. >>> >>> Lacking S3 SDAC (86C716) support, the DAC indizes are translated >>> to greyscale colors. This works sufficiently to observe firmware >>

Re: [Qemu-devel] [PATCH 3/3] Use predefined compiler symbols to try and detect ARM or HPPA systems.

2011-06-15 Thread Andreas Färber
Am 26.05.2011 um 05:06 schrieb Brad: Use predefined compiler symbols to try and detect ARM or HPPA systems Subject could be sth. like: "configure: Detect predefined compiler symbols for ARM and HPPA" No need to duplicate the first half of the sentence. Otherwise looks okay, untested. And

Re: [Qemu-devel] [RFC 23/23] 40p: Add an 8514/A graphics card

2011-06-15 Thread Andreas Färber
Am 15.06.2011 um 20:11 schrieb Andreas Färber: Am 15.06.2011 um 06:33 schrieb Roy Tam: 2011/6/14 Andreas Färber : The IBM E15 is equivalent to an S3 Vision864. Lacking S3 SDAC (86C716) support, the DAC indizes are translated to greyscale colors. This works sufficiently to observe firmware bo

Re: [Qemu-devel] [PATCH 09/13] vmware-vga: Use cpu_register_physical_memory_log for dirty log enabling

2011-06-15 Thread andrzej zaborowski
On 14 June 2011 18:53, Jan Kiszka wrote: > This eliminates the last user of vga_dirty_log_start/start. > > CC: Andrzej Zaborowski > Signed-off-by: Jan Kiszka Reviewed-by: Andrzej Zaborowski > --- >  hw/vmware_vga.c |   12 +++- >  1 files changed, 7 insertions(+), 5 deletions(-) > > diff

Re: [Qemu-devel] [PATCH 07/13] vmware_vga: Do not enable dirty logging when in SVGA mode

2011-06-15 Thread andrzej zaborowski
On 14 June 2011 18:53, Jan Kiszka wrote: > Just like on SVGA_REG_ENABLE changes, keep dirty logging off on PCI BAR > remappings when SVGA mode is on. > > CC: Andrzej Zaborowski > Signed-off-by: Jan Kiszka Reviewed-by: Andrzej Zaborowski > --- >  hw/vmware_vga.c |    3 ++- >  1 files changed, 2

[Qemu-devel] [RFC v2 23/23] 40p: Add an IBM 8514/A graphics card

2011-06-15 Thread Andreas Färber
The IBM E15 is equivalent to an S3 Vision864. Lacking S3 SDAC (86C716) support, the DAC indizes are translated to greyscale colors. This works sufficiently to observe firmware boot progress. Cc: Hervé Poussineau Fixed off-by-one drawing issue. Replaced hardcoded color for RECT. Separate I/O deb

Re: [Qemu-devel] [PATCH 08/13] vmware-vga: Register reset service

2011-06-15 Thread andrzej zaborowski
On 14 June 2011 18:53, Jan Kiszka wrote: > Fixes cold reset in vmware graphic modes. > > CC: Andrzej Zaborowski > Signed-off-by: Jan Kiszka Reviewed-by: Andrzej Zaborowski > --- >  hw/vmware_vga.c |    9 ++--- >  1 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/hw/vmware_vg

Re: [Qemu-devel] [PATCH 06/13] vmware-vga: Eliminate vga_dirty_log_restart

2011-06-15 Thread andrzej zaborowski
On 14 June 2011 18:53, Jan Kiszka wrote: > Convert the last user of vga_dirty_log_restart to > cpu_register_physical_memory_log and drop the service. > > CC: Andrzej Zaborowski > Signed-off-by: Jan Kiszka Reviewed-by: Andrzej Zaborowski > --- >  hw/vga.c        |    6 -- >  hw/vga_int.h    

Re: [Qemu-devel] [PATCH 2/3] virtio: Strictly check queue_size when adding virtqueue

2011-06-15 Thread Anthony Liguori
On 06/15/2011 05:53 PM, Amos Kong wrote: On Wed, Jun 15, 2011 at 11:36:02PM +0300, Michael S. Tsirkin wrote: On Wed, Jun 15, 2011 at 10:25:33PM +0800, Amos Kong wrote: Qemu should abort when 'queue_size' is less than or equals to zero. Signed-off-by: Amos Kong BTW, these patches apply upstre

Re: [Qemu-devel] [PATCH] arm: Add const attribute to function parameter

2011-06-15 Thread Peter Maydell
On 15 June 2011 22:22, Stefan Weil wrote: > Parameter 'info' is const, so add the missing > attribute. > > Cc: Andrzej Zaborowski > Signed-off-by: Stefan Weil You could take this a step further and add 'const' to the local variable info in do_cpu_reset() and also to the boot_info field in CPUAR

Re: [Qemu-devel] [PATCH 2/3] virtio: Strictly check queue_size when adding virtqueue

2011-06-15 Thread Amos Kong
On Wed, Jun 15, 2011 at 11:36:02PM +0300, Michael S. Tsirkin wrote: > On Wed, Jun 15, 2011 at 10:25:33PM +0800, Amos Kong wrote: > > Qemu should abort when 'queue_size' is less than or equals to zero. > > > > Signed-off-by: Amos Kong > > BTW, these patches apply upstream so should be sent to qem

Re: [Qemu-devel] [PATCH 06/10] kvm: remove unused variables

2011-06-15 Thread Michael S. Tsirkin
On Wed, Jun 15, 2011 at 07:44:48AM -0500, Chris Krumme wrote: > On 06/14/2011 12:36 PM, Michael S. Tsirkin wrote: > >Signed-off-by: Michael S. Tsirkin > >--- > > hw/virtio-pci.h |8 +--- > > target-i386/kvm.c |3 +-- > > 2 files changed, 6 insertions(+), 5 deletions(-) > > > >diff --

Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables

2011-06-15 Thread Michael S. Tsirkin
On Wed, Jun 15, 2011 at 07:32:50AM -0700, Richard Henderson wrote: > On 06/15/2011 01:35 AM, Alexander Graf wrote: > >> -abi_ulong arg5 = 0, arg6 = 0, arg7 = 0, arg8 = 0; > >> +abi_ulong arg5 = 0, arg6 = 0; > >> > >> nb_args = mips_syscall_args[syscal

Re: [Qemu-devel] [PATCH] PPC: mpc8544ds: Add hypervisor node

2011-06-15 Thread Scott Wood
On Tue, 14 Jun 2011 18:04:21 +0200 Alexander Graf wrote: > When running a PPC guest with KVM that can do PV operations, we need > to indicate the guest which instructions to use for a hypercall and > that it is running as KVM guest. > > This logic was available on openbios based machines already

Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables

2011-06-15 Thread Peter Maydell
On 15 June 2011 09:35, Alexander Graf wrote: > > On 14.06.2011, at 19:36, Michael S. Tsirkin wrote: >>     return 0; >> @@ -7058,18 +7056,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long >> arg1, >>     case TARGET_NR_osf_sigprocmask: >>         { >>             abi_ulong mask; >> -  

[Qemu-devel] [PATCH] PPC: mpc8544ds: Add hypervisor node

2011-06-15 Thread Alexander Graf
When running a PPC guest with KVM that can do PV operations, we need to indicate the guest which instructions to use for a hypercall and that it is running as KVM guest. This logic was available on openbios based machines already. This patch also adds said functionality to the mpc8544ds machine.

Re: [Qemu-devel] [PATCH v3 09/21] qapi: add QMP dispatch functions

2011-06-15 Thread Michael Roth
On 06/15/2011 03:12 PM, Luiz Capitulino wrote: On Wed, 15 Jun 2011 14:45:30 -0500 Anthony Liguori wrote: On 06/15/2011 02:33 PM, Luiz Capitulino wrote: On Mon, 13 Jun 2011 21:31:14 -0500 Michael Roth wrote: +{ +const char *command; +QDict *args, *dict; +QmpCommand *cmd; +

[Qemu-devel] [PATCH] PPC: calculate kernel, initrd, cmdline locations dynamically

2011-06-15 Thread Alexander Graf
During testing, I was generating a vmlinux binary that easily occupied more than 20MB of RAM. Since the current -kernel code loads the initrd at a fixed address behind the kernel, we were overwriting kernel data when the kernel got too big. To finally get rid of the issue, let's calculate the init

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2011-06-15 Thread moonman
[root@Plugbox ~]# strace -ff -o bash-strace-alignment-2.log chroot /i386 /usr/bin/qemu-i386 /bin/bash [root@Plugbox /]# ls bash: fork: Invalid argument [root@Plugbox /]# exit exit ** Attachment added: "bash-strace-alignment-2.log.16325" https://bugs.launchpad.net/qemu/+bug/739785/+attachment

Re: [Qemu-devel] [PATCH RFC 0/3] basic support for composing sysbus devices

2011-06-15 Thread Blue Swirl
On Wed, Jun 15, 2011 at 11:00 PM, Anthony Liguori wrote: > On 06/15/2011 01:56 PM, Blue Swirl wrote: >> >> On Tue, Jun 14, 2011 at 4:21 PM, Anthony Liguori >>  wrote: >>> >>> Which suggests that we really need to move away from declarative device >>> definitions.  It makes it hard to have variable

[Qemu-devel] [PATCH] arm: Add const attribute to function parameter

2011-06-15 Thread Stefan Weil
Parameter 'info' is const, so add the missing attribute. Cc: Andrzej Zaborowski Signed-off-by: Stefan Weil --- hw/arm-misc.h |2 +- hw/arm_boot.c |4 ++-- hw/nseries.c |4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/arm-misc.h b/hw/arm-misc.h index 010acb

Re: [Qemu-devel] [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability

2011-06-15 Thread Andreas Färber
Am 14.06.2011 um 10:12 schrieb M. Mohan Kumar: [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability Subject doesn't need to be duplicated. In passthrough security model, following a symbolic link in the server side could result in TOCTTOU vulnerability. TOCTOU or TOCTTOU?

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2011-06-15 Thread Peter Maydell
No, I just wrote a simple test program to check the thing I thought was the problem (unaligned accesses). Do you still see the mangled text problems you describe earlier in the bug report as well as the 'fork: invalid argument' problem? I've reproduced the fork error message, but not the mangled te

Re: [Qemu-devel] [PATCH v3 09/21] qapi: add QMP dispatch functions

2011-06-15 Thread Luiz Capitulino
On Wed, 15 Jun 2011 15:45:20 -0500 Michael Roth wrote: > On 06/15/2011 03:12 PM, Luiz Capitulino wrote: > > On Wed, 15 Jun 2011 14:45:30 -0500 > > Anthony Liguori wrote: > > > >> On 06/15/2011 02:33 PM, Luiz Capitulino wrote: > >>> On Mon, 13 Jun 2011 21:31:14 -0500 > >>> Michael Roth wrote: >

Re: [Qemu-devel] [PATCH 2/2] get_maintainer: update to match qemu tree

2011-06-15 Thread Michael S. Tsirkin
On Wed, Jun 15, 2011 at 10:01:10PM +0300, Blue Swirl wrote: > On Tue, Jun 14, 2011 at 8:38 PM, Michael S. Tsirkin wrote: > > Signed-off-by: Michael S. Tsirkin Thanks, I've patched these. > > --- > >  scripts/get_maintainer.pl |   29 +++-- > >  1 files changed, 7 insertio

Re: [Qemu-devel] user-mode networking not allowing internet traffic

2011-06-15 Thread Blue Swirl
On Wed, Jun 15, 2011 at 9:12 PM, Amitava Shee wrote: > My ubuntu 11.04 guest is not able to connect to the internet when launched > as -net user. Any help is much appreciated. > > qemu command line > == > amitava@bonjovi:/var/vms$ qemu-system-x86_64 -m 512 -drive > index=0,media=disk,i

[Qemu-devel] [Bug 797905] [NEW] virsh live migration

2011-06-15 Thread Marcus Paiva
Public bug reported: Hi, i do not manage to do a virsh migrate live command. Using Ubuntu Server 10.04 x64 root@svr50abl:~# virsh list Id Nome Estado -- 18 Winxpexecutando 19 testeexecutando root@svr50abl:~# sudo

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2011-06-15 Thread moonman
Garbled text might have been fixed in the recent versions as it seems. Even with User faults == 0 the text is not garbled. [root@Plugbox ~]# strace -ff -o ls-strace.log chroot /i386 /usr/bin/qemu-i386 /bin/ls Inconsistency detected by ld.so: dl-version.c: 230: _dl_check_map_versions: Assertion

Re: [Qemu-devel] [PATCH v3] Introduce format string for pid_t

2011-06-15 Thread Blue Swirl
Thanks, applied. On Thu, Jun 2, 2011 at 8:58 PM, Andreas Färber wrote: > BeOS and Haiku on i386 use long for 32-bit types, including pid_t. > Using %d with pid_t therefore results in a warning. > > Unfortunately POSIX:2008 does not define a PRId* string for pid_t. > > In some places pid_t was pre

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2011-06-15 Thread moonman
** Attachment added: "ls-strace-alignment-2.log.15427" https://bugs.launchpad.net/qemu/+bug/739785/+attachment/2170433/+files/ls-strace-alignment-2.log.15427 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.n

Re: [Qemu-devel] [PATCH v3 17/21] qapi: configure, Fix build issue when using seperate build dir

2011-06-15 Thread Luiz Capitulino
On Mon, 13 Jun 2011 21:31:22 -0500 Michael Roth wrote: > > Signed-off-by: Michael Roth As I commented before, this should be part of the first patch adding a buildable code. > --- > configure |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/configure b/configure

Re: [Qemu-devel] [PATCH v3 09/21] qapi: add QMP dispatch functions

2011-06-15 Thread Luiz Capitulino
On Wed, 15 Jun 2011 14:45:30 -0500 Anthony Liguori wrote: > On 06/15/2011 02:33 PM, Luiz Capitulino wrote: > > On Mon, 13 Jun 2011 21:31:14 -0500 > > Michael Roth wrote: > > > > > >> +{ > >> +const char *command; > >> +QDict *args, *dict; > >> +QmpCommand *cmd; > >> +QObject *ret

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

2011-06-15 Thread Blue Swirl
On Tue, Jun 14, 2011 at 8:11 PM, Peter Maydell wrote: > Ping? Thanks, applied. > On 31 May 2011 17:48, Peter Maydell wrote: >> From: Juha Riihimäki >> >> Register the smc91c111 reset function as a qdev reset function. >> >> Signed-off-by: Juha Riihimäki >> Reviewed-by: Peter Maydell >> --- >

Re: [Qemu-devel] [PATCH v3 09/21] qapi: add QMP dispatch functions

2011-06-15 Thread Anthony Liguori
On 06/15/2011 02:33 PM, Luiz Capitulino wrote: On Mon, 13 Jun 2011 21:31:14 -0500 Michael Roth wrote: +{ +const char *command; +QDict *args, *dict; +QmpCommand *cmd; +QObject *ret = NULL; + +if (qobject_type(request) != QTYPE_QDICT) { +error_set(errp, QERR_JSON_PAR

Re: [Qemu-devel] [PATCH RFC 0/3] basic support for composing sysbus devices

2011-06-15 Thread Anthony Liguori
On 06/15/2011 01:56 PM, Blue Swirl wrote: On Tue, Jun 14, 2011 at 4:21 PM, Anthony Liguori wrote: Which suggests that we really need to move away from declarative device definitions. It makes it hard to have variable numbers of properties. I'd suppose the number of slots could be fixed. The

Re: [Qemu-devel] [PATCH v3 18/21] qapi: Makefile changes to build test-visitor

2011-06-15 Thread Luiz Capitulino
On Mon, 13 Jun 2011 21:31:23 -0500 Michael Roth wrote: > > Signed-off-by: Michael Roth > --- > Makefile | 16 +++- > 1 files changed, 15 insertions(+), 1 deletions(-) This should be merged with the patch adding the test-visitor code. > > diff --git a/Makefile b/Makefile > inde

Re: [Qemu-devel] [PULL 00/10] Fixes for Cocoa backend

2011-06-15 Thread Blue Swirl
On Tue, Jun 14, 2011 at 4:21 AM, Andreas Färber wrote: > Hello, > > I've collected a number of warning and usability fixes for the Cocoa frontend > and Darwin host. Please pull. > > Cc: Blue Swirl Thanks, pulled. > The following changes since commit 0b862cedf36d927818c50584ddd611b0370673df: > >

Re: [Qemu-devel] [PATCH v3 20/21] qapi: Makefile changes to build test-qmp-commands

2011-06-15 Thread Luiz Capitulino
On Mon, 13 Jun 2011 21:31:25 -0500 Michael Roth wrote: > > Signed-off-by: Michael Roth > --- > Makefile |8 +++- > 1 files changed, 7 insertions(+), 1 deletions(-) Should be merged with the previous patch. > > diff --git a/Makefile b/Makefile > index 6083085..6adf1a9 100644 > --- a/

Re: [Qemu-devel] [PATCH v3 09/21] qapi: add QMP dispatch functions

2011-06-15 Thread Luiz Capitulino
On Mon, 13 Jun 2011 21:31:14 -0500 Michael Roth wrote: > Given an object recieved via QMP, this code uses the dispatch table > provided by qmp_registry.c to call the corresponding marshalling/dispatch > function and format return values/errors for delivery to the QMP. > Currently only synchronous

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2011-06-15 Thread moonman
Did you modify some code to get it working on your armv5 ? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/739785 Title: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument) Status

Re: [Qemu-devel] [PATCH v3 12/21] qapi: add qapi-types.py code generator

2011-06-15 Thread Luiz Capitulino
On Mon, 13 Jun 2011 21:31:17 -0500 Michael Roth wrote: > This is the code generator for qapi types. It will generation the > following files: > > $(prefix)qapi-types.h - C types corresponding to types defined in > the schema you pass in > $(prefix)qapi-types.c - Cle

Re: [Qemu-devel] [PATCH v2] Add support for fd: protocol

2011-06-15 Thread Blue Swirl
On Tue, Jun 14, 2011 at 4:31 PM, Corey Bryant wrote: > sVirt provides SELinux MAC isolation for Qemu guest processes and their > corresponding resources (image files). sVirt provides this support > by labeling guests and resources with security labels that are stored > in file system extended attr

Re: [Qemu-devel] [PATCH 2/2] get_maintainer: update to match qemu tree

2011-06-15 Thread Blue Swirl
On Tue, Jun 14, 2011 at 8:38 PM, Michael S. Tsirkin wrote: > Signed-off-by: Michael S. Tsirkin > --- >  scripts/get_maintainer.pl |   29 +++-- >  1 files changed, 7 insertions(+), 22 deletions(-) > > diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl > inde

Re: [Qemu-devel] [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability

2011-06-15 Thread Venkateswararao Jujjuri
On 06/15/2011 10:35 AM, Stefan Hajnoczi wrote: On Tue, Jun 14, 2011 at 9:12 AM, M. Mohan Kumar wrote: [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability In passthrough security model, following a symbolic link in the server side could result in TOCTTOU vulnerability. Use cl

Re: [Qemu-devel] [RFC 23/23] 40p: Add an 8514/A graphics card

2011-06-15 Thread Andreas Färber
Am 15.06.2011 um 06:33 schrieb Roy Tam: 2011/6/14 Andreas Färber : The IBM E15 is equivalent to an S3 Vision864. Lacking S3 SDAC (86C716) support, the DAC indizes are translated to greyscale colors. This works sufficiently to observe firmware boot progress. IMO we can generalize it as a gen

Re: [Qemu-devel] [RFC v4 00/12] ISA reconfigurability v4

2011-06-15 Thread Blue Swirl
On Tue, Jun 14, 2011 at 12:09 AM, Andreas Färber wrote: > Am 13.06.2011 um 22:08 schrieb Blue Swirl: > >> On Wed, Jun 8, 2011 at 9:55 PM, Andreas Färber >> wrote: >>> >>> I've refined the series to track the state in ISADevice and to expose it >>> as VMState. >>> Error handling has been improved,

[Qemu-devel] [patch 4/4] QEMU live block copy

2011-06-15 Thread Marcelo Tosatti
Support live image copy + switch. That is, copy an image backing a guest hard disk to a destination image (destination image must be created separately), and switch to this copy. Command syntax: block_copy device filename [-i] -- live block copy device to image -i for incremental cop

Re: [Qemu-devel] [PATCH v3 07/21] qapi: add QAPI dealloc visitor

2011-06-15 Thread Luiz Capitulino
On Mon, 13 Jun 2011 21:31:12 -0500 Michael Roth wrote: > Type of Visitor class that can be passed into a qapi-generated C > type's visitor function to free() any heap-allocated data types. > > Signed-off-by: Michael Roth > --- > Makefile.objs |2 +- > qapi/qapi-dealloc-visito

Re: [Qemu-devel] [PATCH RFC 0/3] basic support for composing sysbus devices

2011-06-15 Thread Blue Swirl
On Tue, Jun 14, 2011 at 4:21 PM, Anthony Liguori wrote: > On 06/13/2011 03:59 PM, Blue Swirl wrote: >> >> On Sun, Jun 12, 2011 at 10:21 PM, Anthony Liguori >>  wrote: >>> >>> On 06/12/2011 12:12 PM, Avi Kivity wrote: On 06/10/2011 06:43 PM, Anthony Liguori wrote: > >> What exactl

[Qemu-devel] [patch 3/4] Add blkdebug points for live block copy

2011-06-15 Thread Marcelo Tosatti
Signed-off-by: Marcelo Tosatti Index: qemu-block-copy/block.h === --- qemu-block-copy.orig/block.h +++ qemu-block-copy/block.h @@ -295,6 +295,14 @@ typedef enum { BLKDBG_CLUSTER_ALLOC_BYTES, BLKDBG_CLUSTER_FREE, +BLKD

[Qemu-devel] Reminder about your invitation from 용준 공용준

2011-06-15 Thread LinkedIn Invitations
LinkedIn This invitation is awaiting your response: From 용준 공용준 -- (c) 2011, LinkedIn Corporation

Re: [Qemu-devel] [PATCH] target-arm: Minimal implementation of performance counters

2011-06-15 Thread Peter Maydell
On 16 May 2011 18:51, Peter Maydell wrote: > On 16 May 2011 18:29, Aurelien Jarno wrote: >> That said given this patch is more or less an extension of an existing >> code, we may want to apply it anyway. > > That is the conclusion I'm hoping to persuade you to, yes :-) This patch seems to have g

Re: [Qemu-devel] [PATCH] v6 revamp acpitable parsing and allow to specify complete (headerful) table

2011-06-15 Thread Blue Swirl
On Sat, Jun 11, 2011 at 1:29 AM, Michael Tokarev wrote: > I've given up on this one.  Personally I don't need > this stuff for my win7 guests since I can hack either > bios or the O/S loader to include all the necessary > verifications for the win7 activation to work.  I > tried to make this proce

[Qemu-devel] [patch 1/4] Add blkmirror block driver

2011-06-15 Thread Marcelo Tosatti
Mirrored writes are used by live block copy. Signed-off-by: Marcelo Tosatti Index: qemu-block-copy/block/blkmirror.c === --- /dev/null +++ qemu-block-copy/block/blkmirror.c @@ -0,0 +1,282 @@ +/* + * Block driver for mirrored writes.

[Qemu-devel] user-mode networking not allowing internet traffic

2011-06-15 Thread Amitava Shee
My ubuntu 11.04 guest is not able to connect to the internet when launched as -net user. Any help is much appreciated. qemu command line == amitava@bonjovi:/var/vms$ qemu-system-x86_64 -m 512 -drive index=0,media=disk,if=virtio,file=ub2.qcow2,boot=on -vnc :0 -monitor stdio -net nic,mod

[Qemu-devel] [patch 2/4] Add error messages for live block copy

2011-06-15 Thread Marcelo Tosatti
Signed-off-by: Marcelo Tosatti Index: qemu-block-copy/qerror.c === --- qemu-block-copy.orig/qerror.c +++ qemu-block-copy/qerror.c @@ -209,6 +209,14 @@ static const QErrorStringTable qerror_ta .error_fmt = QERR_VNC_SERVER_FAI

[Qemu-devel] [PATCH] hw/usb-ohci.c: Fix handling of remote wakeup corner cases

2011-06-15 Thread Peter Maydell
Correct a number of minor errors in the OHCI wakeup implementation: * when the port is suspended but the controller is not, raise RHSC * when the controller is suspended but the port is not, raise RD * when the controller is suspended, move it to resume state These fix some edge cases where a U

Re: [Qemu-devel] [PATCH 3/3] Use predefined compiler symbols to try and detect ARM or HPPA systems.

2011-06-15 Thread Brad
On 25/05/11 11:06 PM, Brad wrote: Use predefined compiler symbols to try and detect ARM or HPPA systems to be able to detect some ARM / HPPA based architectures such as with OpenBSD/(armish / zaurus) or OpenBSD/hppa. Signed-off-by: Brad Smith ping. --- configure |8 +++- 1 files c

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

2011-06-15 Thread Marcelo Tosatti
On Tue, Jun 07, 2011 at 01:15:02PM +0100, Stefan Hajnoczi wrote: > On Mon, Jun 6, 2011 at 5:55 PM, Marcelo Tosatti wrote: > > I haven't reviewed this whole patch yet, but comments below. > > This patch, like image streaming, may hit deadlocks due to synchronous > I/O emulation. I discovered thi

[Qemu-devel] [PATCH] Added legacy 9P2000 support back into QEMU

2011-06-15 Thread William K. Bittner
It was tested with v9fs in the guest by using: sudo mount -t 9p -o trans=virtio,version=9p2000 v_boot /pmnt Signed-off-by: William K. Bittner diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index b5fc52b..febfba2 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -1186,6 +1186

Re: [Qemu-devel] [PATCH v3 05/21] qapi: add QMP input visitor

2011-06-15 Thread Michael Roth
On 06/15/2011 11:11 AM, Luiz Capitulino wrote: On Mon, 13 Jun 2011 21:31:10 -0500 Michael Roth wrote: +Visitor *qmp_input_get_visitor(QmpInputVisitor *v) +{ +return&v->visitor; +} + +void qmp_input_visitor_cleanup(QmpInputVisitor *v) +{ You're not decrementing the reference to v->obj.

Re: [Qemu-devel] [PATCH v3 05/21] qapi: add QMP input visitor

2011-06-15 Thread Luiz Capitulino
On Wed, 15 Jun 2011 11:56:03 -0500 Michael Roth wrote: > On 06/15/2011 11:11 AM, Luiz Capitulino wrote: > > On Mon, 13 Jun 2011 21:31:10 -0500 > > Michael Roth wrote: > > > > >> +Visitor *qmp_input_get_visitor(QmpInputVisitor *v) > >> +{ > >> +return&v->visitor; > >> +} > >> + > >> +void qm

Re: [Qemu-devel] [RFC] Specifying storage devices for live migration

2011-06-15 Thread Marcelo Tosatti
On Wed, Jun 15, 2011 at 02:06:21PM +0300, Avishay Traeger wrote: > > Hello all, > Currently there is no way to choose storage devices to be migrated. There > was some discussion about making the monitor API a bit more flexible, but > the code was never written: > http://lists.gnu.org/archive/html

Re: [Qemu-devel] [PATCH] Command line support for altering the log file location

2011-06-15 Thread Blue Swirl
Thanks, applied. On Wed, Jun 8, 2011 at 5:32 AM, Matthew Fernandez wrote: > Add command line support for logging to a location other than /tmp/qemu.log. > > With logging enabled (command line option -d), the log is written to > the hard-coded path /tmp/qemu.log. This patch adds support for writin

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

2011-06-15 Thread Alexander Graf
Am 15.06.2011 um 18:34 schrieb Avi Kivity : > On 06/15/2011 11:24 AM, Alexander Graf wrote: >> I'm actually not quite sure what exactly he's describing here. But if it's >> bypassing the bus logic, it's not a normal PCI device :). Sure, there are >> special case devices that also expose a PCI i

Re: [Qemu-devel] [RFC] Specifying storage devices for live migration

2011-06-15 Thread Marcelo Tosatti
On Wed, Jun 15, 2011 at 02:22:22PM -0300, Marcelo Tosatti wrote: > On Wed, Jun 15, 2011 at 02:06:21PM +0300, Avishay Traeger wrote: > > > > Hello all, > > Currently there is no way to choose storage devices to be migrated. There > > was some discussion about making the monitor API a bit more flex

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

2011-06-15 Thread Stefano Stabellini
Compared to the last version I only added a comment to the code. - remove i440FX-xen and i440fx_write_config_xen we don't need to intercept pci config writes to i440FX anymore; - introduce PIIX3-xen and piix3_write_config_xen we do need to intercept pci config write to the PCI-ISA bridge to updat

[Qemu-devel] [PULL 0/2] Trivial patches for June 9 to June 15 2011

2011-06-15 Thread Stefan Hajnoczi
The following changes since commit 71f34ad05359d7fa97996562d904979281ddc7f5: Merge remote-tracking branch 'alon/pull-libcacard-1' into staging (2011-06-15 09:03:49 -0500) are available in the git repository at: ssh://repo.or.cz/srv/git/qemu/stefanha.git trivial-patches Alexandre Raymond (1

[Qemu-devel] [patch 0/4] live block copy (v5)

2011-06-15 Thread Marcelo Tosatti
v5: - fix several leaks in block-copy and blkmirror - change progress status reporting - support migration - fix buffer overwrite bug in blkmirror v4: - add block-copy documentation - block-copy style fixes - fix blkmirror_cancel method - blkmirror style fixes - add escaping to blkmirror pathnames

[Qemu-devel] [PATCH 2/2] Fix typo in cpus.c

2011-06-15 Thread Stefan Hajnoczi
From: Alexandre Raymond filed -> failed Signed-off-by: Alexandre Raymond Signed-off-by: Stefan Hajnoczi --- cpus.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cpus.c b/cpus.c index 1fc34b7..4ab76f0 100644 --- a/cpus.c +++ b/cpus.c @@ -297,7 +297,7 @@ static void

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

2011-06-15 Thread Avi Kivity
On 06/15/2011 11:24 AM, Alexander Graf wrote: I'm actually not quite sure what exactly he's describing here. But if it's bypassing the bus logic, it's not a normal PCI device :). Sure, there are special case devices that also expose a PCI interface. But real PCI cards that you plug in onto the

[Qemu-devel] [RFC] qxl: set mm_time in vga update

2011-06-15 Thread Alon Levy
This fixes a problem where on windows 7 startup phase, before the qxl driver is loaded, the drawables are sufficiently large and video like to trigger a stream, but the lack of a filled mm time field triggers a warning in spice-gtk. --- ui/spice-display.c |5 + 1 files changed, 5 insertion

Re: [Qemu-devel] [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability

2011-06-15 Thread Stefan Hajnoczi
On Tue, Jun 14, 2011 at 9:12 AM, M. Mohan Kumar wrote: > [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability > > In passthrough security model, following a symbolic link in the server > side could result in TOCTTOU vulnerability. > > Use clone system call to create a thread which

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

2011-06-15 Thread Stefan Hajnoczi
From: Christophe Fergeau This warning is new in gcc 4.6. Signed-off-by: Christophe Fergeau Acked-by: Paolo Bonzini Signed-off-by: Stefan Hajnoczi --- hw/lsi53c895a.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 83084b6..90c

[Qemu-devel] [PATCH] xen: only track the linear framebuffer

2011-06-15 Thread Stefano Stabellini
Xen can only do dirty bit tracking for one memory region, so we should explicitly avoid trying to track anything but the vga vram region. Signed-off-by: Stefano Stabellini diff --git a/xen-all.c b/xen-all.c index 9a5c3ec..fa1d2e1 100644 --- a/xen-all.c +++ b/xen-all.c @@ -214,6 +214,7 @@ static

Re: [Qemu-devel] [PATCH] xen: avoid tracking the region 0xa0000 - 0xbffff

2011-06-15 Thread Stefano Stabellini
On Wed, 15 Jun 2011, Alexander Graf wrote: > Please add a comment here, explaining that Xen can only handle a single dirty > log region for now, and that we want the linear framebuffer to be that > region. Also, please resend with proper patch headers and I'll pull it into > the xen-next tree. >

Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables

2011-06-15 Thread Richard Henderson
On 06/15/2011 01:35 AM, Alexander Graf wrote: >> -abi_ulong arg5 = 0, arg6 = 0, arg7 = 0, arg8 = 0; >> +abi_ulong arg5 = 0, arg6 = 0; >> >> nb_args = mips_syscall_args[syscall_num]; >> sp_reg = env->active_tc.gpr[29]; >>

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

2011-06-15 Thread Marcelo Tosatti
On Tue, Jun 07, 2011 at 12:15:55PM +0200, Jiri Denemark wrote: > On Mon, Jun 06, 2011 at 14:03:44 -0300, Marcelo Tosatti wrote: > ... > > + "return":[ > > +{"device":"ide1-hd0", > > +"status":"active", > > +"info":{ > > + "percentage":23, > > +

Re: [Qemu-devel] [PATCH 04/10] lsi53c895a: remove unused variables

2011-06-15 Thread Stefan Hajnoczi
On Tue, Jun 14, 2011 at 08:35:44PM +0300, Michael S. Tsirkin wrote: > Signed-off-by: Michael S. Tsirkin > --- > hw/lsi53c895a.c |2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) This one is already in the trivial-patches tree. Stefan

Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables

2011-06-15 Thread Michael S. Tsirkin
On Wed, Jun 15, 2011 at 10:35:19AM +0200, Alexander Graf wrote: > > On 14.06.2011, at 19:36, Michael S. Tsirkin wrote: > > > Signed-off-by: Michael S. Tsirkin > > --- > > linux-user/flatload.c | 10 ++ > > linux-user/linuxload.c | 25 + > > linux-user/main.c

Re: [Qemu-devel] [PATCH 06/10] kvm: remove unused variables

2011-06-15 Thread Chris Krumme
On 06/14/2011 12:36 PM, Michael S. Tsirkin wrote: Signed-off-by: Michael S. Tsirkin --- hw/virtio-pci.h |8 +--- target-i386/kvm.c |3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h index a4b5fd3..b518917 100644 --- a/hw/virt

Re: [Qemu-devel] [PATCH 06/10] kvm: remove unused variables

2011-06-15 Thread Michael S. Tsirkin
On Wed, Jun 15, 2011 at 09:38:39AM +0200, Kevin Wolf wrote: > Am 14.06.2011 19:36, schrieb Michael S. Tsirkin: > > Signed-off-by: Michael S. Tsirkin > > --- > > hw/virtio-pci.h |8 +--- > > target-i386/kvm.c |3 +-- > > 2 files changed, 6 insertions(+), 5 deletions(-) > > > > diff

Re: [Qemu-devel] [PATCH 06/10] kvm: remove unused variables

2011-06-15 Thread Jan Kiszka
On 2011-06-15 10:25, Michael S. Tsirkin wrote: > On Wed, Jun 15, 2011 at 09:38:39AM +0200, Kevin Wolf wrote: >> Am 14.06.2011 19:36, schrieb Michael S. Tsirkin: >>> Signed-off-by: Michael S. Tsirkin >>> --- >>> hw/virtio-pci.h |8 +--- >>> target-i386/kvm.c |3 +-- >>> 2 files chang

Re: [Qemu-devel] [PATCH 03/10] usb-ehci: remove unused variables

2011-06-15 Thread Gerd Hoffmann
On 06/14/11 19:35, Michael S. Tsirkin wrote: Signed-off-by: Michael S. Tsirkin usb patch queue has a simliar fix already. I'd suggest to drop this to reduce merge conflicts. cheers, Gerd

Re: [Qemu-devel] [PATCH 06/10] kvm: remove unused variables

2011-06-15 Thread Kevin Wolf
Am 14.06.2011 19:36, schrieb Michael S. Tsirkin: > Signed-off-by: Michael S. Tsirkin > --- > hw/virtio-pci.h |8 +--- > target-i386/kvm.c |3 +-- > 2 files changed, 6 insertions(+), 5 deletions(-) > > diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h > index a4b5fd3..b518917 100644 >

Re: [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables

2011-06-15 Thread Alexander Graf
On 14.06.2011, at 19:36, Michael S. Tsirkin wrote: > Signed-off-by: Michael S. Tsirkin > --- > linux-user/flatload.c | 10 ++ > linux-user/linuxload.c | 25 + > linux-user/main.c |6 +++--- > linux-user/signal.c|5 - > linux-user/syscall.c

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

2011-06-15 Thread Stefano Stabellini
On Wed, 15 Jun 2011, Alexander Graf wrote: > > commit 973bb091a967fdec37a1bc8fe30d46a483d2903d > > Author: Stefano Stabellini > > Date: Tue May 17 12:10:36 2011 + > > > >xen: fix interrupt routing > > > >- remove i440FX-xen and i440fx_write_config_xen > >we don't need to interc

Re: [Qemu-devel] [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability

2011-06-15 Thread Stefan Hajnoczi
On Tue, Jun 14, 2011 at 9:12 AM, M. Mohan Kumar wrote: > [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability > > In passthrough security model, following a symbolic link in the server > side could result in TOCTTOU vulnerability. > > Use clone system call to create a thread which

Re: [Qemu-devel] [PATCH v3 05/21] qapi: add QMP input visitor

2011-06-15 Thread Luiz Capitulino
On Mon, 13 Jun 2011 21:31:10 -0500 Michael Roth wrote: > A type of Visiter class that is used to walk a qobject's > structure and assign each entry to the corresponding native C type. > Command marshaling function will use this to pull out QMP command > parameters recieved over the wire and pass

Re: [Qemu-devel] [PATCH v3 04/21] qapi: add QAPI visitor core

2011-06-15 Thread Michael Roth
On 06/15/2011 09:33 AM, Luiz Capitulino wrote: On Mon, 13 Jun 2011 21:31:09 -0500 Michael Roth wrote: Base definitions/includes for Visiter interface used by generated visiter/marshalling code. Includes a GenericList type. Our lists require an embedded element. Since these types are generated

Re: [Qemu-devel] [RFC] Specifying storage devices for live migration

2011-06-15 Thread Avishay Traeger
Stefan Hajnoczi wrote on 15/06/2011 15:49:12: > > Hello all, > > Currently there is no way to choose storage devices to be migrated. There > > was some discussion about making the monitor API a bit more flexible, but > > the code was never written: > > http://lists.gnu.org/archive/html/qemu-devel/

Re: [Qemu-devel] [PATCH v3 04/21] qapi: add QAPI visitor core

2011-06-15 Thread Luiz Capitulino
On Mon, 13 Jun 2011 21:31:09 -0500 Michael Roth wrote: > Base definitions/includes for Visiter interface used by generated > visiter/marshalling code. > > Includes a GenericList type. Our lists require an embedded element. > Since these types are generated, if you want to use them in a different

  1   2   >