[Qemu-devel] [PATCH 0/2] target-sh4: Add support for missing ldc stc instructions with sgr

2010-07-09 Thread Alexandre Courbot
This series of patch adds support for the missing ldc stc privileged instructions with the sgr register. In order to take the difference of support between SH4A and SH4 (which does not recognize ldc with sgr), the LDST macro has been split into two simpler macros. [PATCH 1/2] target-sh4: Split

[Qemu-devel] [PATCH 2/2] target-sh4: Add support for ldc stc with sgr

2010-07-09 Thread Alexandre Courbot
Add support for the following missing priviledged intructions: For SH4: - stc sgr, Rn - stc.l sgr, @-Rn For SH4A: - ldc Rm, sgr - ldc.l @Rm+, sgr --- target-sh4/translate.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-sh4/translate.c b/target-sh4/translate.c

[Qemu-devel] [PATCH 1/2] target-sh4: Split the LDST macro into 2 sub-macros

2010-07-09 Thread Alexandre Courbot
The LDST macro is used to generate ldc and stc instructions that work with a specific register. However, the SGR register only supports stc up to SH4A, which supports both stc and ldc. This patch creates two sub-macros named LD and ST that handle generating ldc and stc instructions separately, and

Re: [Qemu-devel] [PATCH] pci: fix pci_unregister_secondary_bus().

2010-07-09 Thread Markus Armbruster
Isaku Yamahata yamah...@valinux.co.jp writes: Fix leak in pci_unregister_secondary_bus(). call qbus_free(). Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- hw/pci.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index

Re: [Qemu-devel] [PATCH 6/6] Initial documentation for migration

2010-07-09 Thread Markus Armbruster
Very good stuff, but consider using a spell checker ;)

Re: [Qemu-devel] [PATCH] pci: fix pci_unregister_secondary_bus().

2010-07-09 Thread Isaku Yamahata
On Fri, Jul 09, 2010 at 08:46:33AM +0200, Markus Armbruster wrote: Isaku Yamahata yamah...@valinux.co.jp writes: Fix leak in pci_unregister_secondary_bus(). call qbus_free(). Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- hw/pci.c |1 + 1 files changed, 1

Re: [Qemu-devel] [PATCH 1/2] QMP: Update README file

2010-07-09 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com writes: A number of small changes I prefer to do in one shot: - Add a note about instability - Add multiple monitors example - Small clarifications ACK for .13

Re: [Qemu-devel] [PATCH 2/2] QMP: Require 'use_unstable' arg for capabilities negotiation

2010-07-09 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com writes: This helps ensuring two things: 1. An initial warning on client writers playing with current QMP 2. Clients using unstable QMP will break when we declare QMP stable and drop that argument Signed-off-by: Luiz Capitulino

[Qemu-devel] Monitoring memory access

2010-07-09 Thread Jun Koi
Hi, I want to monitor memory reading access in Qemu. According to function tcg/i386/tcg-target.c::tcg_out_qemu_ld(), all the memory access must call qemu_ld_helpers[] functions, which in turn calls __ldX_mmu functions. These __ldX_mmu() functions are declared in softmmu_template.c, with macro

Re: [Qemu-devel] Monitoring memory access

2010-07-09 Thread malc
On Fri, 9 Jul 2010, Jun Koi wrote: Hi, I want to monitor memory reading access in Qemu. According to function tcg/i386/tcg-target.c::tcg_out_qemu_ld(), all the memory access must call qemu_ld_helpers[] functions, which in turn calls __ldX_mmu functions. These __ldX_mmu() functions are

[Qemu-devel] [PATCH][Tracing] Specify trace file name

2010-07-09 Thread Prerna Saxena
[PATCH] Allow users to specify a file for trace-outputs at configuration. Also, allow trace files to be annotated by pid so each qemu instance has unique traces. The trace file name can be passed as a config option: --trace-file=/path/to/file (Default : /tmp/trace ) At runtime, the pid of the

[Qemu-devel] [PATCH v2] trace: Flush trace buffer on exit

2010-07-09 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- This patch is against the tracing branch: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/tracing v2: * Reset trace_idx in flush_trace_buffer(). simpletrace.c | 27 ++- 1 files changed, 18

[Qemu-devel] [RFC v4][PATCH][Tracing] Fix build errors for target i386-linux-user

