Re: [Qemu-devel] [PATCH v2] stop using stdio for monitor/serial/etc with -daemonize

2012-09-26 Thread Michael Tokarev
On 26.09.2012 01:19, Anthony Liguori wrote: > Combining -nographic and -daemonize don't make sense. I'd rather error > out with this combination. > > I think what the user is after is -daemonize -vga none OR -daemonize > -display none. So what's the difference? I know lots of people use -nograp

Re: [Qemu-devel] KVM call agenda for September 25th

2012-09-26 Thread Markus Armbruster
Anthony Liguori writes: > Kevin Wolf writes: > >> Am 25.09.2012 14:57, schrieb Anthony Liguori: >>> Paolo Bonzini writes: >>> Il 24/09/2012 13:28, Juan Quintela ha scritto: > Hi > > Please send in any agenda items you are interested in covering. URI parsing library f

[Qemu-devel] [PATCH 2/8] compat: turn off msi/msix on xhci for old machine types

2012-09-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/pc_piix.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 5a0796b..afd8361 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -358,14 +358,30 @@ static QEMUMachine pc_machine_v1_3 = {

[Qemu-devel] [PATCH 4/8] xhci: route string & usb hub support

2012-09-26 Thread Gerd Hoffmann
Parse route string in slot contexts and support devices connected via hub. --- hw/usb/hcd-xhci.c | 86 ++--- 1 files changed, 55 insertions(+), 31 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 1414826..8c0155b 100644 --- a/

Re: [Qemu-devel] [PATCH v4 0/3] qapi: convert add_client

2012-09-26 Thread Markus Armbruster
Luiz Capitulino writes: > v4 > > - Fix misworded error message in monitor_get_fd() [Markus] > - small doc & commit log improvements [Markus] I'd still like 1/3 to describe the change to the parsing of property "configfd". No biggie, so: Reviewed-by: Markus Armbruster

[Qemu-devel] [PATCH 1/8] add pc-1.3 machine type

2012-09-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/pc_piix.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 88ff041..5a0796b 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -349,8 +349,8 @@ static void pc_xen_hvm_init(ram_addr_t ram_size,

Re: [Qemu-devel] linux aio and cache mode

2012-09-26 Thread Kevin Wolf
Am 26.09.2012 01:22, schrieb ching: > On 09/25/2012 09:33 PM, Kevin Wolf wrote: >> Am 25.09.2012 00:40, schrieb ching: >>> On 09/24/2012 08:30 PM, Kevin Wolf wrote: Am 24.09.2012 13:32, schrieb ching: > Hi all, > > My host is qemu-1.1.1 and x64 kernel 3.5.4. The guest is using >>>

Re: [Qemu-devel] [PATCH 1/3] pci-assign: use monitor_handle_fd_param

2012-09-26 Thread Markus Armbruster
Markus Armbruster writes: > Luiz Capitulino writes: > >> From: Paolo Bonzini >> >> There is no need to open-code the choice between a file descriptor >> number or a named one. Just use monitor_handle_fd_param, which >> also takes care of printing the error message. >> >> Signed-off-by: Paolo B

Re: [Qemu-devel] [PATCH v2] stop using stdio for monitor/serial/etc with -daemonize

2012-09-26 Thread Peter Maydell
On 26 September 2012 08:09, Michael Tokarev wrote: > On 26.09.2012 01:19, Anthony Liguori wrote: >> Combining -nographic and -daemonize don't make sense. I'd rather error >> out with this combination. >> >> I think what the user is after is -daemonize -vga none OR -daemonize >> -display none. > >

[Qemu-devel] [PATCH 6/8] ehci: Fix interrupt packet MULT handling

2012-09-26 Thread Gerd Hoffmann
From: Hans de Goede There are several issues with our handling of the MULT epcap field of interrupt qhs, which this patch fixes. 1) When we don't execute a transaction because of the transaction counter being 0, p->async stays EHCI_ASYNC_NONE, and the next time we process the same qtd we hit an

Re: [Qemu-devel] [libvirt] [PATCH 0/2] Fixed QEMU 1.0.1 support

2012-09-26 Thread Michal Privoznik
On 25.09.2012 19:08, Doug Goldstein wrote: > On Tue, Sep 25, 2012 at 12:01 PM, Daniel P. Berrange > wrote: >> On Tue, Sep 25, 2012 at 10:57:23AM -0600, Eric Blake wrote: >>> On 09/25/2012 06:54 AM, Daniel P. Berrange wrote: On Tue, Sep 25, 2012 at 02:49:00PM +0200, Michal Privoznik wrote: >>>

Re: [Qemu-devel] [PATCH v2] register reset handler to write image into memory

2012-09-26 Thread Yin Olivia-R63875
Hi Alex, I checked all the rom_add_*() functions. Multiple platforms of different architectures use rom_add_* to save images. hw/arm_boot.c hw/exynos4210. hw/highbank. hw/mips_fulong2e.c hw/mips_malta.c hw/mips_r4k.c hw/r2d.c Even for PowerP

Re: [Qemu-devel] [PATCH 04/25] ahci: add ide device initialization helper

2012-09-26 Thread Markus Armbruster
Jason Baron writes: > On Mon, Sep 24, 2012 at 06:52:29PM +0200, Markus Armbruster wrote: >> Jason Baron writes: >> >> > On Fri, Sep 21, 2012 at 04:05:14PM +0200, Markus Armbruster wrote: >> >> Jason Baron writes: >> >> >> >> > From: Isaku Yamahata >> >> > >> >> > Introduce a helper function

[Qemu-devel] [PULL 0/8] usb patch queue

2012-09-26 Thread Gerd Hoffmann
Hi, This is the usb patch queue. Adds a pc-1.3 machine type (patch #1) so I can add xhci compat properties (patch #2). xhci gets usb hub support. Other that that just a bunch of bugfixes. please pull, Gerd The following changes since commit d9b41bcda91ea7285d934a9c2333c49cd32d1ad3: Merg

[Qemu-devel] [PATCH 5/8] xhci: create a memory region for each port

2012-09-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 85 +++-- 1 files changed, 43 insertions(+), 42 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 8c0155b..e79a872 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@

Re: [Qemu-devel] [PATCH v2] stop using stdio for monitor/serial/etc with -daemonize

2012-09-26 Thread Michael Tokarev
On 26.09.2012 12:00, Peter Maydell wrote: >> I know lots of people use -nographic -daemonize to run headless >> guests in background (like, for example, a router). I guess it >> come way before -vga option has been introduced, but at least I >> know about -vga (but not about -vga none). For one,

[Qemu-devel] [PATCH V3] virtio-blk: add default serial id

2012-09-26 Thread Dave Young
For virtio block device, if user does not specify the serial attribute, There will be no serial availabe, this is not convenient for identifying the disk. Doing something similar to ide disks, add a "VD?" default serial number if user does not specify it. Signed-off-by: Dave Young --- hw/vi

[Qemu-devel] [PATCH 8/8] usb: Fix usb_packet_map() in the presence of IOMMUs

2012-09-26 Thread Gerd Hoffmann
From: David Gibson With the IOMMU infrastructure introduced before 1.2, we need to use dma_memory_map() to obtain a qemu pointer to memory from an IO bus address. However, dma_memory_map() alters the given length to reflect the length over which the used DMA translation is valid - which could be

Re: [Qemu-devel] [PATCH v2] qemu/xen: Add 64 bits big bar support on qemu

2012-09-26 Thread Hao, Xudong
> -Original Message- > From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] > Sent: Tuesday, September 25, 2012 6:52 PM > To: Hao, Xudong > Cc: Stefano Stabellini; xen-de...@lists.xen.org; qemu-devel@nongnu.org; > Zhang, Xiantao > Subject: Re: [PATCH v2] qemu/xen: Add 64 bits

[Qemu-devel] [PATCH 7/8] usb-redir: Adjust pkg-config check for usbredirparser .pc file rename (v2)

2012-09-26 Thread Gerd Hoffmann
From: Hans de Goede The usbredir 0.5 release introduced the new API for 64 bit packet ids, but it kept the libusbredirparser.pc name as is, meaning that older versions of qemu will still have their pkg-config check for usbredirparser fulfilled, and build with the usb-redir device. Due to the API

[Qemu-devel] [PATCH 3/8] xhci: tweak limits

2012-09-26 Thread Gerd Hoffmann
Set maxports to 15. This is what the usb3 route string can handle. Set maxslots to 64. This is more than the number of root ports we can have, but with additional hubs you can end up with more devices. Set maxintrs (aka msi vectors) to 16. Should be enougth, especially considering that vectors

Re: [Qemu-devel] [PATCH v2] stop using stdio for monitor/serial/etc with -daemonize

2012-09-26 Thread Peter Maydell
On 26 September 2012 09:17, Michael Tokarev wrote: > On 26.09.2012 12:00, Peter Maydell wrote: > >>> I know lots of people use -nographic -daemonize to run headless >>> guests in background (like, for example, a router). I guess it >>> come way before -vga option has been introduced, but at least

Re: [Qemu-devel] [Qemu-ppc] [PATCH v10 1/1] Add USB option in machine options

2012-09-26 Thread Li Zhang
Thanks Gerd. Hi Alex, Can this patch be pushed to upstream? Thanks. -:) On Wed, Sep 26, 2012 at 2:29 PM, Gerd Hoffmann wrote: > On 09/26/12 06:20, Li Zhang wrote: >> Would you please have a look at my patch when you have time? >> Because it is related with USB, so I hope to get your approval be

