[Qemu-devel] ARM bootloader boot blobbing.

2012-09-26 Thread Peter Crosthwaite
Hi All, Can anyone think of a reason why the arm primary bootloader cant be done by just direct interaction with the CPU? Currently we have this ... /* The worlds second smallest bootloader. Set r0-r2, then jump to kernel. */ static uint32_t bootloader[] = { 0xe3a0, /* mov r0, #0 */

Re: [Qemu-devel] [PATCH 06/17] aio: introduce AioContext, move bottom halves there

2012-09-26 Thread Paolo Bonzini
Il 25/09/2012 23:51, Anthony Liguori ha scritto: typedef struct QEMUTimer QEMUTimer; typedef struct QEMUFile QEMUFile; +typedef struct QEMUBH QEMUBH; typedef struct DeviceState DeviceState; struct Monitor; Any reason to do this here vs. just #include qemu-aio.h in

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

2012-09-26 Thread Gerd Hoffmann
On 09/26/12 04:59, David Gibson wrote: 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

Re: [Qemu-devel] [PATCH 09/17] aio: prepare for introducing GSource-based dispatch

2012-09-26 Thread Paolo Bonzini
Il 26/09/2012 00:01, Anthony Liguori ha scritto: +node-pfd.events = G_IO_ERR; +node-pfd.events |= (io_read ? G_IO_IN | G_IO_HUP : 0); +node-pfd.events |= (io_write ? G_IO_OUT : 0); } Should we even set G_IO_ERR? I think that corresponds to exceptfd No, that

Re: [Qemu-devel] [PATCH 3/6] target-ppc: Extend FPU state for newer POWER CPUs

2012-09-26 Thread Aurelien Jarno
On Wed, Sep 26, 2012 at 01:12:18PM +1000, David Gibson wrote: This patch adds some extra FPU state to CPUPPCState. Specifically, fpscr is extended to 64 bits, since some recent CPUs now have more status bits than fit inside 64 bits, and we add the 32 VSR registers present on CPUs with VSX

Re: [Qemu-devel] [PATCH 14/17] main-loop: use GSource to poll AIO file descriptors

2012-09-26 Thread Paolo Bonzini
Il 26/09/2012 00:09, Anthony Liguori ha scritto: What do you think about deprecating bottom halves in the !block code in favor of idle functions? I don't see any reason to keep using bottom halves... The ptimer.c code uses bottom halves internally. Otherwise I'd agree. Paolo Reviewed-by:

Re: [Qemu-devel] [PATCH] target-xtensa: de-optimize EXTUI

2012-09-26 Thread Aurelien Jarno
On Wed, Sep 26, 2012 at 03:05:18AM +0400, Max Filippov wrote: On Wed, Sep 26, 2012 at 2:57 AM, Aurelien Jarno aurel...@aurel32.net wrote: Now that and with 0xff, 0x and 0x is optimized in tcg/tcg-op.h, there is no need to do it in target-xtensa/translate.c. Cc: Max Filippov

Re: [Qemu-devel] [PATCH 11/17] aio: make AioContexts GSources