2010-07-09 Thread Prerna Saxena
[PATCH] Separate monitor command handler interfaces and tracing internals. Changelog from v3 : 1. Cleanups. Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com --- monitor.c | 23 +++ simpletrace.c | 52 ++--

[Qemu-devel] Re: [RFC v3][PATCH][Tracing] Fix build errors for target i386-linux-user

2010-07-09 Thread Prerna Saxena
On 07/08/2010 07:04 PM, Stefan Hajnoczi wrote: On Thu, Jul 08, 2010 at 04:50:52PM +0530, Prerna Saxena wrote: On 07/08/2010 02:50 PM, Stefan Hajnoczi wrote: On Thu, Jul 08, 2010 at 10:58:58AM +0530, Prerna Saxena wrote: [PATCH] Separate monitor command handler interfaces and tracing

Re: [Qemu-devel] [RFC v4][PATCH][Tracing] Fix build errors for target i386-linux-user

2010-07-09 Thread Stefan Hajnoczi
On Fri, Jul 9, 2010 at 12:30 PM, Prerna Saxena pre...@linux.vnet.ibm.com wrote: [PATCH] Separate monitor command handler interfaces and tracing internals. Changelog from v3 : 1. Cleanups. Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com ---  monitor.c     |   23

Re: [Qemu-devel] Monitoring memory access

2010-07-09 Thread Jun Koi
On Fri, Jul 9, 2010 at 7:41 PM, malc av1...@comtv.ru wrote: On Fri, 9 Jul 2010, Jun Koi wrote: Hi, I want to monitor memory reading access in Qemu. According to function tcg/i386/tcg-target.c::tcg_out_qemu_ld(), all the memory access must call qemu_ld_helpers[] functions, which in turn

Re: [Qemu-devel] [PATCH 2/2] QMP: Require 'use_unstable' arg for capabilities negotiation

2010-07-09 Thread Luiz Capitulino
On Fri, 09 Jul 2010 10:44:32 +0200 Markus Armbruster arm...@redhat.com wrote: Luiz Capitulino lcapitul...@redhat.com writes: This helps ensuring two things: 1. An initial warning on client writers playing with current QMP 2. Clients using unstable QMP will break when we declare QMP

Re: [Qemu-devel] [PATCH 0/2] target-sh4: Add support for missing ldc stc instructions with sgr

2010-07-09 Thread Nathan Froyd
On Fri, Jul 09, 2010 at 03:38:34PM +0900, Alexandre Courbot wrote: This series of patch adds support for the missing ldc stc privileged instructions with the sgr register. In order to take the difference of support between SH4A and SH4 (which does not recognize ldc with sgr), the LDST macro

Re: [Qemu-devel] [PATCH 2/2] QMP: Require 'use_unstable' arg for capabilities negotiation

2010-07-09 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com writes: On Fri, 09 Jul 2010 10:44:32 +0200 Markus Armbruster arm...@redhat.com wrote: Luiz Capitulino lcapitul...@redhat.com writes: This helps ensuring two things: 1. An initial warning on client writers playing with current QMP 2. Clients

Re: [Qemu-devel] [PATCH 2/2] QMP: Require 'use_unstable' arg for capabilities negotiation

2010-07-09 Thread Luiz Capitulino
On Fri, 09 Jul 2010 15:24:48 +0200 Markus Armbruster arm...@redhat.com wrote: Luiz Capitulino lcapitul...@redhat.com writes: On Fri, 09 Jul 2010 10:44:32 +0200 Markus Armbruster arm...@redhat.com wrote: Luiz Capitulino lcapitul...@redhat.com writes: This helps ensuring two

Re: [Qemu-devel] [PATCH 2/2] QMP: Require 'use_unstable' arg for capabilities negotiation

2010-07-09 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com writes: On Fri, 09 Jul 2010 15:24:48 +0200 Markus Armbruster arm...@redhat.com wrote: Luiz Capitulino lcapitul...@redhat.com writes: On Fri, 09 Jul 2010 10:44:32 +0200 Markus Armbruster arm...@redhat.com wrote: Luiz Capitulino

[Qemu-devel] [PATCH] scsi-generic: only compile if CONFIG_LINUX is set