Re: [Qemu-devel] [Qemu-ppc] RFC: NVRAM for pseries machine

2012-09-26 Thread Alexander Graf
On 26.09.2012, at 03:18, David Gibson wrote: > On Wed, Sep 26, 2012 at 03:03:10AM +0200, Alexander Graf wrote: >> On 26.09.2012, at 02:27, David Gibson wrote: >>> On Mon, Sep 24, 2012 at 12:38:59PM +0200, Alexander Graf wrote: On 24.09.2012, at 02:31, David Gibson wrote: > [snip] > So,

Re: [Qemu-devel] [PATCH V3] virtio-blk: add default serial id

2012-09-26 Thread Dave Young
Hi, Eric This is in fact same with v1 except the spelling fixes. I switched back to v1 because of your concern about the same id reusing issue. For v1, unplugging 10 times is not likely and insane, so I think we can safely ignore it. Unless qemu-img create some uuid for disk imgs I think the

Re: [Qemu-devel] [Qemu-ppc] [PATCH v10 1/1] Add USB option in machine options

2012-09-26 Thread Alexander Graf
On 26.09.2012, at 10:50, Li Zhang wrote: > Thanks Gerd. > > Hi Alex, > Can this patch be pushed to upstream? Gerd, do you want to take this through the usb queue? If I get s formal ack from you I can also take it into ppc-next, but it doesn't quite belong there :). Alex > > Thanks. -:) >

