Re: [Qemu-devel] [RFC][PATCH 08/14 v4] introduce a new monitor command 'dump' to dump guest's memory

2012-01-13 Thread Wen Congyang
At 01/12/2012 09:49 PM, Luiz Capitulino Wrote: On Wed, 11 Jan 2012 08:59:24 +0800 Wen Congyang we...@cn.fujitsu.com wrote: At 01/10/2012 09:30 PM, Luiz Capitulino Wrote: On Wed, 04 Jan 2012 14:11:01 +0800 Wen Congyang we...@cn.fujitsu.com wrote: Signed-off-by: Wen Congyang

Re: [Qemu-devel] throwing away translated code on CPU reset

2012-01-13 Thread Peter Maydell
On 13 January 2012 07:55, 陳韋任 che...@iis.sinica.edu.tw wrote: On Thu, Jan 12, 2012 at 02:00:38PM +, Peter Maydell wrote: When doing TCG code translation, the target-foo translate.c code is allowed to bake assumptions into the generated code from the current values of various fields in the

[Qemu-devel] [PATCH] hw/9pfs: Fix crash when mounting with synthfs

2012-01-13 Thread Aneesh Kumar K.V
From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Some Fsdriver backend don't have fs_root. So check for that in migrate message. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- hw/9pfs/virtio-9p.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [Qemu-devel] [PATCH][v8] megasas: LSI Megaraid SAS HBA emulation

2012-01-13 Thread Stefan Hajnoczi
On Thu, Jan 12, 2012 at 03:45:59PM +0100, Paolo Bonzini wrote: On 01/12/2012 11:43 AM, Hannes Reinecke wrote: +# hw/megasas.c +disable megasas_init_firmware(int xfer_len, uint64_t pa) xfer len %d pa % PRIx64 +disable megasas_init_queue(uint64_t queue_pa, int queue_len, uint64_t head,

Re: [Qemu-devel] [PATCH v3 8/8] prep: Use i82378 PCI-ISA bridge for 'prep' machine

2012-01-13 Thread Jan Kiszka
On 2012-01-13 04:09, Andreas Färber wrote: Speaker I/O, ISA bus, i8259 PIC, RTC and DMA are no longer set up individually by the machine. Effectively, no-op speaker I/O is replaced by pcspk; PIT and i82374 DMA are introduced. Signed-off-by: Hervé Poussineau hpous...@reactos.org Remove

Re: [Qemu-devel] throwing away translated code on CPU reset

2012-01-13 Thread 陳韋任
On Thu, Jan 12, 2012 at 02:00:38PM +, Peter Maydell wrote: When doing TCG code translation, the target-foo translate.c code is allowed to bake assumptions into the generated code from the current values of various fields in the CPUState. This then imposes the requirement that if the field

[Qemu-devel] [PATCH v5 09/15] qmp: add query-block-jobs

2012-01-13 Thread Stefan Hajnoczi
Add query-block-jobs, which shows the progress of ongoing block device operations. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- blockdev.c | 33 + hmp.c| 36 hmp.h|1 +

[Qemu-devel] [PATCH] do not chdir(/) in qemu-nbd

2012-01-13 Thread Michael Tokarev
When qemu-nbd becomes a daemon it calls daemon(3) with nochdir=0, so daemon(3) changes current directory to /. But at this time, qemu-nbd did not open any user-specified files yet, so by changing current directory, all non-absolute paths becomes wrong. The solution is to pass nochdir=1 to

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2012-01-13 Thread Benoit Hudzia
Yes we plan to release patch as soon as we cleaned up the code and we get the green light from our company ( and sadly it can take month on that point..) On 13 January 2012 01:31, Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp wrote: (2012/01/13 10:09), Benoit Hudzia wrote: Hi, Sorry to

[Qemu-devel] [PATCH v5 15/15] test: add image streaming test cases

2012-01-13 Thread Stefan Hajnoczi
python test-stream.py Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- test-stream.py | 208 1 files changed, 208 insertions(+), 0 deletions(-) create mode 100644 test-stream.py diff --git a/test-stream.py b/test-stream.py

Re: [Qemu-devel] [PATCH][v8] megasas: LSI Megaraid SAS HBA emulation

2012-01-13 Thread Hannes Reinecke
On 01/12/2012 07:04 PM, Stefan Hajnoczi wrote: On Thu, Jan 12, 2012 at 03:45:59PM +0100, Paolo Bonzini wrote: On 01/12/2012 11:43 AM, Hannes Reinecke wrote: +# hw/megasas.c +disable megasas_init_firmware(int xfer_len, uint64_t pa) xfer len %d pa % PRIx64 +disable

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2012-01-13 Thread Benoit Hudzia
On 13 January 2012 02:03, Isaku Yamahata yamah...@valinux.co.jp wrote: Very interesting. We can cooperate for better (postcopy) live migration. The code doesn't seem available yet, I'm eager for it. On Fri, Jan 13, 2012 at 01:09:30AM +, Benoit Hudzia wrote: Hi, Sorry to jump to hijack

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2012-01-13 Thread Benoit Hudzia
On 13 January 2012 02:15, Isaku Yamahata yamah...@valinux.co.jp wrote: One more question. Does your architecture/implementation (in theory) allow KVM memory features like swap, KSM, THP? * Swap: Yes we support swap to disk ( the page is pulled from swap before being send over), swap process do