2010-07-09 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig h...@lst.de Index: qemu/Makefile.objs === --- qemu.orig/Makefile.objs 2010-07-09 09:25:52.856639729 -0700 +++ qemu/Makefile.objs 2010-07-09 09:26:15.562639727 -0700 @@ -70,7 +70,8 @@

[Qemu-devel] Networking under Hurd quest still not working

2010-07-09 Thread Nigel Horne
I've rebuild QEMU and gone back to old images of the Hurd when networking was working (to eliminate that as a cause). Networking is still not working with the latest Git version of QEMU with Linux host and Hurd guest. -Nigel

[Qemu-devel] [PATCH v2] QMP: Introduce the documentation for query-qdm

2010-07-09 Thread Miguel Di Ciurcio Filho
Changelog from v1 - - renamed props to properties - updated the examples - reworded the explanations of name and description - split type into a json-object, adding qmp and qdev - list all possible values for bus - list all possible values for qdev on type - list all possible

[Qemu-devel] [PATCH] set proper migration status on -write error (v3)

2010-07-09 Thread Marcelo Tosatti
If -write fails, declare migration status as MIG_STATE_ERROR. Also, in buffered_file.c, -close the object in case of an error. Fixes migrate -d exec:dd of=file, where dd fails to open file. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com diff --git a/buffered_file.c b/buffered_file.c

[Qemu-devel] [PATCH] qemu-img: Fix copy+paste bug in documentation

2010-07-09 Thread Stefan Weil
Replace rebase by resize in documentation of resize command. Cc: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Cc: Kevin Wolf kw...@redhat.com Signed-off-by: Stefan Weil w...@mail.berlios.de --- qemu-img-cmds.hx |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [Qemu-devel] Monitoring memory access

2010-07-09 Thread malc
On Fri, 9 Jul 2010, Jun Koi wrote: On Fri, Jul 9, 2010 at 7:41 PM, malc av1...@comtv.ru wrote: On Fri, 9 Jul 2010, Jun Koi wrote: Hi, I want to monitor memory reading access in Qemu. According to function tcg/i386/tcg-target.c::tcg_out_qemu_ld(), all the memory access must call

[Qemu-devel] [PATCH] ehci: check controller state when setting list registers

2010-07-09 Thread David Ahern
A prior change prohibited change the periodic and async list registers if the respective list was enabled. This check should also have included whether the controller is in the run state as well. Additionally, added a check that the list registers have been set prior to using it. With this

[Qemu-devel] KVM Forum 2010: schedule and registration reminder

2010-07-09 Thread KVM Forum 2010 Program Committee
As a reminder...the registration fees will increase on July 15th, so register now to save the fees. KVM Forum registration link is here: http://events.linuxfoundation.org/component/registrationpro/?func=detailsdid=34 Hotel and travel information is here (same hotel and venue as LinuxCon):

[Qemu-devel] [PATCH] ehci: honor frame expiration, async list picks up where it left off

2010-07-09 Thread David Ahern
Per Section 4 of the EHCI spec the HC should not start transactions that will not be completed before the end of the micro-frame. For async lists processing in the next frame should pick up where it left off. However, when debugging is enabled we need to allow an overrun since the printfs take

[Qemu-devel] QMP argument parser does not verify json type

2010-07-09 Thread Miguel Di Ciurcio Filho
Hi there, I've run QEMU like this: $ qemu -qmp tcp:localhost:3000,server,nowait -netdev type=tap,id=ndev1,vhost=on Then I run these commands over QMP: works: {execute: device_add, arguments: {driver: virtio-net-pci, csum: off, id: nic1, netdev: ndev1}} works: {execute: device_add, arguments:

[Qemu-devel] [PATCH] ehci: catch invalid qTD earlier - avoid reset

2010-07-09 Thread David Ahern
Catch invalid qTD earlier. Signed-off-by: David Ahern daah...@cisco.com --- hw/usb-ehci.c | 12 +--- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index 53ee1fb..47f3a54 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -838,11 +838,6 @@

[Qemu-devel] Re: [PATCH v2] QMP: Introduce the documentation for query-qdm

2010-07-09 Thread Luiz Capitulino
On Fri, 9 Jul 2010 15:13:48 -0300 Miguel Di Ciurcio Filho miguel.fi...@gmail.com wrote: Changelog from v1 - - renamed props to properties - updated the examples - reworded the explanations of name and description - split type into a json-object, adding qmp and qdev - list