[Qemu-devel] Re: 64-bit Qemu and remote GDB to Kernel Error

2010-10-05 Thread Jan Kiszka
Am 04.10.2010 23:32, Matt Davis wrote: On Mon, Oct 4, 2010 at 8:00 PM, Jan Kiszka jan.kis...@siemens.com wrote: Am 04.10.2010 04:47, Matt Davis wrote: Hello, I am trying to debug a 32-bit linux kernel with gdb and qemu. My qemu runs the 64-bit kernel as: u...@host qemu -kernel vmlinuz -S -s

Re: [Qemu-devel] [PATCH] configure: include stddef.h for NULL

2010-10-05 Thread Markus Armbruster
Scott Wood scottw...@freescale.com writes: This fixes an observed failure to detect madvise() on Linux. To avoid similar issues, all other tests that use NULL but don't already have stddef.h are also fixed. Appreciated, but several instances don't need fixing, because existing includes

[Qemu-devel] [PATCH REPOST] Watchdog: disable watchdog timer when hard-rebooting a guest

2010-10-05 Thread Richard W.M. Jones
[Repost: I've attached the patch and put the commit message in the main email this time] This commit causes the watchdog timer to be reset when a guest is hard-rebooted. The failure case previously was as follows: (a) guest boots, watchdog is enabled (b) guest does a reset eg: echo

[Qemu-devel] Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-05 Thread rukhsana ansari
Hi, W.r.t: Note that this is a tradeoff.  If an idle core is available and the scheduler places the iothread on that core, then the heavyweight exit is replaced by a lightweight exit + IPI.  If the iothread is co-located with the vcpu, then we'll take a heavyweight exit in any case. Q: Does

[Qemu-devel] Re: -global option parsing

2010-10-05 Thread Gerd Hoffmann
On 10/05/10 12:59, Michael S. Tsirkin wrote: -global virtio_net_pci.hahah=0 seems to be run, with an invalid option being silently ignored. Is this intentional? It is a invalid driver which is ignored ... Invalid options *are* catched (try virtio-net-pci.foo=42). I think failing

[Qemu-devel] -global option parsing

2010-10-05 Thread Michael S. Tsirkin
-global virtio_net_pci.hahah=0 seems to be run, with an invalid option being silently ignored. Is this intentional? I think failing with an error would be better ... -- MST

[Qemu-devel] [PATCH 1/4] trace: Use portable format strings

2010-10-05 Thread Stefan Hajnoczi
It is not portable to use %ld for int64_t because int64_t may have type long on 64-bit platforms and long long on 32-bit platforms. Use the standard library PRId64 macros to keep format strings portable. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- docs/tracing.txt |4

[Qemu-devel] [PATCH 3/4] trace: Use TP_PROTO() and TP_ARGS() for LTTng UST

2010-10-05 Thread Stefan Hajnoczi
The LTTng UserSpace Tracer formerly used TPPROTO() and TPARGS() instead of TP_PROTO() and TP_ARGS() like the kernel uses. This has been changed so QEMU needs to follow. I am not aware of a graceful way of making the transition but since no one complained that the UST build is broken, it should

[Qemu-devel] Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-05 Thread Avi Kivity
On 10/05/2010 01:00 PM, rukhsana ansari wrote: Hi, W.r.t: Note that this is a tradeoff. If an idle core is available and the scheduler places the iothread on that core, then the heavyweight exit is replaced by a lightweight exit + IPI. If the iothread is co-located with the vcpu,

[Qemu-devel] Re: [patch uq/master 5/8] Export qemu_ram_addr_from_host

2010-10-05 Thread Anthony Liguori
On 10/04/2010 01:54 PM, Marcelo Tosatti wrote: To be used by next patches. Signed-off-by: Marcelo Tosattimtosa...@redhat.com Index: qemu/cpu-common.h === --- qemu.orig/cpu-common.h +++ qemu/cpu-common.h @@ -47,6 +47,7 @@ void

[Qemu-devel] [Bug 655120] Re: VirtFS EFAULT when accessing not existing files

2010-10-05 Thread Moshroum
a good other example is tar: $ cd /mnt $ tar xvfj linux-2.6.35.2.tar.bz2 tar (child): bzip2: Cannot exec: Bad address tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now $ tar xvf 2.6.36-rc6.tar 2.6.36-rc6/ tar: 2.6.36-rc6:

[Qemu-devel] [Bug 655120] Re: VirtFS EFAULT when accessing not existing files

2010-10-05 Thread Moshroum
The untar without bz2 (second example) also happens when setting PATH to /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -- VirtFS EFAULT when accessing not existing files https://bugs.launchpad.net/bugs/655120 You received this bug notification because you are a member of qemu-

[Qemu-devel] [Bug 655120] [NEW] VirtFS EFAULT when accessing not existing files

2010-10-05 Thread Moshroum
Public bug reported: use as client Debian squeeze i386 with a custom kernel: Linux (none) 2.6.35.5 #3 Thu Sep 23 18:36:02 UTC 2010 i686 GNU/Linux And as host Debian squeeze amd64 Linux asd 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/Linux kvm version is: kvm-88-5908-gdd67374

[Qemu-devel] [Bug 655120] Re: VirtFS EFAULT when accessing not existing files

2010-10-05 Thread Moshroum
** Description changed: - use as client Debian squeeze i386 with a custom kernel: +  use as client Debian squeeze i386 with a custom kernel: Linux (none) 2.6.35.5 #3 Thu Sep 23 18:36:02 UTC 2010 i686 GNU/Linux And as host Debian squeeze amd64 Linux asd 2.6.32-5-amd64 #1 SMP Fri Sep 17

[Qemu-devel] Re: KVM call agenda for Oct 5

2010-10-05 Thread Chris Wright
* Chris Wright (chr...@redhat.com) wrote: Please send in any agenda items you are interested in covering. No agenda, call cancelled. thanks, -chris

[Qemu-devel] [PATCH] monitor: add usb_detach

2010-10-05 Thread Alon Levy
Signed-off-by: Alon Levy al...@redhat.com --- qemu-monitor.hx | 17 + sysemu.h|1 + vl.c| 41 + 3 files changed, 59 insertions(+), 0 deletions(-) diff --git a/qemu-monitor.hx b/qemu-monitor.hx index

[Qemu-devel] [Bug 423910] Re: openbios-sparc has no installation candidate

2010-10-05 Thread Mathias Gug
Thank you for taking the time to report this bug and helping to make Ubuntu better. openbios-sparc is a suggestion rather than a recommendation of the qemu-common package in maverick: http://packages.ubuntu.com/maverick/qemu-common Marking this bug as fixed released. ** Changed in: qemu-kvm

[Qemu-devel] Re: 8 NIC limit

2010-10-05 Thread Dustin Kirkland
On Tue, Oct 5, 2010 at 7:48 AM, linux_...@proinbox.com wrote: Hello list: I'm working on a project that calls for the creation of a firewall in KVM. While adding a 20-interface trunk of virtio adapters to bring in a dual 10GB bond, I've discovered an 8 NIC limit in QEMU. I found the

Re: [Qemu-devel] [patch uq/master 0/8] port qemu-kvm's MCE support

2010-10-05 Thread Andreas Färber
Marcelo, Am 04.10.2010 um 20:54 schrieb Marcelo Tosatti: I assume something went wrong with your cover letter here. It would've been nice to see MCE spelled out or summarized for those of us that don't speak x86. Cheers, Andreas

[Qemu-devel] [PATCH 4/4] trace: Trace bdrv_aio_{readv,writev}

2010-10-05 Thread Stefan Hajnoczi
Observing block layer aio readv/writev operations is useful for debugging image formats or understanding guest disk I/O patterns. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c |4 trace-events |2 ++ 2 files changed, 6 insertions(+), 0 deletions(-)

Re: [Qemu-devel] [PATCH] configure: include stddef.h for NULL

2010-10-05 Thread Scott Wood
On Tue, 5 Oct 2010 10:03:35 +0200 Markus Armbruster arm...@redhat.com wrote: Scott Wood scottw...@freescale.com writes: This fixes an observed failure to detect madvise() on Linux. To avoid similar issues, all other tests that use NULL but don't already have stddef.h are also fixed.

Re: [Qemu-devel] Minor MMU fixes for PowerPC 40x emulation

2010-10-05 Thread Alexander Graf
On 02.10.2010, at 20:17, John Clark wrote: Hi, Alex: I think you've missed the part of the patch that renames the _lo - _hi. As John says, qemu had the hi/lo parts reversed when reading 4xx TLB regs. Except for the comments and the define, the patch looks good to me. John, please also

[Qemu-devel] [PATCH 2/4] trace: Don't strip lines containing '#' arbitrarily

2010-10-05 Thread Stefan Hajnoczi
Although comment lines must be skipped, the '#' character can occur in valid format strings. Be more careful when checking for comments. Leave comments at the end of the line where they will not interfere with other processing. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com ---

Re: [Qemu-devel] Minor MMU fixes for PowerPC 40x emulation

2010-10-05 Thread Edgar E. Iglesias
On Tue, Oct 05, 2010 at 06:42:34PM +0200, Alexander Graf wrote: On 02.10.2010, at 20:17, John Clark wrote: Hi, Alex: I think you've missed the part of the patch that renames the _lo - _hi. As John says, qemu had the hi/lo parts reversed when reading 4xx TLB regs. Except for

[Qemu-devel] [PATCH 2/2] virtio-9p: Support mapped posix acl

2010-10-05 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- Makefile.objs|3 +- hw/virtio-9p-posix-acl.c | 144 ++ hw/virtio-9p-xattr.c |4 + hw/virtio-9p-xattr.h | 28 + 4 files changed, 178 insertions(+),

[Qemu-devel] [PATCH 1/2] virtio-9p: Use layered xattr approach

2010-10-05 Thread Aneesh Kumar K.V
We would need this to make sure we handle the mapped security model correctly for different xattr names. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- Makefile.objs |2 +- hw/file-op-9p.h | 11 hw/virtio-9p-local.c | 95

Re: [Qemu-devel] [patch uq/master 0/8] port qemu-kvm's MCE support

2010-10-05 Thread Chris Wright
* Andreas Färber (andreas.faer...@web.de) wrote: Am 04.10.2010 um 20:54 schrieb Marcelo Tosatti: I assume something went wrong with your cover letter here. It would've been nice to see MCE spelled out or summarized for those of us that don't speak x86. It would help. The acronym is Machine

Re: [Qemu-devel] [PULL 00/23]: Monitor queue

2010-10-05 Thread Anthony Liguori
On 10/01/2010 01:19 PM, Luiz Capitulino wrote: Hi Anthony, The following patches have been sent to the list and look good to me, I've also tested them. The changes (since 2c50e26efdb7e405ecacf89e6a57a60179226dd8) are available in the following repository:

Re: [Qemu-devel] [PULL] Missing patches in qemu master

2010-10-05 Thread Anthony Liguori
On 09/24/2010 01:41 PM, Stefan Weil wrote: Hello Anthony, could you please pull some patches which had been sent to qemu-devel some time ago? See these links: http://patchwork.ozlabs.org/patch/59044/ http://patchwork.ozlabs.org/patch/60469/ http://patchwork.ozlabs.org/patch/61150/

[Qemu-devel] [PATCH v2] configure: include stddef.h for NULL

2010-10-05 Thread Scott Wood
This fixes an observed failure to detect madvise() on Linux. To avoid similar issues, all other tests that use NULL but don't already have stddef.h (or another header that is defined to provide NULL, such as stdio.h, unistd.h, or time.h) are also fixed. Signed-off-by: Scott Wood

[Qemu-devel] [Bug 423910] Re: openbios-sparc has no installation candidate

2010-10-05 Thread Edmund Watson
openbios-sparc doesn't seem to be ubuntu now. Has it been combined in to another package? Unfortunately I have had to install qemu manually as I need this package so i can't test that you can virtual a sparc system from ubuntu packages. -- openbios-sparc has no installation candidate

Re: [Qemu-devel] [PATCH v6 00/10] initial spice support.

2010-10-05 Thread Anthony Liguori
On 09/21/2010 11:51 AM, Gerd Hoffmann wrote: Hi, Here comes v6 of the iniial spice support patch series which is largely a repost of v5. * Detect spice in configure, Makefile windup. * Support for keyboard, mouse and tablet. * Support for simple display output (works as

[Qemu-devel] [PATCH] qemu-nbd: add statistics

2010-10-05 Thread Laurent Vivier
During qemu-nbd run, I/O statistics can be now displayed using the option '-a N' where N is the number of seconds between each collect. The statistics diplayed are : I/O per second, kilobytes read per second, kilobytes written per second, and the maximum values for each of them. Example: ... 0

[Qemu-devel] Re: [patch uq/master 5/8] Export qemu_ram_addr_from_host

2010-10-05 Thread Marcelo Tosatti
On Tue, Oct 05, 2010 at 07:57:14AM -0500, Anthony Liguori wrote: On 10/04/2010 01:54 PM, Marcelo Tosatti wrote: To be used by next patches. Signed-off-by: Marcelo Tosattimtosa...@redhat.com Index: qemu/cpu-common.h === ---

Re: [Qemu-devel] [patch uq/master 0/8] port qemu-kvm's MCE support

2010-10-05 Thread Marcelo Tosatti
On Tue, Oct 05, 2010 at 11:58:13AM -0700, Chris Wright wrote: * Andreas Färber (andreas.faer...@web.de) wrote: Am 04.10.2010 um 20:54 schrieb Marcelo Tosatti: I assume something went wrong with your cover letter here. It would've been nice to see MCE spelled out or summarized for those

[Qemu-devel] [RFC PATCH 0/5] Save state error handling (kill off no_migrate)

2010-10-05 Thread Alex Williamson
I was thinking of making KVM VMs with assigned PCI devices unsavable/unmigratable, but I wasn't thrilled with the no_migrate solutions. The more generic solutions seems to be simply letting save handlers return an error if the device can't be migrated. This is also much more generic than a

[Qemu-devel] [RFC PATCH 5/5] virtio: Allow virtio_save() errors

2010-10-05 Thread Alex Williamson
Carry pci_device_save() error through to virtio_save(). Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/virtio-balloon.c|5 - hw/virtio-blk.c|5 - hw/virtio-net.c|5 - hw/virtio-pci.c|9 +++-- hw/virtio-serial-bus.c |

[Qemu-devel] [RFC PATCH 3/5] savevm: Allow vmsd-pre_save to return error

2010-10-05 Thread Alex Williamson
This allows vmsd based saves to also have a way to signal that they can't be saved or migrated. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/fdc.c |3 ++- hw/hpet.c |3 ++- hw/hw.h |6 +++--- hw/i2c.c |3 ++-

[Qemu-devel] [RFC PATCH 2/5] savevm: Remove register_device_unmigratable()

2010-10-05 Thread Alex Williamson
Now that the save state handler can return error, this is redundant. Update the only user to return error from their save handler. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/hw.h |2 -- hw/ivshmem.c |9 + savevm.c | 31

[Qemu-devel] Re: [RFC PATCH 0/5] Save state error handling (kill off no_migrate)

2010-10-05 Thread Anthony Liguori
On 10/05/2010 03:35 PM, Alex Williamson wrote: I was thinking of making KVM VMs with assigned PCI devices unsavable/unmigratable, but I wasn't thrilled with the no_migrate solutions. The more generic solutions seems to be simply letting save handlers return an error if the device can't be

[Qemu-devel] [RFC PATCH 1/5] savevm: Allow SaveStateHandler() to return error

2010-10-05 Thread Alex Williamson
Some devices may not always able to save their state, allow the save handler to return an error. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/adb.c|8 ++-- hw/ads7846.c|4 +++- hw/arm_gic.c|4 +++-

[Qemu-devel] Re: [RFC PATCH 0/5] Save state error handling (kill off no_migrate)

2010-10-05 Thread Alex Williamson
On Tue, 2010-10-05 at 15:41 -0500, Anthony Liguori wrote: On 10/05/2010 03:35 PM, Alex Williamson wrote: I was thinking of making KVM VMs with assigned PCI devices unsavable/unmigratable, but I wasn't thrilled with the no_migrate solutions. The more generic solutions seems to be simply

[Qemu-devel] [RFC PATCH 4/5] pci: Allow pci_device_save() to return error

2010-10-05 Thread Alex Williamson
Carry the vmsd pre_save error reporting through pci_device_save(). Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/grackle_pci.c |4 +--- hw/gt64xxx.c |3 +-- hw/ivshmem.c |5 - hw/openpic.c |4 +--- hw/pci.c |8 ++-- hw/pci.h

[Qemu-devel] Re: [RFC PATCH 0/5] Save state error handling (kill off no_migrate)

2010-10-05 Thread Anthony Liguori
On 10/05/2010 03:46 PM, Alex Williamson wrote: On Tue, 2010-10-05 at 15:41 -0500, Anthony Liguori wrote: On 10/05/2010 03:35 PM, Alex Williamson wrote: I was thinking of making KVM VMs with assigned PCI devices unsavable/unmigratable, but I wasn't thrilled with the no_migrate

[Qemu-devel] Re: [patch uq/master 5/8] Export qemu_ram_addr_from_host

2010-10-05 Thread Anthony Liguori
On 10/05/2010 03:13 PM, Marcelo Tosatti wrote: On Tue, Oct 05, 2010 at 07:57:14AM -0500, Anthony Liguori wrote: On 10/04/2010 01:54 PM, Marcelo Tosatti wrote: To be used by next patches. Signed-off-by: Marcelo Tosattimtosa...@redhat.com Index: qemu/cpu-common.h

[Qemu-devel] Re: [RFC PATCH 0/5] Save state error handling (kill off no_migrate)

2010-10-05 Thread Alex Williamson
On Tue, 2010-10-05 at 15:49 -0500, Anthony Liguori wrote: On 10/05/2010 03:46 PM, Alex Williamson wrote: On Tue, 2010-10-05 at 15:41 -0500, Anthony Liguori wrote: On 10/05/2010 03:35 PM, Alex Williamson wrote: I was thinking of making KVM VMs with assigned PCI devices

[Qemu-devel] Re: BUG - qdev - partial loss of network connectivity

2010-10-05 Thread Leszek Urbanski
20100927213203.ga28...@moo.pl; from Leszek Urbanski on Mon, Sep 27, 2010 at 23:32:03 +0200 It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 (based on 2.6.32.21). If offload is the only difference, I'll play with different offload options and

[Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-05 Thread Alon Levy
This patch adds a new device, it is described in full in the second patch intro and also in the documentation in docs. In brief it provides a standard smart card reader device. The first patch is the configure change and docs. The second patch contains the actual device, I couldn't figure out a

[Qemu-devel] [PATCH 1/2] usb-ccid: add CCID device. add configure option.

2010-10-05 Thread Alon Levy
This patch adds the configure option --enable-smartcard, adds hw/usb-ccid.c to Makefile.objs, and adds the documentation. Only an empty hw/usb-ccid.c is provided (couldn't add an empty file so added initial comment only). Signed-off-by: Alon Levy al...@redhat.com --- Makefile.objs |1 +

[Qemu-devel] [PATCH 2/2] usb-ccid: add CCID device (device itself)

2010-10-05 Thread Alon Levy
A CCID device is a smart card reader. It is a USB device, defined at [2]. The usb-ccid device expects a chardev option and uses the VSCARD protocol defined in vscard_common.h. It starts as an unattached device unless auto_attach=1. The utility vscclient, bundled with libcac_card, provides the

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-05 Thread Anthony Liguori
On 10/05/2010 04:32 PM, Alon Levy wrote: This patch adds a new device, it is described in full in the second patch intro and also in the documentation in docs. In brief it provides a standard smart card reader device. The first patch is the configure change and docs. The second patch contains

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-05 Thread Alon Levy
- Anthony Liguori anth...@codemonkey.ws wrote: On 10/05/2010 04:32 PM, Alon Levy wrote: This patch adds a new device, it is described in full in the second patch intro and also in the documentation in docs. In brief it provides a standard smart card reader device. The first

[Qemu-devel] Re: [patch uq/master 7/8] MCE: Relay UCR MCE to guest

2010-10-05 Thread Hidetoshi Seto
(2010/10/05 3:54), Marcelo Tosatti wrote: Port qemu-kvm's commit 4b62fff1101a7ad77553147717a8bd3bf79df7ef Author: Huang Ying ying.hu...@intel.com Date: Mon Sep 21 10:43:25 2009 +0800 MCE: Relay UCR MCE to guest UCR (uncorrected recovery) MCE is supported in recent Intel

[Qemu-devel] Re: [patch uq/master 7/8] MCE: Relay UCR MCE to guest

2010-10-05 Thread Hidetoshi Seto
I got some more question: (2010/10/05 3:54), Marcelo Tosatti wrote: Index: qemu/target-i386/cpu.h === --- qemu.orig/target-i386/cpu.h +++ qemu/target-i386/cpu.h @@ -250,16 +250,32 @@ #define PG_ERROR_RSVD_MASK 0x08 #define

[Qemu-devel] Re: [RFC PATCH 0/5] Save state error handling (kill off no_migrate)

2010-10-05 Thread Alex Williamson
On Tue, 2010-10-05 at 14:58 -0600, Alex Williamson wrote: On Tue, 2010-10-05 at 15:49 -0500, Anthony Liguori wrote: On 10/05/2010 03:46 PM, Alex Williamson wrote: On Tue, 2010-10-05 at 15:41 -0500, Anthony Liguori wrote: On 10/05/2010 03:35 PM, Alex Williamson wrote: I

[Qemu-devel] Re: 8 NIC limit - patch - places limit at 32

2010-10-05 Thread linux_kvm
Attached is a patch that allows qemu to have up to 32 NICs, without using the qdev -device method. max_nics.patch Description: Binary data