Re: [Qemu-devel] [PATCH 4/4] target-i386: fix SSE rounding and flush to zero

2012-01-13 Thread Markus Armbruster
Dong Xu Wang wdon...@linux.vnet.ibm.com writes: After applied this patch, while I was compiling on my lap, there will be an error: ./configure --enable-kvm --target-list=x86_64-softmmu make CCx86_64-softmmu/translate.o /qemu/target-i386/translate.c: In function ‘disas_insn’:

[Qemu-devel] [PATCH 1/2] qdev: Add a 'free' method to disassociate chardev from qdev device

2012-01-13 Thread Amit Shah
When a device is removed, remove the association with a chardev, if any, so that the chardev can be re-used later for other devices. Reported-by: Qunfang Zhang qzh...@redhat.com Fix-suggested-by: Markus Armbruster arm...@redhat.com Signed-off-by: Amit Shah amit.s...@redhat.com ---

[Qemu-devel] [PATCH 0/2] qdev: disassociate chardev from device on device exit

2012-01-13 Thread Amit Shah
When the device is going away (e.g., hot-unplug), an associated chardev should be freed and made available for use for other devices. An earlier hack did this for virtio serial ports, do it in a generic way and remove the virtio-serial specific hack. Amit Shah (2): qdev: Add a 'free' method to

[Qemu-devel] [PATCH 2/2] virtio-console: no need to remove char handlers explicitly

2012-01-13 Thread Amit Shah
qdev is now equipped (thanks to the last commit) to disassociate chardevs from the qdev devices on the devices going away. So doing it in the virtio-console driver is not necessary. Since that was the only thing being done in the qdev exit method, drop it entirely. Signed-off-by: Amit Shah

Re: [Qemu-devel] [PATCH 2/2] virtio-console: no need to remove char handlers explicitly

2012-01-13 Thread Amit Shah
On (Fri) 13 Jan 2012 [15:24:59], Amit Shah wrote: qdev is now equipped (thanks to the last commit) to disassociate chardevs from the qdev devices on the devices going away. So doing it in the virtio-console driver is not necessary. Since that was the only thing being done in the qdev exit

[Qemu-devel] [PATCH v2 0/2] qdev: disassociate chardev from device on device exit

2012-01-13 Thread Amit Shah
When the device is going away (e.g., hot-unplug), an associated chardev should be freed and made available for use for other devices. An earlier hack did this for virtio serial ports, do it in a generic way and remove the virtio-serial specific hack. v2: - actually remove virtconsole_exitfn()

Re: [Qemu-devel] [PATCH] qdev: fix hotplug when no -device is specified

2012-01-13 Thread Markus Armbruster
device_del is broken for me in master: $ qemu-system-x86_64 -nodefaults -S -m 384 -vnc :0 -monitor stdio -usb QEMU 1.0.50 monitor - type 'help' for more information (qemu) device_add usb-mouse,id=foo (qemu) device_del foo Device 'foo' is in use Same for any hot-pluggable device I tried, with and

[Qemu-devel] [PATCH v2 1/2] qdev: Add a 'free' method to disassociate chardev from qdev device

2012-01-13 Thread Amit Shah
When a device is removed, remove the association with a chardev, if any, so that the chardev can be re-used later for other devices. Reported-by: Qunfang Zhang qzh...@redhat.com Fix-suggested-by: Markus Armbruster arm...@redhat.com Signed-off-by: Amit Shah amit.s...@redhat.com ---

[Qemu-devel] [PATCH v2 2/2] virtio-console: no need to remove char handlers explicitly

2012-01-13 Thread Amit Shah
qdev is now equipped (thanks to the last commit) to disassociate chardevs from the qdev devices on the devices going away. So doing it in the virtio-console driver is not necessary. Since that was the only thing being done in the qdev exit method, drop it entirely. Signed-off-by: Amit Shah

Re: [Qemu-devel] [PATCH][v8] megasas: LSI Megaraid SAS HBA emulation

2012-01-13 Thread Paolo Bonzini
On 01/13/2012 10:46 AM, Hannes Reinecke wrote: So, I should be removing the 'disable' keyword, then, correct? Yes. The strings are just there to avoid trace statement duplication. But if that's not a problem then I can easily convert the strings to individual trace statements. No, don't

[Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012

2012-01-13 Thread Stefan Hajnoczi
The following changes since commit bee5a5fb11de34aa422cfc830adbd51cfc8f5b55: cris: Update paths to match the move of tests/cris (2012-01-13 11:09:56 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git trivial-patches Aurelien Jarno (1): tcg-arm: fix a

[Qemu-devel] [PATCH 05/12] vnc: fix no-lock-key-sync strncmp() length

2012-01-13 Thread Stefan Hajnoczi
The no-lock-key-sync option is being parsed incorrectly because of an outdated strcmp() length value. Use the correct length so that invalid option names do not match. Reported-by: Dr David Alan Gilbert davidagilb...@uk.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com ---

[Qemu-devel] [PATCH 03/12] Spelling fixes in comments and documentation

2012-01-13 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de Codespell detected these new spelling issues. Signed-off-by: Stefan Weil s...@weilnetz.de Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- docs/writing-qmp-commands.txt |2 +- memory.h |4 ++-- qemu-ga.c

[Qemu-devel] [PATCH 02/12] tcg-arm: fix a typo in comments

2012-01-13 Thread Stefan Hajnoczi
From: Aurelien Jarno aurel...@aurel32.net ARM still doesn't support 16GB buffers in 32-bit modes, replace the 16GB by 16MB in the comment. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net Signed-off-by: Stefan Hajnoczi

[Qemu-devel] [PATCH 01/12] configure: Modify detection of supported warning options

2012-01-13 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de Reversing the order of the warning options and -Werror is important when clang is used instead of gcc. It changes nothing for gcc. Signed-off-by: Stefan Weil s...@weilnetz.de Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- configure |2 +- 1

[Qemu-devel] [PATCH 04/12] vvfat: avoid leaking file descriptor in commit_one_file()

2012-01-13 Thread Stefan Hajnoczi
Reported-by: Dr David Alan Gilbert davidagilb...@uk.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block/vvfat.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index eeffc4a..9ef21dd 100644 --- a/block/vvfat.c +++

[Qemu-devel] [PATCH 10/12] virtfs-proxy-helper: Clean include files

2012-01-13 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de The common standard include files are already included via qemu-common.h, and for the socket related include files there is qemu_socket.h, so the code can be reduced by some lines. Signed-off-by: Stefan Weil s...@weilnetz.de Signed-off-by: Stefan Hajnoczi

[Qemu-devel] [PATCH 06/12] omap_dss: correct chip[1] index in RFBI_READ/RFBI_STATUS

2012-01-13 Thread Stefan Hajnoczi
The RFBI_READ/RFBI_STATUS code incorrectly uses chip[0] when it should be using chip[1]. Andrzej Zaborowski bal...@zabor.org confirmed this bug since I don't know this code well. Reported-by: Dr David Alan Gilbert davidagilb...@uk.ibm.com Reviewed-by: Andrzej Zaborowski

[Qemu-devel] [PATCH 11/12] virtfs-proxy-helper: Add missing printf format attribute

2012-01-13 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de Every function with printf like arguments must have it (see file HACKING), so add it. Signed-off-by: Stefan Weil s...@weilnetz.de Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- fsdev/virtfs-proxy-helper.c |2 +- 1 files changed, 1

[Qemu-devel] [PATCH 09/12] virtfs-proxy-helper: Fix compilation on newer systems

2012-01-13 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de Include file attr/xattr.h is not available on newer systems (for example Fedora 12 or Debian Squeeze). See comments in qemu-xattr.h for more information. This file handles the system dependencies automatically. Signed-off-by: Stefan Weil s...@weilnetz.de

[Qemu-devel] [PATCH 07/12] Add 'fall through' comments to case statements without break

2012-01-13 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de These comments are used by static code analysis tools and in code reviews to avoid false warnings because of missing break statements. The case statements handled here were reported by coverity. Reviewed-by: Peter Maydell peter.mayd...@linaro.org

[Qemu-devel] --enable-check-utests gone, you may have to re-run configure (was: [PATCH 10/15] test: eliminate libcheck tests and have make check use gtester)

2012-01-13 Thread Markus Armbruster
Deserves more prominent notice, so here goes: Anthony Liguori aligu...@us.ibm.com writes: [...] @@ -733,10 +732,6 @@ for opt do ;; --enable-fdt) fdt=yes ;; - --disable-check-utests) check_utests=no - ;; - --enable-check-utests) check_utests=yes - ;; --disable-nptl)

Re: [Qemu-devel] [PATCH 03/30] ppc: remove ppc440 bamboo board support

2012-01-13 Thread Benjamin Herrenschmidt
On Mon, 2012-01-02 at 18:51 -0600, Anthony Liguori wrote: This board never worked with TCG. It hasn't been updated since 0.13.0. I'm fairly sure hardware doesn't exist anymore that you can run the KVM support with. It does exist, I have one :-) So let's remove it. It can always be

Re: [Qemu-devel] [PATCH 03/30] ppc: remove ppc440 bamboo board support

2012-01-13 Thread Andreas Färber
Am 13.01.2012 11:59, schrieb Benjamin Herrenschmidt: On Mon, 2012-01-02 at 18:51 -0600, Anthony Liguori wrote: This board never worked with TCG. It hasn't been updated since 0.13.0. I'm fairly sure hardware doesn't exist anymore that you can run the KVM support with. It does exist, I have

[Qemu-devel] [PATCH 12/12] bt-host: add missing break statement