Re: [Qemu-devel] [PATCH v2] Add infrastructure for QIDL-based device serialization

2012-09-26 Thread Paolo Bonzini
Il 25/09/2012 23:12, Anthony Liguori ha scritto: > Just like sparse is a "compiler", so is qidl. We are free to use the > '_' + lowercase prefix. > > ISADevice _immutable dev; > > It's an established practice in wide-use. But QEMU is also compiled with GCC, so we're not. The Linux ke

Re: [Qemu-devel] [PATCH v9 4/4] block: Support GlusterFS as a QEMU block backend.

2012-09-26 Thread Kevin Wolf
Am 24.09.2012 11:13, schrieb Bharata B Rao: > block: Support GlusterFS as a QEMU block backend. > > From: Bharata B Rao > > This patch adds gluster as the new block backend in QEMU. This gives > QEMU the ability to boot VM images from gluster volumes. Its already > possible to boot from VM image

Re: [Qemu-devel] [PATCH v9 4/4] block: Support GlusterFS as a QEMU block backend.

2012-09-26 Thread Paolo Bonzini
Il 26/09/2012 12:00, Kevin Wolf ha scritto: >> > + >> > +ret = write(fd, (void *)&acb, sizeof(acb)); >> > +if (ret >= 0) { >> > +break; >> > +} >> > +if (errno == EINTR) { >> > +continue; >> > +} >> > +if (errno != EAGAIN) { >>

Re: [Qemu-devel] [PATCH 5/9] mm: compaction: Acquire the zone->lru_lock as late as possible

2012-09-26 Thread Mel Gorman
On Tue, Sep 25, 2012 at 02:39:31PM -0700, Andrew Morton wrote: > On Tue, 25 Sep 2012 17:13:27 +0900 > Minchan Kim wrote: > > > I see. To me, your saying is better than current comment. > > I hope comment could be more explicit. > > > > diff --git a/mm/compaction.c b/mm/compaction.c > > index df0

Re: [Qemu-devel] [PATCH v2] Add infrastructure for QIDL-based device serialization

2012-09-26 Thread Kevin Wolf
Am 25.09.2012 23:12, schrieb Anthony Liguori: > Michael Roth writes: > >> On Tue, Sep 25, 2012 at 08:37:16AM +0200, Paolo Bonzini wrote: >>> Il 24/09/2012 20:14, Michael Roth ha scritto: I went with qUppercase because it avoids all the previous issues with using leading undersco

Re: [Qemu-devel] [PATCH v2] Add infrastructure for QIDL-based device serialization

2012-09-26 Thread Paolo Bonzini
Il 26/09/2012 12:20, Kevin Wolf ha scritto: >>> >> QIDL_DECLARE(RTCState) { >>> >> >>> >> ISADevice dev qidl(immutable); >>> >> MemoryRegion io qidl(immutable); >> > >> > Just like sparse is a "compile

Re: [Qemu-devel] [PATCH 04/25] ahci: add ide device initialization helper

2012-09-26 Thread Kevin Wolf
Am 26.09.2012 10:15, schrieb Markus Armbruster: > Jason Baron writes: >> I think that -drive if=ide should result in a disk attached piix3-ide. >> Not in an ide disk attached to the ahci controller (which is current q35 >> bahavior, and is 'broken' b/c we don't want that to change after q35 is >>

Re: [Qemu-devel] [PATCH v2] qemu/xen: Add 64 bits big bar support on qemu

2012-09-26 Thread Stefano Stabellini
On Wed, 26 Sep 2012, Hao, Xudong wrote: > > -Original Message- > > From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] > > Sent: Tuesday, September 25, 2012 6:52 PM > > To: Hao, Xudong > > Cc: Stefano Stabellini; xen-de...@lists.xen.org; qemu-devel@nongnu.org; > > Zhang, Xian

Re: [Qemu-devel] [PATCH v2] register reset handler to write image into memory

2012-09-26 Thread Alexander Graf
On 26.09.2012, at 10:13, Yin Olivia-R63875 wrote: > Hi Alex, > > I checked all the rom_add_*() functions. > Multiple platforms of different architectures use rom_add_* to save images. > hw/arm_boot.c > hw/exynos4210. > hw/highbank. > hw/mips_fulong2e.c > hw/mips_mal

[Qemu-devel] [qemu-kvm PATCH] mips: Fix link error with 'piix4_pm_init'

2012-09-26 Thread Cole Robinson
LINK mipsel-softmmu/qemu-system-mipsel hw/mips/../mips_malta.o: In function `mips_malta_init': mips_malta.c:962: undefined reference to `piix4_pm_init' Can reproduce with: ./configure --target-list=mipsel-softmmu --disable-werror make However only on qemu-kvm, not qemu.git or qemu 1.2.0.

[Qemu-devel] [PATCH v2 4/4] serial: add 2x + 4x pci variant

2012-09-26 Thread Gerd Hoffmann
Add multiport serial card implementation, with two variants, one featuring two and one featuring four ports. Signed-off-by: Gerd Hoffmann --- docs/qemupciserial.inf |2 + hw/serial-pci.c| 157 2 files changed, 159 insertions(+), 0 del

[Qemu-devel] [PATCH v2 0/4] add pci-serial devices.

2012-09-26 Thread Gerd Hoffmann
Hi, Second version. Added comment specifying the virtual hardware. Splitted windows inf file into a separate patch. Added multiport versions (2x and 4x) of the card. Gerd Hoffmann (4): serial: split serial.c serial: add pci variant serial: add windows inf file for the pci card to docs

[Qemu-devel] [PATCH v2 2/4] serial: add pci variant

2012-09-26 Thread Gerd Hoffmann
So we get a hot-pluggable 16550 uart. Signed-off-by: Gerd Hoffmann --- default-configs/pci.mak |2 + hw/Makefile.objs|1 + hw/pci_ids.h|1 + hw/serial-pci.c | 115 +++ 4 files changed, 119 insertions(+), 0 delet

[Qemu-devel] [PATCH v2 1/4] serial: split serial.c

2012-09-26 Thread Gerd Hoffmann
Split serial.c into serial.c, serial.h and serial-isa.c. While being at creating a serial.h header file move the serial prototypes from pc.h to the new serial.h. The latter leads to s/pc.h/serial.h/ in tons of boards which just want the serial bits from pc.h Signed-off-by: Gerd Hoffmann --- hw

Re: [Qemu-devel] [RFC PATCH 00/17] Support for multiple "AIO contexts"

2012-09-26 Thread Kevin Wolf
Am 25.09.2012 14:55, schrieb Paolo Bonzini: > This series removes the globals from async.c/aio-posix.c so that > multiple AIO contexts (mini event loops) can be added. Right now, > all block devices still use qemu_bh_new, but switching them to > aio_bh_new would let you associate different files w

[Qemu-devel] [PATCH v2 3/4] serial: add windows inf file for the pci card to docs

2012-09-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- docs/qemupciserial.inf | 107 1 files changed, 107 insertions(+), 0 deletions(-) create mode 100644 docs/qemupciserial.inf diff --git a/docs/qemupciserial.inf b/docs/qemupciserial.inf new file mode 100644 index 0

Re: [Qemu-devel] [PATCH v5 0/4] non-blocking connect address handling cleanup

2012-09-26 Thread Anthony Liguori
Orit Wasserman writes: > Changes from v4: > - Rename ConnectHandler to NonBlockingConnectHandler > - move function comments to functions definitions > - move connect_state allocation to outside of the loop > - fix comments text > > Changes from v3: > - add missing pa

Re: [Qemu-devel] [PATCH 0/3] add pc-1.3, fix xhci comat, ivshmem 64bit option

2012-09-26 Thread Anthony Liguori
Gerd Hoffmann writes: > Hi, > > Small series with tree patches, the first one adds a new machine type > for the upcoming 1.3 release so we can add compat properties as needed, > the other two patches actually add compat properties. The xhci one is > a pure compat fix which turns off msi+msix o

Re: [Qemu-devel] [PATCH] configure: Allow builds without any system or user emulation

2012-09-26 Thread Anthony Liguori
Stefan Weil writes: > The old code aborted configure when no emulation target was selected. > Even after removing the 'exit 1', it tried to read from STDIN > when QEMU was configured with > > configure' '--disable-user' '--disable-system' > > This is fixed here. > > Signed-off-by: Stefan Weil

Re: [Qemu-devel] [PATCH 0/5 v3] convert system_powerdown command to notifiers

2012-09-26 Thread Anthony Liguori
Igor Mammedov writes: > global variable qemu_system_powerdown in sysemu.h is the only dep for qemu_irq > and qemu_rise_irq is not a generic way to signal guest that it should > shutdown. > > replace it by notifiers and allow each implementation to have it's own way > to notify guest. > > git rep

Re: [Qemu-devel] [PATCH 4/6] pseries: Implement PAPR NVRAM

2012-09-26 Thread Alexander Graf
On 26.09.2012, at 05:12, David Gibson wrote: > The PAPR specification requires a certain amount of NVRAM, accessed via > RTAS, which we don't currently implement in qemu. This patch addresses > this deficiency, implementing the NVRAM as a VIO device, with some glue to > instantiate it automatica

Re: [Qemu-devel] [0/6] Pending pseries updates

2012-09-26 Thread Alexander Graf
On 26.09.2012, at 05:12, David Gibson wrote: > Hi Alex, > > Here's another batch of updates for pseries, some of which affect > wider target-ppc code. I have sent a few of these before, but I don't > believe any have made it into ppc-next so far. 5/6 is an important > bugfix we've discussed be

Re: [Qemu-devel] [PATCH 0/2] add pci-serial device.

2012-09-26 Thread Anthony Liguori
Gerd Hoffmann writes: > On 09/26/12 01:43, Anthony Liguori wrote: >> Gerd Hoffmann writes: >> >>> Hi, >>> >>> Two patches, first split up serial.c a bit, >>> then actually add the pci-based serial device. >> >> The series looks good to me. A couple requests: >> >> 1) Could you add a spec d

Re: [Qemu-devel] [RFC PATCH 00/17] Support for multiple "AIO contexts"

2012-09-26 Thread Paolo Bonzini
Il 26/09/2012 14:28, Kevin Wolf ha scritto: > Do you have a git tree where I could see what things would look like in > the end? I will push it to aio-context on git://github.com/bonzini/qemu.git as soon as github comes back. > I wonder how this relates to my plans of getting rid of qemu_aio_flus

Re: [Qemu-devel] [PATCH 0/5] i386: cpu: remove duplicate feature names

2012-09-26 Thread Igor Mammedov
On Thu, 6 Sep 2012 17:05:34 -0300 Eduardo Habkost wrote: > The problem: > > - Some features are report at the same time on both CPUID[1].EDX and >CPUID[8000_0001].EDX on AMD CPUs (e.g. fpu, tsc, msr, pae, mmx). > - "-cpu ,+feature" should enable the bit only on CPUID[1] if >it's not a

Re: [Qemu-devel] [PATCH v2] stop using stdio for monitor/serial/etc with -daemonize

2012-09-26 Thread Anthony Liguori
Peter Maydell writes: > On 26 September 2012 09:17, Michael Tokarev wrote: >> On 26.09.2012 12:00, Peter Maydell wrote: >> I know lots of people use -nographic -daemonize to run headless guests in background (like, for example, a router). I guess it come way before -vga option ha

Re: [Qemu-devel] [RESEND PATCH v5 4/4] vfio: Enable vfio-pci and mark supported

2012-09-26 Thread Anthony Liguori
Alex Williamson writes: > Enabled for all softmmu guests supporting PCI on Linux hosts. Note > that currently only x86 hosts have the kernel side VFIO IOMMU support > for this. PPC (g3beige) is the only non-x86 guest known to work. > ARM (veratile) hangs in firmware, others untested. > > Signed

Re: [Qemu-devel] [PATCH v2 1/7] block: add support functions for live commit, to find and delete images.

2012-09-26 Thread Kevin Wolf
Am 25.09.2012 18:29, schrieb Jeff Cody: > Add bdrv_find_overlay(), and bdrv_drop_intermediate(). > > bdrv_find_overlay(): given 'bs' and the active (topmost) BDS of an image > chain, > find the image that is the immediate top of 'bs' > > bdrv_drop_intermediate(): >

Re: [Qemu-devel] [PATCH v2] Align PCI capabilities in pci_find_space

2012-09-26 Thread Alex Williamson
On Tue, 2012-09-25 at 21:08 -0600, Alex Williamson wrote: > On Tue, 2012-09-25 at 20:01 -0500, m...@cs.wisc.edu wrote: > > From: Matt Renzelmann > > > > The current implementation of pci_find_space does not correctly align > > PCI capabilities in the PCI configuration space. This patch fixes > >

Re: [Qemu-devel] [PATCH v2 2/7] block: add live block commit functionality

2012-09-26 Thread Kevin Wolf
Am 25.09.2012 18:29, schrieb Jeff Cody: > This adds the live commit coroutine. This iteration focuses on the > commit only below the active layer, and not the active layer itself. > > The behaviour is similar to block streaming; the sectors are walked > through, and anything that exists above 'ba

Re: [Qemu-devel] [PATCH v2 5/7] QAPI: add command for live block commit, 'block-commit'

2012-09-26 Thread Kevin Wolf
Am 25.09.2012 18:29, schrieb Jeff Cody: > The command for live block commit is added, which has the following > arguments: > > device: the block device to perform the commit on (mandatory) > base: the base image to commit into; optional (if not specified, > it is the underlying original

Re: [Qemu-devel] [RESEND PATCH v5 4/4] vfio: Enable vfio-pci and mark supported

2012-09-26 Thread Alex Williamson
On Wed, 2012-09-26 at 08:50 -0500, Anthony Liguori wrote: > Alex Williamson writes: > > > Enabled for all softmmu guests supporting PCI on Linux hosts. Note > > that currently only x86 hosts have the kernel side VFIO IOMMU support > > for this. PPC (g3beige) is the only non-x86 guest known to w

Re: [Qemu-devel] [PATCH v2 7/7] block: after creating a live snapshot, make old image read-only

2012-09-26 Thread Kevin Wolf
Am 25.09.2012 18:29, schrieb Jeff Cody: > Currently, after a live snapshot of a drive, the image that has > been 'demoted' to be below the new active layer remains r/w. > This patch reopens it read-only. > > Note that we do not check for error on the reopen(), because we > will not abort the snaps

Re: [Qemu-devel] [PATCH v2 7/7] block: after creating a live snapshot, make old image read-only

2012-09-26 Thread Jeff Cody
On 09/26/2012 10:20 AM, Kevin Wolf wrote: > Am 25.09.2012 18:29, schrieb Jeff Cody: >> Currently, after a live snapshot of a drive, the image that has >> been 'demoted' to be below the new active layer remains r/w. >> This patch reopens it read-only. >> >> Note that we do not check for error on the

Re: [Qemu-devel] [PATCH v2 5/7] QAPI: add command for live block commit, 'block-commit'

2012-09-26 Thread Jeff Cody
On 09/26/2012 10:13 AM, Kevin Wolf wrote: > Am 25.09.2012 18:29, schrieb Jeff Cody: >> The command for live block commit is added, which has the following >> arguments: >> >> device: the block device to perform the commit on (mandatory) >> base: the base image to commit into; optional (if not spe

Re: [Qemu-devel] [RFC PATCH 00/17] Support for multiple "AIO contexts"

2012-09-26 Thread Kevin Wolf
Am 26.09.2012 15:32, schrieb Paolo Bonzini: > Il 26/09/2012 14:28, Kevin Wolf ha scritto: >> Do you have a git tree where I could see what things would look like in >> the end? > > I will push it to aio-context on git://github.com/bonzini/qemu.git as > soon as github comes back. > >> I wonder how

Re: [Qemu-devel] [PATCH v2 5/7] QAPI: add command for live block commit, 'block-commit'

2012-09-26 Thread Kevin Wolf
Am 26.09.2012 16:25, schrieb Jeff Cody: > On 09/26/2012 10:13 AM, Kevin Wolf wrote: >> Am 25.09.2012 18:29, schrieb Jeff Cody: >>> The command for live block commit is added, which has the following >>> arguments: >>> >>> device: the block device to perform the commit on (mandatory) >>> base: the

Re: [Qemu-devel] [PATCH v2 5/7] QAPI: add command for live block commit, 'block-commit'

2012-09-26 Thread Eric Blake
On 09/26/2012 08:25 AM, Jeff Cody wrote: >>> +# @top:#optional The file name of the backing image within the image >>> chain, >>> +#which contains the topmost data to be committed down. >>> +#If not specified, this is one layer below the active >>> +#

Re: [Qemu-devel] [PATCH] coroutine: always use pooling

2012-09-26 Thread Peter Maydell
On 25 September 2012 13:44, Paolo Bonzini wrote: > It makes sense to use it for other implementations than ucontext, too. > Coroutine *qemu_coroutine_create(CoroutineEntry *entry) > { > -Coroutine *co = qemu_coroutine_new(); > +Coroutine *co; > + > +co = QSLIST_FIRST(&pool); > +i

[Qemu-devel] [PATCH] block: live snapshot documentation tweaks

2012-09-26 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qapi-schema.json | 4 ++-- 1 file modificato, 2 inserzioni(+), 2 rimozioni(-) diff --git a/qapi-schema.json b/qapi-schema.json index 8719a9d..26ac21f 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1402,7 +1402,7 @@ # @format: #optional the format of th

[Qemu-devel] [PATCH] Add amd iommu emulation for Xen.

2012-09-26 Thread Wei Wang
HI, Attached patch adds amd iommu emulation for Xen. Please review it. Thanks, Wei From 122517435641384e4f5e36eaad8302ff273648e8 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Wed, 26 Sep 2012 16:43:40 +0200 Subject: [PATCH] Add amd iommu emulation for Xen. To passthrough amd southern island

[Qemu-devel] [PATCH 4 of 6 V6] libxc: add wrappers for new hypercalls

2012-09-26 Thread Wei Wang
From 0e5259161a6055dcbebb7b9e978b5c384c7a3efe Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Wed, 26 Sep 2012 11:47:03 +0200 Subject: [PATCH 4/6] libxc: add wrappers for new hypercalls Please see patch 1 for hypercall description. Signed-off-by: Wei Wang --- tools/libxc/xc_domain.c | 53 ++

Re: [Qemu-devel] [PATCH v2] stop using stdio for monitor/serial/etc with -daemonize

2012-09-26 Thread Michael Tokarev
On 26.09.2012 17:46, Anthony Liguori wrote: [] > This is a good example of where we need improved documentation but I > agree 100% with Peter. So what do we do? We've a clear bug, I can only fix it in the patch to the Debian package, since I've been asked about this bug multiple times, and I care

Re: [Qemu-devel] [PATCH 1/4] s390: sclp base support

2012-09-26 Thread Alexander Graf
On 20.08.2012, at 16:28, Jens Freimann wrote: > From: Heinz Graalfs > > This adds a more generic infrastructure for handling Service-Call > requests on s390. Currently we only support a small subset of Read > SCP Info directly in target-s390x. This patch provides the base > infrastructure for s

Re: [Qemu-devel] [PATCH v2] Add infrastructure for QIDL-based device serialization

2012-09-26 Thread Michael Roth
On Wed, Sep 26, 2012 at 12:33:17PM +0200, Paolo Bonzini wrote: > Il 26/09/2012 12:20, Kevin Wolf ha scritto: > >>> >> QIDL_DECLARE(RTCState) { > >>> >> > >>> >> ISADevice dev qidl(immutable); > >>> >> M

Re: [Qemu-devel] [PATCH] New syscalls to the seccomp whitelist

2012-09-26 Thread Paul Moore
On Thursday, September 20, 2012 06:00:59 PM Eduardo Otubo wrote: > Seccomp syscall whitelist updated after tests running qemu under > libvirt ... Hi Eduardo, I know from our discussions offlist that you have an additional debugging patch to help identify missing syscalls, perhaps you could also

Re: [Qemu-devel] [PATCH] coroutine: always use pooling

2012-09-26 Thread Paolo Bonzini
Il 26/09/2012 16:34, Peter Maydell ha scritto: >> It makes sense to use it for other implementations than ucontext, too. >> > Coroutine *qemu_coroutine_create(CoroutineEntry *entry) >> > { >> > -Coroutine *co = qemu_coroutine_new(); >> > +Coroutine *co; >> > + >> > +co = QSLIST_FIRST(

[Qemu-devel] [PATCH v3] Align PCI capabilities in pci_find_space

2012-09-26 Thread mjr
From: Matt Renzelmann The current implementation of pci_find_space does not correctly align PCI capabilities in the PCI configuration space. It also does not distinguish PCI and PCI-Express devices. This patch fixes these issues. Thanks to Alex Williamson for continuing feedback. Signed-off-b

Re: [Qemu-devel] [PATCH v3 3/5] target-arm: convert sar, shl and shr helpers to TCG

2012-09-26 Thread Peter Maydell
On 25 September 2012 23:52, Aurelien Jarno wrote: > Now that the movcond TCG op is available, it's possible to replace > shl and shr helpers by TCG code. The code generated by TCG is slightly > longer than the code generated by GCC for the helper but is still worth > it as this avoid all the conse

Re: [Qemu-devel] [PATCH v3 0/5] target-arm: misc optimizations

2012-09-26 Thread Peter Maydell
On 25 September 2012 23:51, Aurelien Jarno wrote: > This patch series optimizes the ARM target by: > - using globals instead of ld/st function > - using TCG code instead of helpers > - marking some helpers const and pure I've put this series into target-arm.next. Thanks! -- PMM

Re: [Qemu-devel] [RFC PATCH 00/17] Support for multiple "AIO contexts"

2012-09-26 Thread Paolo Bonzini
Il 26/09/2012 16:31, Kevin Wolf ha scritto: >>> In fact, after removing io_flush, I don't really see what makes AIO >>> fd handlers special any more. >> >> Note that while the handlers aren't that special indeed, there is still >> some magic because qemu_aio_wait() bottom halves. > > Do you mean

Re: [Qemu-devel] [PATCH v3 2/2] Versatile Express: Add modelling of NOR flash

2012-09-26 Thread Peter Maydell
On 19 September 2012 16:57, Francesco Lavra wrote: > This patch adds modelling of the two NOR flash banks found on the > Versatile Express motherboard. Tested with U-Boot running on an emulated > Versatile Express, with either A9 or A15 CoreTile. > > Signed-off-by: Francesco Lavra Reviewed-by: P

[Qemu-devel] [PATCH v2 00/45] Block job improvements for 1.3

2012-09-26 Thread Paolo Bonzini
Hi all, this is the resubmission of my block job patches, originally meant for 1.2. This still does not include a persistent dirty bitmap, which I hope to post in October. The patches are organized as follows: 01-13 preparatory work for block job errors, including support for pausing a

[Qemu-devel] [PATCH v2 01/45] qerror/block: introduce QERR_BLOCK_JOB_NOT_ACTIVE

2012-09-26 Thread Paolo Bonzini
The DeviceNotActive text is not a particularly good match, add a separate text while keeping the same class. Signed-off-by: Paolo Bonzini --- v1->v2: rebased for Error changes blockdev.c | 4 ++-- qerror.h | 3 +++ 2 file modificati, 5 inserzioni(+), 2 rimozioni(-) diff --git a/block

[Qemu-devel] [PATCH v2 05/45] block: add block_job_query

2012-09-26 Thread Paolo Bonzini
Extract it out of the implementation of info block-jobs. Signed-off-by: Paolo Bonzini --- v1->v2: use g_new0. blockdev.c | 15 ++- blockjob.c | 11 +++ blockjob.h | 8 3 file modificati, 21 inserzioni(+), 13 rimozioni(-) diff --git a/blockdev.c b/blockdev.

[Qemu-devel] [PATCH v2 42/45] mirror: switch mirror_iteration to AIO

2012-09-26 Thread Paolo Bonzini
There is really no change in the behavior of the job here, since there is still a maximum of one in-flight I/O operation between the source and the target. However, this patch already introduces the AIO callbacks (which are unmodified in the next patch) and some of the logic to count in-flight ope

Re: [Qemu-devel] [PATCH 1/4] s390: sclp base support

2012-09-26 Thread Christian Borntraeger
On 26/09/12 17:00, Alexander Graf wrote: >> +/* Provide information about the configuration, CPUs and storage */ >> +static void read_SCP_info(SCCB *sccb) >> +{ >> +ReadInfo *read_info = (ReadInfo *) sccb; >> +int shift = 0; >> + >> +while ((ram_size >> (20 + shift)) > 65535) { >> +

[Qemu-devel] [PATCH v2 44/45] mirror: support more than one in-flight AIO operation

2012-09-26 Thread Paolo Bonzini
With AIO support in place, we can start copying more than one chunk in parallel. This patch introduces the required infrastructure for this: the buffer is split into multiple granularity-sized chunks, and there is a free list to access them. Because of copy-on-write, a single operation may alread

Re: [Qemu-devel] [PATCH v9 4/4] block: Support GlusterFS as a QEMU block backend.

2012-09-26 Thread Bharata B Rao
On Wed, Sep 26, 2012 at 12:00:47PM +0200, Kevin Wolf wrote: > Am 24.09.2012 11:13, schrieb Bharata B Rao: > > +static int parse_volume_options(GlusterConf *gconf, char *path) > > +{ > > +char *token, *saveptr; > > + > > +/* volname */ > > +token = strtok_r(path, "/", &saveptr); > > +

[Qemu-devel] [PATCH 1/4] pl190: fix read of VECTADDR

2012-09-26 Thread Peter Maydell
From: Brendan Fennell Reading VECTADDR was causing us to set the current priority to the wrong value, the most obvious effect of which was that we would return the vector for the wrong interrupt as the result of the read. Signed-off-by: Brendan Fennell Signed-off-by: Peter Maydell --- hw/pl19

[Qemu-devel] [PATCH 3/4] Versatile Express: Fix NOR flash 0 address and remove flash alias

2012-09-26 Thread Peter Maydell
From: Francesco Lavra In the A series memory map (implemented in the Cortex A15 CoreTile), the first NOR flash bank (flash 0) is mapped to address 0x0800, while address 0x can be configured as alias to either the first or the second flash bank. This patch fixes the definition of flash

[Qemu-devel] [PATCH v2 35/45] add hierarchical bitmap data type and test cases

2012-09-26 Thread Paolo Bonzini
HBitmaps provides an array of bits. The bits are stored as usual in an array of unsigned longs, but HBitmap is also optimized to provide fast iteration over set bits; going from one bit to the next is O(logB n) worst case, with B = sizeof(long) * CHAR_BIT: the result is low enough that the number

[Qemu-devel] [PATCH v2 34/45] host-utils: add ffsl

2012-09-26 Thread Paolo Bonzini
We can provide fast versions based on the other functions defined by host-utils.h. Some care is required on glibc, which provides ffsl already. Signed-off-by: Paolo Bonzini --- host-utils.h | 26 ++ 1 file modificato, 26 inserzioni(+) diff --git a/host-utils.h b/host-ut

Re: [Qemu-devel] [PATCH v3] Align PCI capabilities in pci_find_space

2012-09-26 Thread Alex Williamson
On Wed, 2012-09-26 at 10:30 -0500, m...@cs.wisc.edu wrote: > From: Matt Renzelmann > > The current implementation of pci_find_space does not correctly align > PCI capabilities in the PCI configuration space. It also does not > distinguish PCI and PCI-Express devices. This patch fixes these > is

[Qemu-devel] [PATCH v2 19/45] block: add bdrv_query_info

2012-09-26 Thread Paolo Bonzini
Extract it out of the implementation of "info block". Signed-off-by: Paolo Bonzini --- v1->v2: moved bdrv_query_info close to qmp_query_block. Fixed conflicts for the new field 'encryption_key_missing' too. block.c | 104 +++---

[Qemu-devel] [PATCH v2 38/45] mirror: perform COW if the cluster size is bigger than the granularity

2012-09-26 Thread Paolo Bonzini
When mirroring runs, the backing files for the target may not yet be ready. However, this means that a copy-on-write operation on the target would fill the missing sectors with zeros. Copy-on-write only happens if the granularity of the dirty bitmap is smaller than the cluster size (and only for

[Qemu-devel] [PATCH v2 26/45] mirror: introduce mirror job

2012-09-26 Thread Paolo Bonzini
This patch adds the implementation of a new job that mirrors a disk to a new image while letting the guest continue using the old image. The target is treated as a "black box" and data is copied from the source to the target in the background. This can be used for several purposes, including stora

Re: [Qemu-devel] [PATCH] New syscalls to the seccomp whitelist

2012-09-26 Thread Eduardo Otubo
On Wed, Sep 26, 2012 at 11:14:29AM -0400, Paul Moore wrote: > On Thursday, September 20, 2012 06:00:59 PM Eduardo Otubo wrote: > > Seccomp syscall whitelist updated after tests running qemu under > > libvirt ... > > Hi Eduardo, > > I know from our discussions offlist that you have an additional d

[Qemu-devel] [PATCH v2 10/45] iostatus: rename BlockErrorAction, BlockQMPEventAction

2012-09-26 Thread Paolo Bonzini
We want to remove knowledge of BLOCK_ERR_STOP_ENOSPC from drivers; drivers should only be told whether to stop/report/ignore the error. On the other hand, we want to keep using the nicer BlockErrorAction name in the drivers. So rename the enums, while leaving aside the names of the enum values for

[Qemu-devel] [PATCH v2 11/45] iostatus: move BlockdevOnError declaration to QAPI

2012-09-26 Thread Paolo Bonzini
This will let block-stream reuse the enum. Places that used the enums are renamed accordingly. Signed-off-by: Paolo Bonzini --- block.c | 6 +++--- block.h | 5 - blockdev.c| 12 ++-- hw/fdc.c | 4 ++-- hw/ide/core.c | 6 +++--- hw/scsi-d

Re: [Qemu-devel] [PATCH v9 4/4] block: Support GlusterFS as a QEMU block backend.

2012-09-26 Thread Paolo Bonzini
Il 26/09/2012 18:11, Bharata B Rao ha scritto: >>> +static int parse_volume_options(GlusterConf *gconf, char *path) >>> > > +{ >>> > > +char *token, *saveptr; >>> > > + >>> > > +/* volname */ >>> > > +token = strtok_r(path, "/", &saveptr); >>> > > +if (!token) { >>> > > +ret

[Qemu-devel] [PATCH v2 45/45] mirror: support arbitrarily-sized iterations

2012-09-26 Thread Paolo Bonzini
Yet another optimization is to extend the mirroring iteration to include more adjacent dirty blocks. This limits the number of I/O operations and makes mirroring efficient even with a small granularity. Most of the infrastructure is already in place; we only need to put a loop around the computat

[Qemu-devel] [PATCH v2 06/45] block: add support for job pause/resume

2012-09-26 Thread Paolo Bonzini
Job pausing reuses the existing support for cancellable sleeps. A pause happens at the next sleeping point and lasts until the coroutine is re-entered explicitly. Cancellation was already doing a forced resume, so implement it explicitly in terms of resume. Paused jobs cannot be canceled without

Re: [Qemu-devel] [RESEND PATCH v5 4/4] vfio: Enable vfio-pci and mark supported

2012-09-26 Thread Anthony Liguori
Alex Williamson writes: > On Wed, 2012-09-26 at 08:50 -0500, Anthony Liguori wrote: >> Alex Williamson writes: >> >> > Enabled for all softmmu guests supporting PCI on Linux hosts. Note >> > that currently only x86 hosts have the kernel side VFIO IOMMU support >> > for this. PPC (g3beige) is

  1   2   3   >