Re: [Qemu-devel] [PATCH] pkg-config: Add a pkg-config script for cross compilations

2011-09-12 Thread Paolo Bonzini
On 09/11/2011 08:47 PM, Stefan Weil wrote: Well, Redhat has a large interest in QEMU, so I assume that Fedora is better prepared for cross compilations than most other distributions. Why are the two related? :) Fedora's cross compilation machinery is indeed used by Red Hat for some

Re: [Qemu-devel] [PATCH 00/15] Sparc AREG0 conversion

2011-09-12 Thread Paolo Bonzini
On 09/11/2011 03:29 PM, Blue Swirl wrote: After this patch set, only load and store op helpers remain in op_helper.c. I have some patches for those but they need more thought. Have you benchmarked it? Paolo

Re: [Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-12 Thread Richard Henderson
On 09/11/2011 09:31 PM, Blue Swirl wrote: Field 'offset' is always zero, maybe that is not interesting. Will it become one day? It's not always zero, but only used by certain devices. r~

Re: [Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-12 Thread Peter Maydell
On 11 September 2011 21:31, Blue Swirl blauwir...@gmail.com wrote: PPC memory system addr off size 7fff -vga.chain4 addr 000a off size 1 -macio addr 8088 off size 8 --macio-nvram addr 0006 off size 2 --pmac-ide

Re: [Qemu-devel] [PATCH 0/2] improve qemu-img conversion performance

2011-09-12 Thread Yehuda Sadeh Weinraub
On Sun, Sep 11, 2011 at 8:17 PM, Yehuda Sadeh Weinraub yehud...@gmail.com wrote: On Sun, Sep 11, 2011 at 8:14 PM, Sage Weil s...@newdream.net wrote: On Fri, 9 Sep 2011, Kevin Wolf wrote: Am 08.09.2011 18:36, schrieb Sage Weil: On Thu, 8 Sep 2011, Kevin Wolf wrote: Am 08.09.2011 01:06,

Re: [Qemu-devel] [PATCH] support add-cow file format

2011-09-12 Thread Kevin Wolf
Am 10.09.2011 02:54, schrieb Dong Xu Wang: 于Fri 09 Sep 2011 10:27:26 PM CST,Kevin Wolf写到: Am 09.09.2011 07:48, schrieb Dong Xu Wang: As raw file format does not support backing_file and copy on write feature, so I add COW to it to support backing_file option. I store dirty bitmap in an

[Qemu-devel] Fwd: Re: ahci doesn't work with qemu emulation

2011-09-12 Thread Andriy Gapon
Guys, could you please take a look at the following patch for qemu ahci emulation? The patch is from the FreeBSD AHCI developer/maintainer. If it looks OK, then we will submit it according to the rules. Thank you! Original Message Sender: Alexander Motin mav...@gmail.com

Re: [Qemu-devel] [PATCH 00/15] Sparc AREG0 conversion

2011-09-12 Thread Richard Henderson
On 09/12/2011 07:26 AM, Paolo Bonzini wrote: On 09/11/2011 03:29 PM, Blue Swirl wrote: After this patch set, only load and store op helpers remain in op_helper.c. I have some patches for those but they need more thought. Have you benchmarked it? Asking for a benchmark without full

Re: [Qemu-devel] [PATCH 0/2] improve qemu-img conversion performance

2011-09-12 Thread Kevin Wolf
Am 12.09.2011 05:17, schrieb Yehuda Sadeh Weinraub: On Sun, Sep 11, 2011 at 8:14 PM, Sage Weil s...@newdream.net wrote: On Fri, 9 Sep 2011, Kevin Wolf wrote: Am 08.09.2011 18:36, schrieb Sage Weil: On Thu, 8 Sep 2011, Kevin Wolf wrote: Am 08.09.2011 01:06, schrieb Yehuda Sadeh: The following

Re: [Qemu-devel] [PATCH 00/15] Sparc AREG0 conversion

2011-09-12 Thread Paolo Bonzini
On 09/12/2011 10:01 AM, Richard Henderson wrote: After this patch set, only load and store op helpers remain in op_helper.c. I have some patches for those but they need more thought. Have you benchmarked it? Asking for a benchmark without full conversion is pointless. Agreed. But I

Re: [Qemu-devel] [PATCH] qcow2: align cluster_data to block to improve performance using O_DIRECT

2011-09-12 Thread Kevin Wolf
Am 10.09.2011 10:59, schrieb Frediano Ziglio: Signed-off-by: Frediano Ziglio fredd...@gmail.com --- block/qcow2.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) Thanks, applied to the block branch. Kevin

Re: [Qemu-devel] AHCI Port Interrupt Enable register cleaning on soft reset

2011-09-12 Thread Alexander Motin
Alexander Graf wrote: Am 11.09.2011 um 16:43 schrieb Alexander Motin m...@freebsd.org: I've found that FreeBSD AHCI driver doesn't work with AHCI hardware emulation of QEMU 0.15.0. I believe the problem is on QEMU's side. As I see, it clears port's Interrupt Enable register each time when

Re: [Qemu-devel] [PATCH 11/15] Sparc: avoid AREG0 for CWP and PSTATE helpers

2011-09-12 Thread Stuart Brady
On Sun, Sep 11, 2011 at 01:31:03PM +, Blue Swirl wrote: Make CWP and PSTATE helpers take a parameter for CPUState instead of relying on global env. Move the functions to helper.c, remove wrapper functions. Signed-off-by: Blue Swirl blauwir...@gmail.com --- Makefile.target |

[Qemu-devel] [PATCH] hw/omap_gpmc: Don't try to map CS0 twice on reset

2011-09-12 Thread Peter Maydell
Remove a spurious second map of the OMAP GPMC CS0 region on reset. This fixes an assertion failure when we try to add the region to its container when it was already added. (The old code did not complain about mismatched map/unmap calls, but the new MemoryRegion implementation does.)

Re: [Qemu-devel] [PATCH] qcow2: fix range check

2011-09-12 Thread Kevin Wolf
Am 10.09.2011 10:23, schrieb Frediano Ziglio: QCowL2Meta::offset is not cluster aligned but only sector aligned however nb_clusters count cluster from cluster start. This fix range check. Note that old code have no corruption issues related to this check cause it only cause intersection to

[Qemu-devel] [Bug 847638] [NEW] screendump broken for text mode

2011-09-12 Thread Avg
Public bug reported: I use Qemu 0.15.0 (via a FreeBSD qemu-devel-0.15.0 port) and observe the following problem with the screendump command. Environment: - qemu started with a standard vga adapter emulation (not sure if this important) - SDL interface is used (not sure if this important) -

Re: [Qemu-devel] [PATCH] hw/omap_gpmc: Don't try to map CS0 twice on reset

2011-09-12 Thread Peter Maydell
On 12 September 2011 09:33, Peter Maydell peter.mayd...@linaro.org wrote: Remove a spurious second map of the OMAP GPMC CS0 region on reset. This fixes an assertion failure when we try to add the region to its container when it was already added. (The old code did not complain about mismatched

Re: [Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-12 Thread Avi Kivity
On 09/11/2011 11:31 PM, Blue Swirl wrote: Add a monitor command 'info mtree' to show the memory hierarchy. Does this turn the memory hierarchy into an ABI? It shouldn't. Things like BARs are immutable but if a BAR is internally composed of several regions, well that's no one's business.

Re: [Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-12 Thread Jan Kiszka
On 2011-09-12 10:46, Avi Kivity wrote: On 09/11/2011 11:31 PM, Blue Swirl wrote: Add a monitor command 'info mtree' to show the memory hierarchy. Does this turn the memory hierarchy into an ABI? It shouldn't. Things like BARs are immutable but if a BAR is internally composed of several

Re: [Qemu-devel] [PATCH] Add iSCSI support for QEMU

2011-09-12 Thread Kevin Wolf
Am 10.09.2011 06:23, schrieb Ronnie Sahlberg: List, Please find a patch that adds built-in iSCSI support to QEMU when built and linked against the multiplatform iscsi initiator library at git://github.com/sahlberg/libiscsi.git All previous comments and suggestions have been addressed

Re: [Qemu-devel] [PATCH] hw/lan9118.c: Convert to MemoryRegion

2011-09-12 Thread Avi Kivity
On 09/09/2011 07:47 PM, Peter Maydell wrote: Ping? On 25 August 2011 18:59, Peter Maydellpeter.mayd...@linaro.org wrote: Signed-off-by: Peter Maydellpeter.mayd...@linaro.org --- Another device I needed to convert so I could connect it to omap_gpmc for an omap3 board (in this case

Re: [Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-12 Thread Jan Kiszka
On 2011-09-12 08:43, Richard Henderson wrote: On 09/11/2011 09:31 PM, Blue Swirl wrote: Field 'offset' is always zero, maybe that is not interesting. Will it become one day? It's not always zero, but only used by certain devices. I do not see any users, neither upstream nor in Avi's tree.

Re: [Qemu-devel] [PATCH] PPC: Fix via-cuda memory registration

2011-09-12 Thread Avi Kivity
On 09/11/2011 02:38 PM, Alexander Graf wrote: Am 11.09.2011 um 12:41 schrieb Avi Kivitya...@redhat.com: On 09/08/2011 07:54 PM, Alexander Graf wrote: PS: Please test your patches. This one could have been found with an invocation as simple as qemu-system-ppc. We boot into the

Re: [Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-12 Thread Avi Kivity
On 09/12/2011 12:01 PM, Jan Kiszka wrote: On 2011-09-12 08:43, Richard Henderson wrote: On 09/11/2011 09:31 PM, Blue Swirl wrote: Field 'offset' is always zero, maybe that is not interesting. Will it become one day? It's not always zero, but only used by certain devices. I do not see

Re: [Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-12 Thread Avi Kivity
On 09/12/2011 11:53 AM, Jan Kiszka wrote: On 2011-09-12 10:46, Avi Kivity wrote: On 09/11/2011 11:31 PM, Blue Swirl wrote: Add a monitor command 'info mtree' to show the memory hierarchy. Does this turn the memory hierarchy into an ABI? It shouldn't. Things like BARs are immutable

Re: [Qemu-devel] [PATCH] This patch adds a new block driver : iSCSI

2011-09-12 Thread Stefan Hajnoczi
On Sat, Sep 10, 2011 at 02:23:30PM +1000, Ronnie Sahlberg wrote: Looking good. I think this is worth merging because it does offer benefits over host iSCSI. +static void +iscsi_abort_task_cb(struct iscsi_context *iscsi, int status, void *command_data, +void

[Qemu-devel] [PATCH] block: emulate .bdrv_flush() using .bdrv_aio_flush()

2011-09-12 Thread Stefan Hajnoczi
Block drivers typically have two copies of the flush operation: a synchronous .bdrv_flush() and an asynchronous .bdrv_aio_flush(). This patch applies the same emulation that we already do for .bdrv_read()/.bdrv_write() to .bdrv_flush(). Now block drivers only need to provide either

Re: [Qemu-devel] [PATCH 12/15] qapi: add change-vnc-listen (v2)

2011-09-12 Thread Daniel P. Berrange
On Fri, Sep 02, 2011 at 05:50:05PM -0300, Luiz Capitulino wrote: On Fri, 2 Sep 2011 12:34:55 -0500 Anthony Liguori aligu...@us.ibm.com wrote: New QMP only command to change the VNC server's listening address. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- v1 - v2 -

Re: [Qemu-devel] [Qemu-trivial] [PATCH] qemu-doc: Remove URL which is no longer available

2011-09-12 Thread Stefan Hajnoczi
On Mon, Sep 12, 2011 at 12:04 AM, Andreas Färber andreas.faer...@web.de wrote: Am 11.09.2011 um 22:39 schrieb Alexander Graf: Am 10.09.2011 um 23:09 schrieb Stefan Weil w...@mail.berlios.de: http://perso.magic.fr/l_indien/ was removed several years ago. There is obviously no mirror or any

Re: [Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-12 Thread Jan Kiszka
On 2011-09-12 11:11, Avi Kivity wrote: On 09/12/2011 12:01 PM, Jan Kiszka wrote: On 2011-09-12 08:43, Richard Henderson wrote: On 09/11/2011 09:31 PM, Blue Swirl wrote: Field 'offset' is always zero, maybe that is not interesting. Will it become one day? It's not always zero, but only

Re: [Qemu-devel] unable to access the serial port on the Vm

2011-09-12 Thread Stefan Hajnoczi
I sent before noticing that your email dropped qemu-devel@nongnu.org from the CC list again. Please use Reply-All when responding on mailing lists. That way the mailing list stays CCed and others can contribute to the discussion. On Mon, Sep 12, 2011 at 10:25 AM, Stefan Hajnoczi

Re: [Qemu-devel] [PATCH 12/15] qapi: add change-vnc-listen (v2)

2011-09-12 Thread Daniel P. Berrange
On Mon, Sep 12, 2011 at 10:17:21AM +0100, Daniel P. Berrange wrote: On Fri, Sep 02, 2011 at 05:50:05PM -0300, Luiz Capitulino wrote: On Fri, 2 Sep 2011 12:34:55 -0500 Anthony Liguori aligu...@us.ibm.com wrote: New QMP only command to change the VNC server's listening address.

[Qemu-devel] [PATCH] tcg/arm: Remove unused tcg_out_addi()

2011-09-12 Thread Peter Maydell
Remove the unused function tcg_out_addi() from the ARM TCG backend; this fixes a compilation failure on ARM hosts with newer gcc. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- A previous patch from Richard Henderson for this compile failure: http://patchwork.ozlabs.org/patch/110400/

Re: [Qemu-devel] [PATCH] PPC: Fix via-cuda memory registration

2011-09-12 Thread Alexander Graf
On 12.09.2011, at 11:07, Avi Kivity wrote: On 09/11/2011 02:38 PM, Alexander Graf wrote: Am 11.09.2011 um 12:41 schrieb Avi Kivitya...@redhat.com: On 09/08/2011 07:54 PM, Alexander Graf wrote: PS: Please test your patches. This one could have been found with an invocation as

Re: [Qemu-devel] unable to access the serial port on the Vm

2011-09-12 Thread bala suru
Hi, Sorry for missing out the CC in the previous mail . Can I do this on the running VMs ..?, I'm using opennebula to spawn the VMs, so it would be good if edit before spawning the VMs.. regards Bala On Mon, Sep 12, 2011 at 2:56 PM, Stefan Hajnoczi stefa...@gmail.com wrote: I sent before

Re: [Qemu-devel] About hotplug multifunction

2011-09-12 Thread Marcelo Tosatti
On Sun, Sep 11, 2011 at 09:51:06PM +0300, Michael S. Tsirkin wrote: On Sun, Sep 11, 2011 at 12:01:49PM -0300, Marcelo Tosatti wrote: On Sun, Sep 11, 2011 at 12:23:57PM +0300, Michael S. Tsirkin wrote: On Fri, Sep 09, 2011 at 03:34:26PM -0300, Marcelo Tosatti wrote: something I noted

Re: [Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-12 Thread Gerd Hoffmann
I/O io addr off size 1 -e1000-io addr c000 off size 40 -piix-bmdma-container addr c040 off size 10 --bmdma addr 000c off size 4 --piix-bmdma addr 0008 off

[Qemu-devel] [PULL 03/28] mips_mipssim: convert to memory API

2011-09-12 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/mips_mipssim.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c index ac6..7407158 100644 --- a/hw/mips_mipssim.c +++ b/hw/mips_mipssim.c @@ -137,8 +137,9 @@ static

[Qemu-devel] [PULL 26/28] serial: Use enum device_endian in serial_mm_init parameter

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net The use of DEVICE_NATIVE_ENDIAN cleans up lots of ifdefs in many of the callers. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/mips_jazz.c | 14 -- hw/mips_malta.c |

[Qemu-devel] [PULL 05/28] musicpal: convert to memory API

2011-09-12 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/musicpal.c | 243 +++-- 1 files changed, 99 insertions(+), 144 deletions(-) diff --git a/hw/musicpal.c b/hw/musicpal.c index ade5a91..9b1f380 100644 --- a/hw/musicpal.c +++ b/hw/musicpal.c @@

[Qemu-devel] [PULL 06/28] omap1: convert to memory API (part I)

2011-09-12 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/omap.h | 11 ++- hw/omap1.c| 338 +++- hw/omap_sx1.c |4 +- hw/palm.c |4 +- 4 files changed, 203 insertions(+), 154 deletions(-) diff --git a/hw/omap.h b/hw/omap.h index

Re: [Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-12 Thread Avi Kivity
On 09/12/2011 01:37 PM, Gerd Hoffmann wrote: I/O io addr off size 1 -e1000-io addr c000 off size 40 -piix-bmdma-container addr c040 off size 10 --bmdma addr 000c off size

Re: [Qemu-devel] unable to access the serial port on the Vm

2011-09-12 Thread Stefan Hajnoczi
On Mon, Sep 12, 2011 at 03:49:53PM +0530, bala suru wrote: Can I do this on the running VMs ..?, I'm using opennebula to spawn the VMs, so it would be good if edit before spawning the VMs.. I don't think you can do this on a running VM. At the bottom of this page they show how you can add the

Re: [Qemu-devel] [PATCH] block: emulate .bdrv_flush() using .bdrv_aio_flush()

2011-09-12 Thread Paolo Bonzini
On 09/12/2011 11:14 AM, Stefan Hajnoczi wrote: Block drivers typically have two copies of the flush operation: a synchronous .bdrv_flush() and an asynchronous .bdrv_aio_flush(). This patch applies the same emulation that we already do for .bdrv_read()/.bdrv_write() to .bdrv_flush(). Now block

[Qemu-devel] [PULL 22/28] etrax-timer: Convert to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Avi Kivity a...@redhat.com --- hw/etraxfs_timer.c | 31 --- 1 files changed, 16 insertions(+), 15 deletions(-) diff --git a/hw/etraxfs_timer.c

[Qemu-devel] [PULL 01/28] mips_jazz: convert to memory API

2011-09-12 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/mips_jazz.c | 90 1 files changed, 45 insertions(+), 45 deletions(-) diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c index f3c9f93..bde9be6 100644 --- a/hw/mips_jazz.c +++ b/hw/mips_jazz.c @@

[Qemu-devel] [PULL 23/28] etrax-dma: Convert to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Avi Kivity a...@redhat.com --- hw/etraxfs_dma.c | 43 +++ 1 files changed, 27 insertions(+), 16 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 2/2] mipsnet: use trace framework

2011-09-12 Thread Paolo Bonzini
On 09/04/2011 10:29 PM, Hervé Poussineau wrote: +mipsnet_write(uint64_t addr, uint64_t val) write addr=0x% PRIx64 val=0x% PRIx64 This breaks the build, though actually it is because of a bug in the parser. It should be written as mipsnet_write(uint64_t addr, uint64_t val) write addr=0x%

[Qemu-devel] [PULL 25/28] serial: Convert serial_mm_init to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/serial.c | 145 +-- 1 files changed, 31 insertions(+), 114 deletions(-) diff --git a/hw/serial.c

[Qemu-devel] [PULL 21/28] etrax-ser: Convert to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Avi Kivity a...@redhat.com --- hw/etraxfs_ser.c | 33 ++--- 1 files changed, 18 insertions(+), 15 deletions(-) diff --git a/hw/etraxfs_ser.c

Re: [Qemu-devel] [PATCH] block: emulate .bdrv_flush() using .bdrv_aio_flush()

2011-09-12 Thread Paolo Bonzini
On 09/12/2011 11:14 AM, Stefan Hajnoczi wrote: Block drivers typically have two copies of the flush operation: a synchronous .bdrv_flush() and an asynchronous .bdrv_aio_flush(). This patch applies the same emulation that we already do for .bdrv_read()/.bdrv_write() to .bdrv_flush(). Now block

Re: [Qemu-devel] unable to access the serial port on the Vm

2011-09-12 Thread bala suru
Hi, Thanks for the help , Now I could do cat /dev/ttyS0 , no error . it runs well . But I need to connect a some USB device which will create a virtual serialport called /dev/ttyACM0, I cloud not see this on the Vm running .. This XML format I used RAW = [ type = kvm, data =

[Qemu-devel] [PULL 15/28] i8259: Convert to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net The only non-obvious part is pic_poll_read which used addr1 7 to detect whether one referred to either the master or slave PIC. Instead, test this directly. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com ---

[Qemu-devel] [PULL 20/28] etrax-pic: Convert to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Avi Kivity a...@redhat.com --- hw/etraxfs_pic.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/hw/etraxfs_pic.c

[Qemu-devel] [PULL 11/28] pc: Re-order pc_init1 to initialize the ISA bus before ISA devices

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net In particular, the i8259 was being initialized before the ISA bus, leading to a crash. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/pc_piix.c | 22 -- 1 files changed, 12

[Qemu-devel] [PULL 28/28] serial: Add MemoryRegion parameter to serial_mm_init

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net Remove the get_system_memory() call from serial_mm_init, pushing it back into the callers. In many cases we already have the system memory region available. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com ---

[Qemu-devel] [PULL 09/28] isa: Pass i/o address space to isa_bus_new

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net Not used yet, but at least we're provided with the correct region. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/isa-bus.c |4 +++- hw/isa.h |2 +- hw/mips_jazz.c | 17

[Qemu-devel] [PULL 13/28] i8254: Convert to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/i8254.c | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hw/i8254.c b/hw/i8254.c index a9ca9f6..12571ef 100644 ---

[Qemu-devel] [PULL 14/28] mips_malta: move i8259 initialization after piix4 initialization

2011-09-12 Thread Avi Kivity
i8259 is an ISA device; and the ISA bus is supplied by piix4. Later patches make this dependency explicit. Signed-off-by: Avi Kivity a...@redhat.com --- hw/mips_malta.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index

[Qemu-devel] [PULL 04/28] mips_r4k: convert to memory API

2011-09-12 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/mips_r4k.c | 39 +++ 1 files changed, 15 insertions(+), 24 deletions(-) diff --git a/hw/mips_r4k.c b/hw/mips_r4k.c index 5d002c5..805d02a 100644 --- a/hw/mips_r4k.c +++ b/hw/mips_r4k.c @@ -42,8 +42,8 @@

[Qemu-devel] [PULL 07/28] omap1: convert to memory API (part II)

2011-09-12 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/omap.h |7 ++- hw/omap1.c | 195 2 files changed, 111 insertions(+), 91 deletions(-) diff --git a/hw/omap.h b/hw/omap.h index eec8f04..cb3b524 100644 --- a/hw/omap.h +++

[Qemu-devel] [PULL 16/28] pckbd: Convert to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net Slightly non-obvious with mips_jazz passing in the region structure to populate. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/mips_jazz.c |4 ++- hw/pc.h|2 +- hw/pckbd.c | 59

[Qemu-devel] [PULL 17/28] serial: Convert serial_isa_initfn to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net The serial_mm_init path is as yet unconverted. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/serial.c | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hw/serial.c

[Qemu-devel] [PULL 27/28] serial: Remove ioregister parameter from serial_mm_init

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net All callers passed 1. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/mips_jazz.c |4 ++-- hw/mips_malta.c |2 +- hw/musicpal.c|4 ++-- hw/omap_uart.c

Re: [Qemu-devel] About hotplug multifunction

2011-09-12 Thread Marcelo Tosatti
On Mon, Sep 12, 2011 at 07:21:48AM -0300, Marcelo Tosatti wrote: We could, for example, keep a stub function 0 around. I suppose the guest will remove all functions of a device once you attempt to hot-unplug a function. What is the problem with adding more PCI buses, instead of

Re: [Qemu-devel] About hotplug multifunction

2011-09-12 Thread Michael S. Tsirkin
On Mon, Sep 12, 2011 at 07:56:07AM -0300, Marcelo Tosatti wrote: On Mon, Sep 12, 2011 at 07:21:48AM -0300, Marcelo Tosatti wrote: We could, for example, keep a stub function 0 around. I suppose the guest will remove all functions of a device once you attempt to hot-unplug a function.

[Qemu-devel] [PULL 10/28] isa: add isa_register_ioport()

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net To replace isa_init_ioport and isa_init_ioport_range as the ISA devices are converted to the memory api. [avi: use memory_region_size()] Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/isa-bus.c | 10

Re: [Qemu-devel] [PULL 00/28] Memory API conversion, batch 7

2011-09-12 Thread Avi Kivity
On 09/12/2011 01:50 PM, Avi Kivity wrote: git://github.com/avikivity/qemu.git memory/batch More of the same. I tested what I could using the images on the qemu wiki - note not all images boot even on upstream. Whoops - don't pull - bad patch in there. -- error compiling committee.c: too

[Qemu-devel] [PULL 08/28] pci: add pci_address_space_io()

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net Returns the I/O address space. Useful for implementing PCI-ISA bridge devices. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c |5 + hw/pci.h |1 + 2 files changed, 6 insertions(+), 0

[Qemu-devel] [PULL 02/28] mips_malta: convert to memory API

2011-09-12 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/mips_malta.c | 53 ++--- 1 files changed, 26 insertions(+), 27 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index e7cdf20..0110daa 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.c

[Qemu-devel] [PULL 00/28] Memory API conversion, batch 7

2011-09-12 Thread Avi Kivity
git://github.com/avikivity/qemu.git memory/batch More of the same. I tested what I could using the images on the qemu wiki - note not all images boot even on upstream. Avi Kivity (9): mips_jazz: convert to memory API mips_malta: convert to memory API mips_mipssim: convert to memory API

[Qemu-devel] [PULL 18/28] fdc: Convert isabus_fdc_init1 to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net This requires some amount of hoop-jumping, so that we don't inadvertently claim port 0x3f6, which is used by ISA IDE. The sysbus initialization path is as yet unconverted. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity

[Qemu-devel] [PULL 12/28] cs4231a: Convert to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Richard Henderson r...@twiddle.net Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Avi Kivity a...@redhat.com --- hw/cs4231a.c | 38 +++--- 1 files changed, 19 insertions(+), 19 deletions(-) diff --git a/hw/cs4231a.c b/hw/cs4231a.c index

[Qemu-devel] [PULL 19/28] pci: simplify memory region registration

2011-09-12 Thread Avi Kivity
The two code paths (for ADDRESS_SPACE_IO and ADDRESS_SPACE_MEM) are identical. Unify them. Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 13 ++--- 1 files changed, 2 insertions(+), 11 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index d23fa74..a4d7761 100644 ---

[Qemu-devel] [PULL 24/28] etrax-eth: Convert to MemoryRegion

2011-09-12 Thread Avi Kivity
From: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Avi Kivity a...@redhat.com --- hw/etraxfs_eth.c | 30 -- 1 files changed, 16 insertions(+), 14 deletions(-) diff --git a/hw/etraxfs_eth.c

Re: [Qemu-devel] [PULL 15/28] i8259: Convert to MemoryRegion

2011-09-12 Thread Jan Kiszka
On 2011-09-12 12:50, Avi Kivity wrote: From: Richard Henderson r...@twiddle.net The only non-obvious part is pic_poll_read which used addr1 7 to detect whether one referred to either the master or slave PIC. Instead, test this directly. I've an unfinished queue here that, among other

Re: [Qemu-devel] [PULL 00/28] Memory API conversion, batch 7

2011-09-12 Thread Anthony Liguori
On 09/12/2011 07:29 AM, Avi Kivity wrote: On 09/12/2011 01:50 PM, Avi Kivity wrote: git://github.com/avikivity/qemu.git memory/batch More of the same. I tested what I could using the images on the qemu wiki - note not all images boot even on upstream. Whoops - don't pull - bad patch in

Re: [Qemu-devel] [PULL 00/28] Memory API conversion, batch 7

2011-09-12 Thread Avi Kivity
On 09/12/2011 03:57 PM, Anthony Liguori wrote: On 09/12/2011 07:29 AM, Avi Kivity wrote: On 09/12/2011 01:50 PM, Avi Kivity wrote: git://github.com/avikivity/qemu.git memory/batch More of the same. I tested what I could using the images on the qemu wiki - note not all images boot even on

[Qemu-devel] KVM call agenda for Septemebre 13

2011-09-12 Thread Juan Quintela
Hi Please send in any agenda items you are interested in covering. Thanks, Juan.

[Qemu-devel] [PATCH] mips_malta: move i8259 initialization after piix4 initialization

2011-09-12 Thread Avi Kivity
i8259 is an ISA device (or at least, depends on the ISA infrastructure to register its ioport); and the ISA bus is supplied by piix4. Later patches make this dependency explicit. Move the i8259 initialization until after the ISA bus is created; and supply a new qemu_irq to PCI initialization,

Re: [Qemu-devel] KVM call agenda for Septemebre 13

2011-09-12 Thread Anthony Liguori
On 09/12/2011 08:07 AM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. - Device state visualization Regards, Anthony Liguori Thanks, Juan.

Re: [Qemu-devel] KVM call agenda for Septemebre 13

2011-09-12 Thread Jan Kiszka
On 2011-09-12 15:12, Anthony Liguori wrote: On 09/12/2011 08:07 AM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. - Device state visualization Wow, still that controversial? Reminds me that you asked me for some visitor adaption I haven't looked

Re: [Qemu-devel] KVM call agenda for Septemebre 13

2011-09-12 Thread Anthony Liguori
On 09/12/2011 08:15 AM, Jan Kiszka wrote: On 2011-09-12 15:12, Anthony Liguori wrote: On 09/12/2011 08:07 AM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. - Device state visualization Wow, still that controversial? No, I just wanted to chat

[Qemu-devel] [PATCH] pci: Remove unused mem_base from PCIBus

2011-09-12 Thread Jan Kiszka
Obsoleted by f64e02b6cc. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/pci_internals.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/pci_internals.h b/hw/pci_internals.h index c7fd23d..10b4adf 100644 --- a/hw/pci_internals.h +++ b/hw/pci_internals.h @@

Re: [Qemu-devel] Question on kvm_clock working ...

2011-09-12 Thread al pat
Hi Folks, Still seeking your guidance on this. Appreciate any pointers you may have. Thanks much. -a On Fri, Sep 9, 2011 at 11:28 AM, al pat alps@gmail.com wrote: We are doing an experiment with kvm-clock to validate its effectiveness, particularly when running NTP on the host to make

Re: [Qemu-devel] [PULL 15/28] i8259: Convert to MemoryRegion

2011-09-12 Thread Jan Kiszka
On 2011-09-12 14:54, Jan Kiszka wrote: On 2011-09-12 12:50, Avi Kivity wrote: From: Richard Henderson r...@twiddle.net The only non-obvious part is pic_poll_read which used addr1 7 to detect whether one referred to either the master or slave PIC. Instead, test this directly. I've an

Re: [Qemu-devel] [PATCH] PPC: Fix via-cuda memory registration

2011-09-12 Thread Lucas Meneghel Rodrigues
On 09/12/2011 06:07 AM, Avi Kivity wrote: On 09/11/2011 02:38 PM, Alexander Graf wrote: Am 11.09.2011 um 12:41 schrieb Avi Kivitya...@redhat.com: On 09/08/2011 07:54 PM, Alexander Graf wrote: PS: Please test your patches. This one could have been found with an invocation as simple as

Re: [Qemu-devel] [PATCH] PPC: Fix via-cuda memory registration

2011-09-12 Thread Avi Kivity
On 09/12/2011 04:46 PM, Lucas Meneghel Rodrigues wrote: On 09/12/2011 06:07 AM, Avi Kivity wrote: On 09/11/2011 02:38 PM, Alexander Graf wrote: Am 11.09.2011 um 12:41 schrieb Avi Kivitya...@redhat.com: On 09/08/2011 07:54 PM, Alexander Graf wrote: PS: Please test your patches. This one

Re: [Qemu-devel] [PATCH 02/12] nbd: sync API definitions with upstream

2011-09-12 Thread Kevin Wolf
Am 08.09.2011 17:24, schrieb Paolo Bonzini: Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- nbd.c |2 ++ nbd.h | 11 ++- 2 files changed, 12 insertions(+), 1 deletions(-) Which upstream? I can't find any NBD version that defines a command/flag for TRIM. Kevin

[Qemu-devel] [PULL 00/35] Block patches

2011-09-12 Thread Kevin Wolf
The following changes since commit 44520db10b1b92f272348ab7028e7afc68ac3edf: Gdbstub: Fix back-trace on SPARC32 (2011-09-10 18:12:35 +) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Frediano Ziglio (4): qcow2: removed unused depends_on field

[Qemu-devel] [PATCH 12/35] scsi-disk: Track tray locked state

2011-09-12 Thread Kevin Wolf
From: Markus Armbruster arm...@redhat.com We already track it in BlockDriverState. Just like tray open/close state, we should track it in the device models instead, because it's device state. Signed-off-by: Markus Armbruster arm...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com ---

[Qemu-devel] [PATCH 28/35] block: Reset buffer alignment on detach

2011-09-12 Thread Kevin Wolf
From: Markus Armbruster arm...@redhat.com BlockDriverState member buffer_alignment is initially 512. The device model may set them, with bdrv_set_buffer_alignment(). If the device model gets detached (hot unplug), the device's alignment is left behind. Only okay because device hot unplug

[Qemu-devel] [PATCH 15/35] block: Rename bdrv_set_locked() to bdrv_lock_medium()

2011-09-12 Thread Kevin Wolf
From: Markus Armbruster arm...@redhat.com While there, make the locked parameter bool. Signed-off-by: Markus Armbruster arm...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com --- block.c |8 block.h |2 +- block/raw-posix.c |8 block/raw.c

[Qemu-devel] [PATCH 20/35] scsi-disk: Fix START_STOP to fail when it can't eject

2011-09-12 Thread Kevin Wolf
From: Markus Armbruster arm...@redhat.com Don't fail when tray is already open. Signed-off-by: Markus Armbruster arm...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com --- hw/scsi-bus.c | 10 ++ hw/scsi-disk.c | 15 +++ hw/scsi.h |4 3 files changed,

[Qemu-devel] [PATCH 31/35] ide/atapi scsi-disk: Make monitor eject -f, then change work

2011-09-12 Thread Kevin Wolf
From: Markus Armbruster arm...@redhat.com change fails while the tray is locked by the guest. eject -f forces it open and removes any media. Unfortunately, the tray closes again instantly. Since the lock remains as it is, there is no way to insert another medium unless the guest voluntarily

[Qemu-devel] [PATCH 35/35] qcow2: fix range check

2011-09-12 Thread Kevin Wolf
From: Frediano Ziglio fredd...@gmail.com QCowL2Meta::offset is not cluster aligned but only sector aligned however nb_clusters count cluster from cluster start. This fix range check. Note that old code have no corruption issues related to this check cause it only cause intersection to occur when

Re: [Qemu-devel] [PATCH 1/1] qemu-img: async write to block device when converting image

2011-09-12 Thread Yehuda Sadeh Weinraub
Note that I assumed qemu-img runs in a single context (like qemu), and there are no concurrency issues. If that's not the case, the callback, error handling need to be fixed. Yehuda On Mon, Sep 12, 2011 at 7:26 AM, Yehuda Sadeh yeh...@hq.newdream.net wrote: In order to improve image conversion

[Qemu-devel] [PATCH 08/35] scsi-disk: Track tray open/close state

2011-09-12 Thread Kevin Wolf
From: Markus Armbruster arm...@redhat.com We already track it in BlockDriverState since commit 4be9762a. As discussed in that commit's message, we should track it in the device device models instead, because it's device state. Signed-off-by: Markus Armbruster arm...@redhat.com Signed-off-by:

[Qemu-devel] [PATCH v2] hw/integratorcp: Fix bugs in writes to CM_CTRL system register

2011-09-12 Thread Peter Maydell
Fix a number of bugs in the implementation of writes to the CM_CTRL system register: * write to cm_ctrl, not cm_init ! * an '' vs '^' typo meant we would write the inverse of the bits * handling the LED via printf() meant we spew lots of output to stdout when Linux uses the LED as a

[Qemu-devel] [PATCH 19/35] ide/atapi: Don't fail eject when tray is already open

2011-09-12 Thread Kevin Wolf
From: Markus Armbruster arm...@redhat.com MMC-5 6.40.2.6 specifies that START STOP UNIT succeeds when the drive already has the requested state. cmd_start_stop_unit() fails when asked to eject while the tray is open and locked. Fix that. Signed-off-by: Markus Armbruster arm...@redhat.com

  1   2   >