2012-01-13 Thread Stefan Hajnoczi
The switch statement in bt_host_read() is missing a break in one case. Andrzej Zaborowski andrew.zaborow...@intel.com confirmed that this is not an intentional fall-through. Reviewed-by: Stefan Weil s...@weilnetz.de Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- bt-host.c |1

[Qemu-devel] [PATCH 08/12] hmp: Fix freeing of PciInfoList

2012-01-13 Thread Stefan Hajnoczi
From: Stefan Berger stef...@linux.vnet.ibm.com Remember the original PciInfoList in info_list and use the info variable to traverse the list. Signed-off-by: Stefan Berger stef...@linux.vnet.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hmp.c |8 1 files

[Qemu-devel] [PULL 00/17] usb patch queue: audio, xhci, usbredir

2012-01-13 Thread Gerd Hoffmann
Hi, Here comes the usb patch queue. It features the patches posted a week ago for review with some minor tweaks according to the review comments: The comment in usb-audio was fixed and xhci got a codestyle cleanup. No actual code changes. I've also included the usb-redir patches posted by

Re: [Qemu-devel] [PATCH v3 0/8] qdev'ify PReP PCI host bridge and add PCI-to-ISA bridge

2012-01-13 Thread Alexander Graf
On 13.01.2012, at 04:09, Andreas Färber wrote: Hello, Here's an updated initial qdev'ification series for PReP, as prerequisite for Anthony's second QOM series. As stated before, this is NOT a complete conversion of all PReP devices and of all those shared with x86. Please comment on

[Qemu-devel] [PATCH 05/17] usb: add audio device model

2012-01-13 Thread Gerd Hoffmann
From: H. Peter Anvin h...@linux.intel.com This brings a usb audio device to qemu. Output only, fixed at 16bit stereo @ 48 Hz. Based on a patch from H. Peter Anvin h...@linux.intel.com Usage: add '-device usb-audio' to your qemu command line. Works sorta ok on a idle machine. Known

Re: [Qemu-devel] [PATCH 03/30] ppc: remove ppc440 bamboo board support

2012-01-13 Thread Paolo Bonzini
On 01/13/2012 12:04 PM, Andreas Färber wrote: This board never worked with TCG. It hasn't been updated since 0.13.0. I'm fairly sure hardware doesn't exist anymore that you can run the KVM support with. It does exist, I have one:-) Alex has already posted series to not only qdev'ify

Re: [Qemu-devel] [PATCH] do not chdir(/) in qemu-nbd

2012-01-13 Thread Stefan Hajnoczi
On Fri, Jan 13, 2012 at 9:04 AM, Michael Tokarev m...@tls.msk.ru wrote: When qemu-nbd becomes a daemon it calls daemon(3) with nochdir=0, so daemon(3) changes current directory to /. But at this time, qemu-nbd did not open any user-specified files yet, so by changing current directory, all

Re: [Qemu-devel] [PATCH 0/3] acpi_piix4: Add CPU eject handling

2012-01-13 Thread Jan Kiszka
On 2012-01-13 12:11, Vasilis Liaskovitis wrote: This patch series adds support for CPU _EJ0 callback in Seabios and qemu-kvm. The first patch defines the CPU eject bitmap in Seabios and writes to it during the callback. The second patch adds empty stub functions to qemu-kvm to handle the

Re: [Qemu-devel] [PATCH 3/3] acpi_piix4: Call KVM_SETSTATE_VCPU ioctl on cpu ejection

2012-01-13 Thread Jan Kiszka
On 2012-01-13 12:11, Vasilis Liaskovitis wrote: Signed-off-by: Vasilis Liaskovitis vasilis.liaskovi...@profitbricks.com --- hw/acpi_piix4.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 8bf30dd..12eef55

[Qemu-devel] [PATCH 15/17] usb-redir: Pre-fill our isoc input buffer before sending pkts to the host

2012-01-13 Thread Gerd Hoffmann
From: Hans de Goede hdego...@redhat.com This is something which should have been done from the first version of usb-redir, but wasn't. Signed-off-by: Hans de Goede hdego...@redhat.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- usb-redir.c | 16 1 files changed, 16

[Qemu-devel] [PATCH 13/17] usb-redir: Clear iso / irq error when stopping the stream

2012-01-13 Thread Gerd Hoffmann
From: Hans de Goede hdego...@redhat.com And ignore status messages from the client which arrive after stream stop (the stream stop send to the client and an error status reported by the client my cross each other due to network latency). Signed-off-by: Hans de Goede hdego...@redhat.com

[Qemu-devel] [PATCH 01/17] usb-host: rip out legacy procfs support

2012-01-13 Thread Gerd Hoffmann
This patch removes support for parsing /proc/bus/usb/devices for device discovery. The code lacks a few features compared to the sysfs code and is also bitrotting as everybody has sysfs these days. This implies having sysfs mounted is mandatory now to use the usb-host driver. udev isn't

[Qemu-devel] [PATCH 04/17] usb-desc: audio endpoint support