2012-09-26 Thread Paolo Bonzini
Il 26/09/2012 00:06, Anthony Liguori ha scritto: if (node) { +g_source_remove_poll(ctx-source, node-pfd); + Why remove vs. setting events = 0? Because otherwise you'd get a dangling pointer to node-pfd. :) Paolo add_poll/remove_poll also comes with an event loop

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

2012-09-26 Thread Gerd Hoffmann
On 09/26/12 01:43, Anthony Liguori wrote: Gerd Hoffmann kra...@redhat.com 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 describing this new PCI device?

Re: [Qemu-devel] [PATCH 09/17] aio: prepare for introducing GSource-based dispatch

2012-09-26 Thread Paolo Bonzini
Il 26/09/2012 00:01, Anthony Liguori ha scritto: +revents = node-pfd.revents node-pfd.events; +node-pfd.revents = ~revents; This is interesting and I must admit I don't understand why it's necessary. What case are you trying to handle? That's for the case where you got a

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

2012-09-26 Thread Gerd Hoffmann
Hi, The only reason I ask is whether this is something we can add new features to. I can't think of one off hand, but it can't hurt to work this out up front. Multiport e.g. (to save PCI slots). There was some proposal recently to add a model of an real multiport PCI card, just don't

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 -nographic

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

2012-09-26 Thread Markus Armbruster
Anthony Liguori anth...@codemonkey.ws writes: Kevin Wolf kw...@redhat.com writes: Am 25.09.2012 14:57, schrieb Anthony Liguori: Paolo Bonzini pbonz...@redhat.com writes: Il 24/09/2012 13:28, Juan Quintela ha scritto: Hi Please send in any agenda items you are interested in covering.

[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 kra...@redhat.com --- 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

[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 ---

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

2012-09-26 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com 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 kra...@redhat.com --- 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

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 aio=native I am trying

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

2012-09-26 Thread Markus Armbruster
Markus Armbruster arm...@redhat.com writes: Luiz Capitulino lcapitul...@redhat.com writes: From: Paolo Bonzini pbonz...@redhat.com 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

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 m...@tls.msk.ru 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

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

2012-09-26 Thread Gerd Hoffmann
From: Hans de Goede hdego...@redhat.com 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

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 berra...@redhat.com 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

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

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

2012-09-26 Thread Markus Armbruster
Jason Baron jba...@redhat.com writes: On Mon, Sep 24, 2012 at 06:52:29PM +0200, Markus Armbruster wrote: Jason Baron jba...@redhat.com writes: On Fri, Sep 21, 2012 at 04:05:14PM +0200, Markus Armbruster wrote: Jason Baron jba...@redhat.com writes: From: Isaku Yamahata

[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:

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

2012-09-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- 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 +++

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, I

[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

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

2012-09-26 Thread Gerd Hoffmann
From: David Gibson da...@gibson.dropbear.id.au 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

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 big

[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 hdego...@redhat.com 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

[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

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 m...@tls.msk.ru 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

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 kra...@redhat.com 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

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 da...@gibson.dropbear.id.au 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:

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

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 zhlci...@gmail.com 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

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 kernel

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 bhar...@linux.vnet.ibm.com 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

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) { +break; +

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 minc...@kernel.org 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

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 mdr...@linux.vnet.ibm.com 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

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 compiler, so is qidl. We are

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 jba...@redhat.com 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

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, Xiantao

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_malta.c

[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 kra...@redhat.com --- docs/qemupciserial.inf |2 + hw/serial-pci.c| 157 2 files changed, 159

[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 kra...@redhat.com --- default-configs/pci.mak |2 + hw/Makefile.objs|1 + hw/pci_ids.h|1 + hw/serial-pci.c | 115 +++ 4 files changed, 119

[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

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 with

[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 kra...@redhat.com --- 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

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

2012-09-26 Thread Anthony Liguori
Orit Wasserman owass...@redhat.com 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: -

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

2012-09-26 Thread Anthony Liguori
Gerd Hoffmann kra...@redhat.com 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

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

2012-09-26 Thread Anthony Liguori
Stefan Weil s...@weilnetz.de 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:

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

2012-09-26 Thread Anthony Liguori
Igor Mammedov imamm...@redhat.com 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

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 automatically

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 before,

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

2012-09-26 Thread Anthony Liguori
Gerd Hoffmann kra...@redhat.com writes: On 09/26/12 01:43, Anthony Liguori wrote: Gerd Hoffmann kra...@redhat.com 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

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

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 ehabk...@redhat.com 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 model,+feature should enable the bit only on CPUID[1]

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

2012-09-26 Thread Anthony Liguori
Peter Maydell peter.mayd...@linaro.org writes: On 26 September 2012 09:17, Michael Tokarev m...@tls.msk.ru 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

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

2012-09-26 Thread Anthony Liguori
Alex Williamson alex.william...@redhat.com 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,

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 m...@cs.wisc.edu The current implementation of pci_find_space does not correctly align PCI capabilities in the PCI configuration space. This patch

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 'base'

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 alex.william...@redhat.com 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

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 snapshots

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 reopen(),

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 specified,

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 this

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 base image to

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 pbonz...@redhat.com 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 =

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

2012-09-26 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- 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:

[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 wei.wa...@amd.com Date: Wed, 26 Sep 2012 16:43:40 +0200 Subject: [PATCH] Add amd iommu emulation for Xen. To passthrough

[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 wei.wa...@amd.com 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 wei.wa...@amd.com ---

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 graa...@linux.vnet.ibm.com 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

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); MemoryRegion io

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(pool); +if

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

2012-09-26 Thread mjr
From: Matt Renzelmann m...@cs.wisc.edu 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

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 aurel...@aurel32.net 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

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 aurel...@aurel32.net 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! --

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 the

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 francescolavra...@gmail.com 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

[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

[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 pbonz...@redhat.com --- v1-v2: rebased for Error changes blockdev.c | 4 ++-- qerror.h | 3 +++ 2 file modificati, 5 inserzioni(+), 2 rimozioni(-)

[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 pbonz...@redhat.com --- v1-v2: use g_new0. blockdev.c | 15 ++- blockjob.c | 11 +++ blockjob.h | 8 3 file modificati, 21 inserzioni(+), 13 rimozioni(-) diff --git

[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

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) { +shift++; +

[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

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); +if (!token) {

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

2012-09-26 Thread Peter Maydell
From: Brendan Fennell bfenn...@skynet.ie 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 bfenn...@skynet.ie

[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 francescolavra...@gmail.com 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

[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 pbonz...@redhat.com --- host-utils.h | 26 ++ 1 file modificato, 26 inserzioni(+) diff --git

  1   2   3   >