2012-01-13 Thread Gerd Hoffmann
Add support for audio endpoints which have two more fields in the descriptor. Also add support for extra class specific endpoint descriptors. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-desc.c | 14 +++--- hw/usb-desc.h |5 + 2 files changed, 16 insertions(+), 3

[Qemu-devel] [PATCH 10/17] usb/debug: add usb_ep_dump

2012-01-13 Thread Gerd Hoffmann
Add function to dump endpoint data, for debugging purposes. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb.c| 40 hw/usb.h|1 + usb-linux.c |3 +++ 3 files changed, 44 insertions(+), 0 deletions(-) diff --git a/hw/usb.c

[Qemu-devel] [PATCH 08/17] usb: add ifnum to USBEndpoint

2012-01-13 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb.c| 14 ++ hw/usb.h|3 +++ usb-linux.c |1 + 3 files changed, 18 insertions(+), 0 deletions(-) diff --git a/hw/usb.c b/hw/usb.c index 5d6baaf..6ba063a 100644 --- a/hw/usb.c +++ b/hw/usb.c @@ -422,6 +422,8 @@

[Qemu-devel] [PATCH 03/17] usb: track altsetting in USBDevice

2012-01-13 Thread Gerd Hoffmann
Also handle {GET,SET}_INTERFACE in common code (usb-desc.c). Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-bt.c | 22 - hw/usb-ccid.c |8 -- hw/usb-desc.c | 71 +++ hw/usb-hid.c|7 -

[Qemu-devel] [PATCH 09/17] usb-desc: USBEndpoint support

2012-01-13 Thread Gerd Hoffmann
Initialize USBEndpoint structs from USBDesc* data. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-desc.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/hw/usb-desc.c b/hw/usb-desc.c index 9c38661..0768334 100644 --- a/hw/usb-desc.c +++

Re: [Qemu-devel] [PATCH v9 0/6] arm: add support for Calxeda Highbank SoC

2012-01-13 Thread Peter Maydell
On 11 January 2012 22:41, Peter Maydell peter.mayd...@linaro.org wrote: On 11 January 2012 16:31, Mark Langsdorf mark.langsd...@calxeda.com wrote: This patch series adds support for the Calxeda Highbank SoC. It depends on my previous patch series various ARM fixes for Calxeda Highbank and

Re: [Qemu-devel] [PATCH v2] qemu-ga: add guest-set-support-level command

2012-01-13 Thread Luiz Capitulino
On Thu, 12 Jan 2012 17:32:32 -0600 Michael Roth mdr...@linux.vnet.ibm.com wrote: On 01/12/2012 12:57 PM, Luiz Capitulino wrote: On Wed, 11 Jan 2012 17:56:05 -0600 Michael Rothmdr...@linux.vnet.ibm.com wrote: Recently commands where introduced on the mailing that involved adding

Re: [Qemu-devel] [PATCH 03/30] ppc: remove ppc440 bamboo board support

2012-01-13 Thread Alexander Graf
On 13.01.2012, at 12:45, Paolo Bonzini wrote: On 01/13/2012 12:04 PM, Andreas Färber wrote: This board never worked with TCG. It hasn't been updated since 0.13.0. I'm fairly sure hardware doesn't exist anymore that you can run the KVM support with. It does exist, I have

[Qemu-devel] [PATCH 11/17] usb: add max_packet_size to USBEndpoint

2012-01-13 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-desc.c |2 ++ hw/usb.c | 37 + hw/usb.h |4 usb-linux.c | 31 +-- 4 files changed, 44 insertions(+), 30 deletions(-) diff --git a/hw/usb-desc.c

[Qemu-devel] [PATCH 12/17] usb: link packets to endpoints not devices

2012-01-13 Thread Gerd Hoffmann
Add USBEndpoint for the control endpoint to USBDevices. Link async packets to the USBEndpoint instead of the USBDevice. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-ehci.c |3 ++- hw/usb-musb.c |3 ++- hw/usb-ohci.c |4 +++- hw/usb-uhci.c |3 ++- hw/usb.c |

[Qemu-devel] [PATCH 14/17] usb-redir: Dynamically adjust iso buffering size based on ep interval

2012-01-13 Thread Gerd Hoffmann
From: Hans de Goede hdego...@redhat.com Note the bufpq_target_size id stored in the endpoint info struct, even though it only used once. This is done because it will be referenced from other code in a follow up patch. Signed-off-by: Hans de Goede hdego...@redhat.com Signed-off-by: Gerd Hoffmann

[Qemu-devel] [PATCH 17/17] usb-redir: Improve some debugging messages

2012-01-13 Thread Gerd Hoffmann
From: Hans de Goede hdego...@redhat.com Signed-off-by: Hans de Goede hdego...@redhat.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- usb-redir.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/usb-redir.c b/usb-redir.c index 147e237..79d29ec 100644 ---

[Qemu-devel] [PATCH 07/17] usb: add USBEndpoint

2012-01-13 Thread Gerd Hoffmann
Start maintaining endpoint state at USBDevice level. Add USBEndpoint struct and some helper functions to deal with it. For now it contains the endpoint type only. Moved over some bits from usb-linux.c Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-bus.c |1 + hw/usb.c |

[Qemu-devel] [PATCH 16/17] usb-redir: Try to keep our buffer size near the target size

2012-01-13 Thread Gerd Hoffmann
From: Hans de Goede hdego...@redhat.com Before this patch we would allow the (iso) buffer to grow unlimited (and it would under certain circumstances) leading to way too high latencies for iso data streams. Signed-off-by: Hans de Goede hdego...@redhat.com Signed-off-by: Gerd Hoffmann

[Qemu-devel] [PATCH 02/17] usb: track configuration and interface count in USBDevice.

2012-01-13 Thread Gerd Hoffmann
Move fields from USBHostDevice to USBDevice. Add bits to usb-desc.c to fill them for emulated devices too. Also allow to set configuration 0 (== None) for emulated devices. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-desc.c | 34 ++ hw/usb.h |

Re: [Qemu-devel] [PATCH] do not chdir(/) in qemu-nbd

2012-01-13 Thread Michael Tokarev
On 13.01.2012 15:57, Stefan Hajnoczi wrote: On Fri, Jan 13, 2012 at 9:04 AM, Michael Tokarev m...@tls.msk.ru wrote: When qemu-nbd becomes a daemon it calls daemon(3) with nochdir=0, so daemon(3) changes current directory to /. But at this time, qemu-nbd did not open any user-specified files

Re: [Qemu-devel] [PATCH] do not chdir(/) in qemu-nbd

2012-01-13 Thread Daniel P. Berrange
On Fri, Jan 13, 2012 at 04:47:35PM +0400, Michael Tokarev wrote: On 13.01.2012 15:57, Stefan Hajnoczi wrote: On Fri, Jan 13, 2012 at 9:04 AM, Michael Tokarev m...@tls.msk.ru wrote: When qemu-nbd becomes a daemon it calls daemon(3) with nochdir=0, so daemon(3) changes current directory to /.

[Qemu-devel] [PATCH v5 00/15] block: generic image streaming

2012-01-13 Thread Stefan Hajnoczi
Note: This is a resend of v5 because the emails I sent earlier today disappeared. This series adds the 'block_stream' command which copies the contents of a backing file into the image file while the VM is running. The series builds on the zero detection features which I sent out before

[Qemu-devel] [PATCH v5 01/15] coroutine: add co_sleep_ns() coroutine sleep function

2012-01-13 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- Makefile.objs |1 + qemu-coroutine-sleep.c | 38 ++ qemu-coroutine.h |9 + 3 files changed, 48 insertions(+), 0 deletions(-) create mode 100644

[Qemu-devel] [PATCH v5 15/15] test: add image streaming test cases

2012-01-13 Thread Stefan Hajnoczi
python test-stream.py Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- test-stream.py | 208 1 files changed, 208 insertions(+), 0 deletions(-) create mode 100644 test-stream.py diff --git a/test-stream.py b/test-stream.py

[Qemu-devel] [PATCH v5 02/15] block: check bdrv_in_use() before blockdev operations

2012-01-13 Thread Stefan Hajnoczi
Long-running block operations like block migration and image streaming must have continual access to their block device. It is not safe to perform operations like hotplug, eject, change, resize, commit, or external snapshot while a long-running operation is in progress. This patch adds the

[Qemu-devel] [PATCH] usb-ehci: Clear the portstatus powner bit on device disconnect

2012-01-13 Thread Hans de Goede
According to the EHCI spec port ownerhsip should revert to the EHCI controller on device disconnect. This fixes the problem of a port getting stuck on USB 1 when using redirection and plugging in a USB 2 device after a USB 1 device has been redirected. Signed-off-by: Hans de Goede

[Qemu-devel] [PATCH v5 07/15] qmp: add block_job_set_speed command

2012-01-13 Thread Stefan Hajnoczi
Add block_job_set_speed, which sets the maximum speed for a background block operation. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- blockdev.c | 25 + hmp-commands.hx | 14 ++ hmp.c| 11 +++ hmp.h

Re: [Qemu-devel] Mixed USB 1.1 and USB 2.0 on the same port

2012-01-13 Thread Hans de Goede
On 01/04/2012 05:52 PM, Erik Rull wrote: erik.r...@rdsoftware.de wrote: On 12/31/11 13:11, Erik Rull wrote: Hi all, how can I use a USB 1.1 device on the USB 2.0 bus? Currently the EHCI implementation complains that the device is mismatches the USB version. -readconfig

Re: [Qemu-devel] [PATCH] do not chdir(/) in qemu-nbd

2012-01-13 Thread Paolo Bonzini
On 01/13/2012 01:47 PM, Michael Tokarev wrote: But instead of adding a chdir later, I'll try to rearrange code a bit to do all init in the parent instead. That's not possible, because when you fork you lose all threads except the main thread. That's why the daemon() was moved very early.

[Qemu-devel] [PATCH 1/3][Seabios] Add bitmap for cpu _EJ0 callback

2012-01-13 Thread Vasilis Liaskovitis
Signed-off-by: Vasilis Liaskovitis vasilis.liaskovi...@profitbricks.com --- src/acpi-dsdt.dsl |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl index 7082b65..71d8ac4 100644 --- a/src/acpi-dsdt.dsl +++ b/src/acpi-dsdt.dsl @@

[Qemu-devel] [PATCH v5 11/15] block: add bdrv_find_backing_image

2012-01-13 Thread Stefan Hajnoczi
From: Marcelo Tosatti mtosa...@redhat.com Add bdrv_find_backing_image: given a BlockDriverState pointer, and an id, traverse the backing image chain to locate the id. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c | 18

[Qemu-devel] [PATCH 2/3] acpi_piix4: Add stub functions for CPU eject callback

2012-01-13 Thread Vasilis Liaskovitis
Signed-off-by: Vasilis Liaskovitis vasilis.liaskovi...@profitbricks.com --- hw/acpi_piix4.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index d5743b6..8bf30dd 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -37,6

[Qemu-devel] [PATCH] qdev: fix device_del by refactoring reference counting

2012-01-13 Thread Anthony Liguori
Commit 8eb0283 broken device_del by having too overzealous reference counting checks. Move the reference count checks to qdev_free(), make sure to remove the parent link on free, and decrement the reference count on property removal. Reported-by: Markus Armbruster arm...@redhat.com

[Qemu-devel] [PATCH v5 13/15] block: add support for partial streaming

2012-01-13 Thread Stefan Hajnoczi
From: Marcelo Tosatti mtosa...@redhat.com Add support for streaming data from an intermediate section of the image chain (see patch and documentation for details). Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block/stream.c |

[Qemu-devel] [PATCH] qemu-test: add device-del test case

2012-01-13 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/device-del.sh | 91 +++ 1 files changed, 91 insertions(+), 0 deletions(-) create mode 100755 tests/device-del.sh diff --git a/tests/device-del.sh b/tests/device-del.sh new file mode

[Qemu-devel] [PATCH v5 12/15] add QERR_BASE_NOT_FOUND

2012-01-13 Thread Stefan Hajnoczi
From: Marcelo Tosatti mtosa...@redhat.com This qerror will be raised when a given streaming base (backing file) cannot be found. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- qapi-schema.json |1 + qerror.c |4

[Qemu-devel] [PATCH 3/3] acpi_piix4: Call KVM_SETSTATE_VCPU ioctl on cpu ejection

2012-01-13 Thread Vasilis Liaskovitis
Signed-off-by: Vasilis Liaskovitis vasilis.liaskovi...@profitbricks.com --- hw/acpi_piix4.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 8bf30dd..12eef55 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@

[Qemu-devel] [PATCH v5 10/15] blockdev: make image streaming safe across hotplug

2012-01-13 Thread Stefan Hajnoczi
Unplugging a storage interface like virtio-blk causes the host block device to be deleted too. Long-running operations like block migration must take a DriveInfo reference to prevent the BlockDriverState from being freed. For image streaming we can do the same thing. Note that it is not

[Qemu-devel] [PATCH v5 06/15] qmp: add block_stream command

2012-01-13 Thread Stefan Hajnoczi
Add the block_stream command, which starts copy backing file contents into the image file. Also add the BLOCK_JOB_COMPLETED QMP event which is emitted when image streaming completes. Later patches add control over the background copy speed, cancelation, and querying running streaming operations.

Re: [Qemu-devel] [PATCH 0/3] acpi_piix4: Add CPU eject handling

2012-01-13 Thread Vasilis Liaskovitis
On Fri, Jan 13, 2012 at 12:58:10PM +0100, Jan Kiszka wrote: Please work against upstream (uq/master for kvm-related patches), not qemu-kvm. It possibly makes no technical difference here, but we do not want to let the code bases needlessly diverge again. If if does make a difference and

[Qemu-devel] [PATCH v5 09/15] qmp: add query-block-jobs

2012-01-13 Thread Stefan Hajnoczi
Add query-block-jobs, which shows the progress of ongoing block device operations. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- blockdev.c | 33 + hmp.c| 36 hmp.h|1 +

[Qemu-devel] [PATCH v5 08/15] qmp: add block_job_cancel command

2012-01-13 Thread Stefan Hajnoczi
Add block_job_cancel, which stops an active block streaming operation. When the operation has been cancelled the new BLOCK_JOB_CANCELLED event is emitted. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- QMP/qmp-events.txt | 24 blockdev.c | 19

Re: [Qemu-devel] [0/9] Bugfixes and pseries enhancements

2012-01-13 Thread Alexander Graf
On 12.01.2012, at 06:46, David Gibson wrote: This series has two parts. THe first has a few bugfixes for generic qemu code. The second has a number of pseries machine specific enhancements and bugfixes. They are included in the one series because some of the pseries specific patches rely

Re: [Qemu-devel] [PATCH v9 0/6] arm: add support for Calxeda Highbank SoC

2012-01-13 Thread Andreas Färber
Am 13.01.2012 13:14, schrieb Peter Maydell: On 11 January 2012 22:41, Peter Maydell peter.mayd...@linaro.org wrote: Does anybody object to my taking the AHCI patches along with this series via arm-devs.next ? (other than patch v4 which goes via target-arm.next) [I got an Acked-by: from

Re: [Qemu-devel] [PATCH v9 0/6] arm: add support for Calxeda Highbank SoC

2012-01-13 Thread Alexander Graf
On 13.01.2012, at 15:15, Andreas Färber wrote: Am 13.01.2012 13:14, schrieb Peter Maydell: On 11 January 2012 22:41, Peter Maydell peter.mayd...@linaro.org wrote: Does anybody object to my taking the AHCI patches along with this series via arm-devs.next ? (other than patch v4 which goes via

[Qemu-devel] [PATCH 0/3] acpi_piix4: Add CPU eject handling

2012-01-13 Thread Vasilis Liaskovitis
This patch series adds support for CPU _EJ0 callback in Seabios and qemu-kvm. The first patch defines the CPU eject bitmap in Seabios and writes to it during the callback. The second patch adds empty stub functions to qemu-kvm to handle the bitmap writes. The third patch defines the eject method

[Qemu-devel] [PATCH v5 03/15] block: add BlockJob interface for long-running operations

2012-01-13 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c | 48 block_int.h | 40 2 files changed, 88 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index daf92c2..d588ee8

Re: [Qemu-devel] [PATCH 3/3] acpi_piix4: Call KVM_SETSTATE_VCPU ioctl on cpu ejection

2012-01-13 Thread Vasilis Liaskovitis
On Fri, Jan 13, 2012 at 12:58:53PM +0100, Jan Kiszka wrote: On 2012-01-13 12:11, Vasilis Liaskovitis wrote: Signed-off-by: Vasilis Liaskovitis vasilis.liaskovi...@profitbricks.com --- hw/acpi_piix4.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-)

Re: [Qemu-devel] [PATCH 03/30] ppc: remove ppc440 bamboo board support

2012-01-13 Thread Andreas Färber
Am 13.01.2012 13:30, schrieb Alexander Graf: On 13.01.2012, at 12:45, Paolo Bonzini wrote: On 01/13/2012 12:04 PM, Andreas Färber wrote: This board never worked with TCG. It hasn't been updated since 0.13.0. I'm fairly sure hardware doesn't exist anymore that you can run the KVM

Re: [Qemu-devel] Serious regression of 9p read performance, huge amount of openat syscalls on plain file descriptors

2012-01-13 Thread Lutz Vieweg
The regression does not exist in the way that I suspected - it's just that the default for 9p mount option msize=4096 causes the bad performance when reading large files on the guest. I was mislead because... a) mount -o remount,msize=...,... seems to work (with mount reporting the changed

Re: [Qemu-devel] [PATCH 03/30] ppc: remove ppc440 bamboo board support

2012-01-13 Thread Alexander Graf
On 13.01.2012, at 15:24, Andreas Färber wrote: Am 13.01.2012 13:30, schrieb Alexander Graf: On 13.01.2012, at 12:45, Paolo Bonzini wrote: On 01/13/2012 12:04 PM, Andreas Färber wrote: This board never worked with TCG. It hasn't been updated since 0.13.0. I'm fairly sure hardware

Re: [Qemu-devel] [PATCH v9 0/6] arm: add support for Calxeda Highbank SoC

2012-01-13 Thread Andreas Färber
Am 13.01.2012 15:18, schrieb Alexander Graf: On 13.01.2012, at 15:15, Andreas Färber wrote: Am 13.01.2012 13:14, schrieb Peter Maydell: On 11 January 2012 22:41, Peter Maydell peter.mayd...@linaro.org wrote: Does anybody object to my taking the AHCI patches along with this series via

Re: [Qemu-devel] [PATCH v9 0/6] arm: add support for Calxeda Highbank SoC

2012-01-13 Thread Alexander Graf
On 13.01.2012, at 15:31, Andreas Färber wrote: Am 13.01.2012 15:18, schrieb Alexander Graf: On 13.01.2012, at 15:15, Andreas Färber wrote: Am 13.01.2012 13:14, schrieb Peter Maydell: On 11 January 2012 22:41, Peter Maydell peter.mayd...@linaro.org wrote: Does anybody object to my taking

[Qemu-devel] [PATCH v5 05/15] block: rate-limit streaming operations

2012-01-13 Thread Stefan Hajnoczi
This patch implements rate-limiting for image streaming. If we've exceeded the bandwidth quota for a 100 ms time slice we sleep the coroutine until the next slice begins. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block/stream.c | 65

[Qemu-devel] [PATCH v5 04/15] block: add image streaming block job

2012-01-13 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- Makefile.objs |1 + block/stream.c | 124 block_int.h|3 + trace-events |4 ++ 4 files changed, 132 insertions(+), 0 deletions(-) create mode 100644

  1   2   3   >