Re: [Qemu-devel] [PATCH v2 00/18] onenand, omap_gpmc fixes, features

2011-08-29 Thread Edgar E. Iglesias
On Sun, Aug 28, 2011 at 05:56:49PM +0100, Peter Maydell wrote: > This patchset is primarily features and bugfixes for the > omap_gpmc device from the Meego tree. > > We start by adding a new sysbus function to get the MemoryRegion* > for a sysbus MMIO region. This was discussed in > http://www.ma

Re: [Qemu-devel] X86 CPU topology broken in qemu ?

2011-08-29 Thread Bharata B Rao
On Thu, Aug 25, 2011 at 4:17 PM, Jan Kiszka wrote: > On 2011-08-17 07:25, Bharata B Rao wrote: >> Index: qemu-kvm-0.14.1/target-i386/kvm.c >> === >> --- qemu-kvm-0.14.1.orig/target-i386/kvm.c >> +++ qemu-kvm-0.14.1/target-i386/kvm.c >

Re: [Qemu-devel] X86 CPU topology broken in qemu ?

2011-08-29 Thread Bharata B Rao
On Thu, Aug 25, 2011 at 3:31 PM, Avi Kivity wrote: >> Hi, >> >> I see that x86 CPU topology inside VM is not showing up as specified. >> With some debugging, I found out that the root cause for this: qemu is >> not enumerating the apic ids correctly for vcpus. I made the below >> hackish change to

Re: [Qemu-devel] RFC: vfio / device assignment -- layout of device fd files

2011-08-29 Thread Alex Williamson
On Mon, 2011-08-29 at 18:14 -0500, Scott Wood wrote: > On 08/29/2011 05:46 PM, Alex Williamson wrote: > > On Mon, 2011-08-29 at 16:58 -0500, Scott Wood wrote: > >> On 08/29/2011 02:51 PM, Alex Williamson wrote: > >>> On Mon, 2011-08-29 at 16:51 +, Yoder Stuart-B08248 wrote: > The device in

Re: [Qemu-devel] VFIO v2 design plan

2011-08-29 Thread Alex Williamson
On Tue, 2011-08-30 at 13:04 +1000, David Gibson wrote: > On Fri, Aug 26, 2011 at 11:05:23AM -0600, Alex Williamson wrote: > > > > I don't think too much has changed since the previous email went out, > > but it seems like a good idea to post a summary in case there were > > suggestions or objectio

Re: [Qemu-devel] [PATCH 0/4] Image Streaming API

2011-08-29 Thread Zhi Yong Wu
On Tue, Aug 23, 2011 at 8:58 PM, Stefan Hajnoczi wrote: > These patches put in place the image streaming QMP/HMP commands and > documentation.  Image streaming itself is not implemented by this patch series > but the HMP/QMP commands that libvirt uses are implemented to return > NotSupported. > >

Re: [Qemu-devel] VFIO v2 design plan

2011-08-29 Thread David Gibson
On Fri, Aug 26, 2011 at 11:05:23AM -0600, Alex Williamson wrote: > > I don't think too much has changed since the previous email went out, > but it seems like a good idea to post a summary in case there were > suggestions or objections that I missed. > > VFIO v2 will rely on the platform iommu dr

Re: [Qemu-devel] [PATCH] ahci: add port I/O index-data pair

2011-08-29 Thread Daniel Verkamp
On Sun, Aug 28, 2011 at 11:48 AM, Alexander Graf wrote: > > On 27.08.2011, at 04:12, Daniel Verkamp wrote: > >> Implement an I/O space index-data register pair as defined by the AHCI >> spec, including the corresponding SATA PCI capability and BAR. >> >> This allows real-mode code to access the AH

[Qemu-devel] The design choice for how to enable block I/O throttling function in libvirt

2011-08-29 Thread Zhi Yong Wu
HI, folks, I am trying to enable block I/O throttling function in libvirt. But currently i met some design questions, and don't make sure if we should extend blkiotune to support block I/O throttling or introduce one new libvirt command "blkiothrottle" to cover it or not. If you have some better i

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-29 Thread David Gibson
eOn Fri, Aug 26, 2011 at 01:17:05PM -0700, Aaron Fabbri wrote: [snip] > Yes. In essence, I'd rather not have to run any other admin processes. > Doing things programmatically, on the fly, from each process, is the > cleanest model right now. The "persistent group" model doesn't necessarily preven

Re: [Qemu-devel] [PATCH] Probe HPET existence

2011-08-29 Thread Kevin O'Connor
On Mon, Aug 29, 2011 at 05:50:10PM +0200, Jan Kiszka wrote: > QEMU does not provide a HPET block if it was configured with -no-hpet, > other machines SeaBIOS runs on may lack a HPET as well. Perform basic > checks the ID register for a reasonable vendor ID and a clock period > within the valid rang

Re: [Qemu-devel] RFC: vfio / device assignment -- layout of device fd files

2011-08-29 Thread Scott Wood
On 08/29/2011 05:46 PM, Alex Williamson wrote: > On Mon, 2011-08-29 at 16:58 -0500, Scott Wood wrote: >> On 08/29/2011 02:51 PM, Alex Williamson wrote: >>> On Mon, 2011-08-29 at 16:51 +, Yoder Stuart-B08248 wrote: The device info records following the file header have the following re

Re: [Qemu-devel] RFC: vfio / device assignment -- layout of device fd files

2011-08-29 Thread Alex Williamson
On Mon, 2011-08-29 at 16:58 -0500, Scott Wood wrote: > On 08/29/2011 02:51 PM, Alex Williamson wrote: > > On Mon, 2011-08-29 at 16:51 +, Yoder Stuart-B08248 wrote: > >> The device info records following the file header have the following > >> record types each with content encoded in a record s

Re: [Qemu-devel] [PATCH] main: force enabling of I/O thread

2011-08-29 Thread Jan Kiszka
On 2011-08-29 23:25, Anthony Liguori wrote: > On 08/29/2011 04:23 PM, Andreas Färber wrote: >> Am 29.08.2011 um 22:24 schrieb Anthony Liguori: >> >>> On 08/29/2011 03:21 PM, Andreas Färber wrote: Am 29.08.2011 um 20:03 schrieb Anthony Liguori: > On 08/22/2011 08:35 AM, Jan Kiszka wrot

[Qemu-devel] buildbot failure in qemu on default_x86_64_rhel61

2011-08-29 Thread qemu
The Buildbot has detected a new failure on builder default_x86_64_rhel61 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_x86_64_rhel61/builds/9 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61 Bui

[Qemu-devel] buildbot failure in qemu on default_i386_rhel61

2011-08-29 Thread qemu
The Buildbot has detected a new failure on builder default_i386_rhel61 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_i386_rhel61/builds/8 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61_32bit B

[Qemu-devel] buildbot failure in qemu on default_x86_64_fedora16

2011-08-29 Thread qemu
The Buildbot has detected a new failure on builder default_x86_64_fedora16 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_x86_64_fedora16/builds/9 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_fedora1

[Qemu-devel] [PATCH] memory: Fix memory_region_get_ram_ptr for ROM devices

2011-08-29 Thread Jan Kiszka
On 2011-08-29 23:15, Avi Kivity wrote: > On 08/29/2011 10:14 PM, Anthony Liguori wrote: >>> OK, that was simple: It's still "pflash_cfi01/pflash_cfi02: convert to >>> memory API". >> >> >> Hrm, okay. Avi, maybe drop that patch and submit a v3? >> > > Of course. I'm sta^Wcontinuing to hate that p

[Qemu-devel] KVM call agenda for August 30

2011-08-29 Thread Juan Quintela
Hi Please send in any agenda items you are interested in covering. Later, Juan.

Re: [Qemu-devel] RFC: vfio / device assignment -- layout of device fd files

2011-08-29 Thread Scott Wood
On 08/29/2011 02:51 PM, Alex Williamson wrote: > On Mon, 2011-08-29 at 16:51 +, Yoder Stuart-B08248 wrote: >> The device info records following the file header have the following >> record types each with content encoded in a record specific way: >> >> REGION - describes an addressable addres

Re: [Qemu-devel] [PATCH] main: force enabling of I/O thread

2011-08-29 Thread Anthony Liguori
On 08/29/2011 04:23 PM, Andreas Färber wrote: Am 29.08.2011 um 22:24 schrieb Anthony Liguori: On 08/29/2011 03:21 PM, Andreas Färber wrote: Am 29.08.2011 um 20:03 schrieb Anthony Liguori: On 08/22/2011 08:35 AM, Jan Kiszka wrote: On 2011-08-22 15:24, Anthony Liguori wrote: Enabling the I/O

Re: [Qemu-devel] [PATCH] main: force enabling of I/O thread

2011-08-29 Thread Andreas Färber
Am 29.08.2011 um 22:24 schrieb Anthony Liguori: On 08/29/2011 03:21 PM, Andreas Färber wrote: Am 29.08.2011 um 20:03 schrieb Anthony Liguori: On 08/22/2011 08:35 AM, Jan Kiszka wrote: On 2011-08-22 15:24, Anthony Liguori wrote: Enabling the I/O thread by default seems like an important part

Re: [Qemu-devel] [PATCH 6/6] qdev: Generate IDs for anonymous devices

2011-08-29 Thread Anthony Liguori
On 08/29/2011 03:56 PM, Jan Kiszka wrote: On 2011-08-29 21:23, Anthony Liguori wrote: On 08/26/2011 09:48 AM, Jan Kiszka wrote: In order to address devices for that the user forgot or is even unable (no_user) to provide an ID, assign an automatically generated one. Such IDs have the format #, t

Re: [Qemu-devel] [PATCH] pc: Clean up PIC-to-APIC IRQ path

2011-08-29 Thread Jan Kiszka
On 2011-08-29 23:13, Avi Kivity wrote: > On 08/30/2011 12:06 AM, Jan Kiszka wrote: >> > >> > Does this need to be save/restored for migration? >> >> Nope, but we need some other measure. I thought to remember the pic was >> refreshing this after load, but I do not find any traces of this now. We >

Re: [Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Avi Kivity
On 08/29/2011 10:14 PM, Anthony Liguori wrote: OK, that was simple: It's still "pflash_cfi01/pflash_cfi02: convert to memory API". Hrm, okay. Avi, maybe drop that patch and submit a v3? Of course. I'm sta^Wcontinuing to hate that pflash thing. -- I have a truly marvellous patch that fixe

Re: [Qemu-devel] [PATCH 7/7] slirp: Fix packing for w32

2011-08-29 Thread Jan Kiszka
On 2011-08-29 20:22, Stefan Weil wrote: > Am 29.08.2011 12:12, schrieb Jan Kiszka: >> On 2011-08-28 22:43, Stefan Weil wrote: >>> Use QEMU_PACKED to eliminate the effects of compiler option >>> -mms-bitfields. >>> >>> Cc: Jan Kiszka >>> Signed-off-by: Stefan Weil >>> --- >>> slirp/slirp.h |2

Re: [Qemu-devel] [PATCH] pc: Clean up PIC-to-APIC IRQ path

2011-08-29 Thread Avi Kivity
On 08/30/2011 12:06 AM, Jan Kiszka wrote: > > Does this need to be save/restored for migration? Nope, but we need some other measure. I thought to remember the pic was refreshing this after load, but I do not find any traces of this now. We likely need a post_load handler in the i8259 that re-a

Re: [Qemu-devel] [PATCH] pc: Clean up PIC-to-APIC IRQ path

2011-08-29 Thread Jan Kiszka
On 2011-08-29 21:25, Anthony Liguori wrote: > On 08/27/2011 09:16 AM, Jan Kiszka wrote: >> From: Jan Kiszka >> >> The master PIC is connected to the LINTIN0 of the APICs. As the APIC >> currently does not track the state of that line, we have to ask the PIC >> to re-inject its IRQ after the CPU pic

Re: [Qemu-devel] [PATCH 6/6] qdev: Generate IDs for anonymous devices

2011-08-29 Thread Jan Kiszka
On 2011-08-29 21:23, Anthony Liguori wrote: > On 08/26/2011 09:48 AM, Jan Kiszka wrote: >> In order to address devices for that the user forgot or is even unable >> (no_user) to provide an ID, assign an automatically generated one. Such >> IDs have the format #, thus are outside the name space avai

Re: [Qemu-devel] [PATCH 0/6] Device state visualization reloaded

2011-08-29 Thread Jan Kiszka
On 2011-08-29 21:22, Anthony Liguori wrote: > On 08/26/2011 09:48 AM, Jan Kiszka wrote: >> More than one year ago I posted some patches to add a monitor command >> callend device_show. The purpose of that command is to dump the state of >> some qdev device based on its vmstate. > > I have a series

Re: [Qemu-devel] [PATCH] main: force enabling of I/O thread

2011-08-29 Thread Anthony Liguori
On 08/29/2011 03:21 PM, Andreas Färber wrote: Am 29.08.2011 um 20:03 schrieb Anthony Liguori: On 08/22/2011 08:35 AM, Jan Kiszka wrote: On 2011-08-22 15:24, Anthony Liguori wrote: Enabling the I/O thread by default seems like an important part of declaring 1.0. Besides allowing true SMP suppo

Re: [Qemu-devel] [PATCH] main: force enabling of I/O thread

2011-08-29 Thread Andreas Färber
Am 29.08.2011 um 20:03 schrieb Anthony Liguori: On 08/22/2011 08:35 AM, Jan Kiszka wrote: On 2011-08-22 15:24, Anthony Liguori wrote: Enabling the I/O thread by default seems like an important part of declaring 1.0. Besides allowing true SMP support with KVM, the I/O thread means that the

[Qemu-devel] [trivial patch] mention -usbdevice keyboard in help output

2011-08-29 Thread Michael Tokarev
There are several usb devices available, like mouse and tablet. One of them is keyboard. Mention it in help output too, just like it is done for mouse. Signed-off-by: Michael Tokarev diff --git a/qemu-options.hx b/qemu-options.hx index 35d95d1..cf9ef79 100644 --- a/qemu-options.hx +++ b/qemu-op

Re: [Qemu-devel] [PATCH 0/7] Fix packing for MinGW with -mms-bitfields

2011-08-29 Thread Stefan Weil
Am 29.08.2011 10:34, schrieb TeLeMan: On Mon, Aug 29, 2011 at 13:01, Stefan Weil wrote: Am 28.08.2011 23:43, schrieb Blue Swirl: On Sun, Aug 28, 2011 at 8:43 PM, Stefan Weil wrote: These patches fix the packing of structures which were affected by the new compiler attribute -mms-bitfields

Re: [Qemu-devel] RFC: vfio / device assignment -- layout of device fd files

2011-08-29 Thread Alex Williamson
On Mon, 2011-08-29 at 16:51 +, Yoder Stuart-B08248 wrote: > Alex Graf, Scott Wood, and I met last week to try to flesh out > some details as to how vfio could work for non-PCI devices, > like we have in embedded systems. This most likely will > require a different kernel driver than vfio-- fo

Re: [Qemu-devel] [PATCH 0/4] Image Streaming API

2011-08-29 Thread Luiz Capitulino
On Mon, 29 Aug 2011 14:16:44 -0500 Anthony Liguori wrote: > On 08/23/2011 07:58 AM, Stefan Hajnoczi wrote: > > These patches put in place the image streaming QMP/HMP commands and > > documentation. Image streaming itself is not implemented by this patch > > series > > but the HMP/QMP commands t

Re: [Qemu-devel] [PATCH] qemu-ga: Fix linux build with trace backend

2011-08-29 Thread Michael Roth
On 08/29/2011 02:20 PM, Stefan Weil wrote: Am 29.08.2011 20:32, schrieb Lluís: Stefan Weil writes: Builds with configure --enable-trace-backend=simple failed on linux because qemu-ga then uses simpletrace.c which needs get_clock which needs use_rt_clock which was unresolved. Adding qemu-timer-c

Re: [Qemu-devel] RFC: vfio / device assignment -- layout of device fd files

2011-08-29 Thread Scott Wood
On 08/29/2011 02:04 PM, Anthony Liguori wrote: > On 08/29/2011 11:51 AM, Yoder Stuart-B08248 wrote: >> Instead of config space fixed at 0xf, we would propose >> a header and multiple 'device info' records at offset 0x0 that would >> encode everything that user space needs to know about >> the devic

[Qemu-devel] [PATCH] Add CONFIG_QEMU_TIMER to handle qemu-timer-common.o dep

2011-08-29 Thread Michael Roth
This conditionally sets CONFIG_QEMU_TIMER in configure when something like --enable-trace-backend=simple is set which requires qemu-timer-common.o. Object groups dependent on such code can then simply do: x-obj-$(CONFIG_QEMU_TIMER) += qemu-timer-common.o This also fixes build issue with qemu-ga d

Re: [Qemu-devel] [PATCH] pc: Clean up PIC-to-APIC IRQ path

2011-08-29 Thread Anthony Liguori
On 08/27/2011 09:16 AM, Jan Kiszka wrote: From: Jan Kiszka The master PIC is connected to the LINTIN0 of the APICs. As the APIC currently does not track the state of that line, we have to ask the PIC to re-inject its IRQ after the CPU picked up an event from the APIC. Adds the proper state trac

Re: [Qemu-devel] [PATCH 1/2] Fix guest agent build with simpletrace

2011-08-29 Thread Michael Roth
On 08/29/2011 07:28 AM, Stefan Hajnoczi wrote: On Sun, Aug 28, 2011 at 10:08 PM, Blue Swirl wrote: On Sun, Aug 28, 2011 at 6:13 PM, Lluís wrote: Blue Swirl writes: On Sat, Aug 27, 2011 at 5:56 PM, Lluís wrote: I sent a patch that should fix it for everybody linking with the tracing object

Re: [Qemu-devel] [PATCH 6/6] qdev: Generate IDs for anonymous devices

2011-08-29 Thread Anthony Liguori
On 08/26/2011 09:48 AM, Jan Kiszka wrote: In order to address devices for that the user forgot or is even unable (no_user) to provide an ID, assign an automatically generated one. Such IDs have the format #, thus are outside the name space availing to users. Don't use them for bus naming to avoid

Re: [Qemu-devel] [PATCH 0/6] Device state visualization reloaded

2011-08-29 Thread Anthony Liguori
On 08/26/2011 09:48 AM, Jan Kiszka wrote: More than one year ago I posted some patches to add a monitor command callend device_show. The purpose of that command is to dump the state of some qdev device based on its vmstate. I have a series that does the same thing as this in a totally different

Re: [Qemu-devel] [PATCH] qemu-ga: Fix linux build with trace backend

2011-08-29 Thread Stefan Weil
Am 29.08.2011 20:32, schrieb Lluís: Stefan Weil writes: Builds with configure --enable-trace-backend=simple failed on linux because qemu-ga then uses simpletrace.c which needs get_clock which needs use_rt_clock which was unresolved. Adding qemu-timer-common.o fixes this. It adds a little overhea

Re: [Qemu-devel] [PATCH 0/4] Image Streaming API

2011-08-29 Thread Anthony Liguori
On 08/23/2011 07:58 AM, Stefan Hajnoczi wrote: These patches put in place the image streaming QMP/HMP commands and documentation. Image streaming itself is not implemented by this patch series but the HMP/QMP commands that libvirt uses are implemented to return NotSupported. The Image Streaming

Re: [Qemu-devel] [PULL 00/30] Block patches

2011-08-29 Thread Anthony Liguori
On 08/29/2011 09:53 AM, Kevin Wolf wrote: The following changes since commit b861b7419c49ad53e786062b4fbf6da53468f130: xilinx: removed microbalze_pic_init from xilinx.h (2011-08-22 23:29:37 +0200) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Applie

Re: [Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Anthony Liguori
On 08/29/2011 11:22 AM, Jan Kiszka wrote: On 2011-08-29 18:17, Jan Kiszka wrote: On 2011-08-29 17:34, Avi Kivity wrote: Please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch to receive a fixed version of the latest memory API conversion batch. The pflash_cfi patc

Re: [Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Anthony Liguori
On 08/29/2011 11:22 AM, Jan Kiszka wrote: On 2011-08-29 18:17, Jan Kiszka wrote: On 2011-08-29 17:34, Avi Kivity wrote: Please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch to receive a fixed version of the latest memory API conversion batch. The pflash_cfi patc

Re: [Qemu-devel] RFC: vfio / device assignment -- layout of device fd files

2011-08-29 Thread Anthony Liguori
On 08/29/2011 11:51 AM, Yoder Stuart-B08248 wrote: Alex Graf, Scott Wood, and I met last week to try to flesh out some details as to how vfio could work for non-PCI devices, like we have in embedded systems. This most likely will require a different kernel driver than vfio-- for now we are call

Re: [Qemu-devel] [PATCH 1/5] Support for vm_stop from the migration thread

2011-08-29 Thread Marcelo Tosatti
On Sat, Aug 27, 2011 at 02:09:44PM -0400, Umesh Deshpande wrote: > Currently, when any thread other than iothread calls vm_stop, it is scheduled > to > be executed later by the iothread. This patch allows the execution of vm_stop > from threads other than iothread. This is especially helpful when

Re: [Qemu-devel] [PATCH 3/5] Migration thread mutex

2011-08-29 Thread Marcelo Tosatti
On Sat, Aug 27, 2011 at 02:09:46PM -0400, Umesh Deshpande wrote: > This patch implements migrate_ram mutex, which protects the RAMBlock list > traversal in the migration thread during the transfer of a ram from their > addition/removal from the iothread. > > Note: Combination of iothread mutex and

Re: [Qemu-devel] [PATCH 5/5] Separate migration thread

2011-08-29 Thread Marcelo Tosatti
On Sat, Aug 27, 2011 at 02:09:48PM -0400, Umesh Deshpande wrote: > This patch creates a separate thread for the guest migration on the source > side. > All exits (on completion/error) from the migration thread are handled by a > bottom handler, which is called from the iothread. > > Signed-off-by

Re: [Qemu-devel] [PATCH] qemu-ga: Fix linux build with trace backend

2011-08-29 Thread Lluís
Stefan Weil writes: > Builds with configure --enable-trace-backend=simple failed on linux > because qemu-ga then uses simpletrace.c which needs get_clock which > needs use_rt_clock which was unresolved. > Adding qemu-timer-common.o fixes this. It adds a little overhead > (about 150 byte). There

Re: [Qemu-devel] [PATCH 7/7] slirp: Fix packing for w32

2011-08-29 Thread Stefan Weil
Am 29.08.2011 12:12, schrieb Jan Kiszka: On 2011-08-28 22:43, Stefan Weil wrote: Use QEMU_PACKED to eliminate the effects of compiler option -mms-bitfields. Cc: Jan Kiszka Signed-off-by: Stefan Weil --- slirp/slirp.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/s

Re: [Qemu-devel] Questions regarding ivshmem spec

2011-08-29 Thread Cam Macdonell
On Mon, Aug 29, 2011 at 9:25 AM, Sasha Levin wrote: > On Thu, 2011-08-25 at 16:29 +0300, Sasha Levin wrote: >> Hello, >> >> I am looking to implement an ivshmem device for KVM tools, the purpose >> is to provide same functionality as QEMU and interoperability with QEMU. > > [snip] > >> 1. File han

Re: [Qemu-devel] [PATCH] main: force enabling of I/O thread

2011-08-29 Thread Anthony Liguori
On 08/22/2011 08:35 AM, Jan Kiszka wrote: On 2011-08-22 15:24, Anthony Liguori wrote: Enabling the I/O thread by default seems like an important part of declaring 1.0. Besides allowing true SMP support with KVM, the I/O thread means that the TCG VCPU doesn't have to multiplex itself with the I/

[Qemu-devel] [PATCH] qemu-ga: Fix linux build with trace backend

2011-08-29 Thread Stefan Weil
Builds with configure --enable-trace-backend=simple failed on linux because qemu-ga then uses simpletrace.c which needs get_clock which needs use_rt_clock which was unresolved. Adding qemu-timer-common.o fixes this. It adds a little overhead (about 150 byte). Cc: Michael Roth Cc: Anthony Liguori

[Qemu-devel] [Bug 393430] Re: kvm: use PulseAudio instead of ALSA

2011-08-29 Thread Serge Hallyn
Can someone post a good test case, and expected and actual results at this point? Maybe an upstart job running kvm --audio-help | grep ^Name so that no user is logged in yet (per comment #14)? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscri

Re: [Qemu-devel] [PATCH] Fix qjson test of solidus encoding

2011-08-29 Thread Luiz Capitulino
On Mon, 29 Aug 2011 09:19:30 -0500 Michael Roth wrote: > On 08/26/2011 12:52 PM, Jan Kiszka wrote: > > On 2011-08-26 19:43, Luiz Capitulino wrote: > >> On Fri, 26 Aug 2011 18:48:52 +0200 > >> Jan Kiszka wrote: > >> > >>> Hi all, > >>> > >>> current master has some qregressions: > >>> > >>> # ./c

[Qemu-devel] RFC: vfio / device assignment -- layout of device fd files

2011-08-29 Thread Yoder Stuart-B08248
Alex Graf, Scott Wood, and I met last week to try to flesh out some details as to how vfio could work for non-PCI devices, like we have in embedded systems. This most likely will require a different kernel driver than vfio-- for now we are calling it "dtio" (for device tree I/O) as there is no wa

[Qemu-devel] [PATCH 26/30] qcow2: use always stderr for debugging

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio let all DEBUG_ALLOC2 printf goes to stderr Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |2 +- block/qcow2-refcount.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow

[Qemu-devel] [PATCH 16/30] qcow: remove old #undefined code

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow.c | 63 -- 1 files changed, 0 insertions(+), 63 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index 4495afe..c8bfecc 100644 --- a/blo

[Qemu-devel] [PATCH 29/30] block: latency accounting

2011-08-29 Thread Kevin Wolf
From: Christoph Hellwig Account the total latency for read/write/flush requests. This allows management tools to average it based on a snapshot of the nr ops counters and allow checking for SLAs or provide statistics. Signed-off-by: Christoph Hellwig Signed-off-by: Kevin Wolf --- block.c

[Qemu-devel] [PATCH 24/30] qcow2: remove memory leak

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 37dab65..b725d68 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -496,6 +496,7 @@ fai

[Qemu-devel] [PATCH 09/30] block/curl: Handle failed reads gracefully.

2011-08-29 Thread Kevin Wolf
From: Nicholas Thomas Current behaviour if a read fails is for the acb to not get finished. This causes an infinite loop in bdrv_read_em (block.c). The read failure never gets reported to the guest and if the error condition clears, the process never recovers. With this patch, when curl reports

[Qemu-devel] [PATCH 08/30] qemu-img: print error codes when convert fails

2011-08-29 Thread Kevin Wolf
From: Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- qemu-img.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 2fee782..0561d77 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -870,7 +870,8 @@ static

[Qemu-devel] [PATCH 27/30] qcow2: remove unused qcow2_create_refcount_update function

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c | 18 -- block/qcow2.h |2 -- 2 files changed, 0 insertions(+), 20 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index fbf28da..

[Qemu-devel] [PATCH 12/30] qcow/qcow2: Allocate QCowAIOCB structure using stack

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio instead of calling qemi_aio_get use stack Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow.c | 52 block/qcow2.c | 38 +++--- 2 files changed, 27 insertions(+

[Qemu-devel] [PATCH 06/30] qcow2: fix typo in documentation for qcow2_get_cluster_offset()

2011-08-29 Thread Kevin Wolf
From: Devin Nakamura Documentation states the num is measured in clusters, but its actually measured in sectors Signed-off-by: Devin Nakamura Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/qcow2-cluster.c b

Re: [Qemu-devel] [PULL] sh_pci fix

2011-08-29 Thread Anthony Liguori
On 08/28/2011 10:37 AM, Avi Kivity wrote: Anthony, please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/urgent to receive a fix for boundless recursion in the sh target, due to a bug in the memory API conversion. Pulled. Thanks. Regards, Anthony Liguori Avi Kivity

Re: [Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Jan Kiszka
On 2011-08-29 18:17, Jan Kiszka wrote: > On 2011-08-29 17:34, Avi Kivity wrote: >> Please pull from >> >> git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch >> >> to receive a fixed version of the latest memory API conversion batch. >> The pflash_cfi patch has been reworked extensiv

[Qemu-devel] [PATCH 15/30] qcow: Remove QCowAIOCB

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Embed qcow_aio_read_cb into qcow_co_readv and qcow_aio_write_cb into qcow_co_writev Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow.c | 291 - 1 files changed, 123 insertions(+), 168 deleti

[Qemu-devel] [PATCH] Memory API conversion for mpic (openpic.c)

2011-08-29 Thread Fabien Chouteau
This patch converts mpic to the new memory API. Signed-off-by: Fabien Chouteau --- hw/openpic.c | 208 +++- hw/openpic.h |8 +- hw/ppce500_mpc8544ds.c |3 +- 3 files changed, 105 insertions(+), 114 deletions(-) diff --git

Re: [Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Jan Kiszka
On 2011-08-29 17:34, Avi Kivity wrote: > Please pull from > > git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch > > to receive a fixed version of the latest memory API conversion batch. > The pflash_cfi patch has been reworked extensively, but otherwise there > are no changes. T

[Qemu-devel] [PATCH 18/30] qcow2: removed cur_nr_sectors field in QCowAIOCB

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c | 98 + 1 files changed, 43 insertions(+), 55 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 9f7566f..cc5f409 100644 --- a/

[Qemu-devel] [PATCH 14/30] qcow: move some blocks of code to avoid useless variable initialization

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow.c | 53 ++--- 1 files changed, 26 insertions(+), 27 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index 7727604..8c559e2 100644 --- a/block/q

[Qemu-devel] [PATCH 07/30] qcow: initialize coroutine mutex

2011-08-29 Thread Kevin Wolf
From: Scott Wood commit 52b8eb60132b27ad53476490e9d7579003390cfa added a mutex, but never initialized it. This caused a segfault. Reported-by: Alexander Graf Signed-off-by: Scott Wood Signed-off-by: Kevin Wolf --- block/qcow.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) dif

[Qemu-devel] [PATCH 10/30] block: include flush requests in info blockstats

2011-08-29 Thread Kevin Wolf
From: Christoph Hellwig Signed-off-by: Christoph Hellwig Signed-off-by: Kevin Wolf --- block.c | 18 +- block_int.h |1 + qmp-commands.hx |6 ++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/block.c b/block.c index 4186a2f..0f256f5 10

[Qemu-devel] [PATCH 04/30] qcow2: Fix DEBUG_* compilation

2011-08-29 Thread Kevin Wolf
From: Philipp Hahn By introducing BlockDriverState compiling qcow2 with DEBUG_ALLOC and DEBUG_EXT defined got broken. Define a BdrvCheckResult structure locally which is now needed as the second argument. Also fix qcow2_read_extensions() needing BDRVQcowState. Signed-off-by: Philipp Hahn Signe

[Qemu-devel] [PATCH 03/30] block: add cache=directsync parameter to -drive

2011-08-29 Thread Kevin Wolf
From: Stefan Hajnoczi This patch adds -drive cache=directsync for O_DIRECT | O_SYNC host file I/O with no disk write cache presented to the guest. This mode is useful when guests may not be sending flushes when appropriate and therefore leave data at risk in case of power failure. When cache=dir

Re: [Qemu-devel] [PULL] Memory API fixes - rom/device

2011-08-29 Thread Anthony Liguori
On 08/28/2011 10:52 AM, Avi Kivity wrote: Anthony, please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/core to receive fixes for the rom/device API - initialize ->ops and a new ->opaque. Pulled. Thanks. Regards, Anthony Liguori Avi Kivity (2): memory: fix memory_r

Re: [Qemu-devel] [PATCH] Memory API conversion for serial.c (Memory mapped interface)

2011-08-29 Thread Fabien Chouteau
On 29/08/2011 17:23, Avi Kivity wrote: > On 08/29/2011 06:15 PM, Fabien Chouteau wrote: >> This patch converts the memory mapped interface of serial.c to the new memory >> API. >> > > There has already been done by Richard, it's in the memory/queue branch of > git://git.kernel.org/pub/scm/virt/kv

[Qemu-devel] [PATCH] Probe HPET existence

2011-08-29 Thread Jan Kiszka
QEMU does not provide a HPET block if it was configured with -no-hpet, other machines SeaBIOS runs on may lack a HPET as well. Perform basic checks the ID register for a reasonable vendor ID and a clock period within the valid range, do not build the HPET table if that fails. Signed-off-by: Jan Ki

[Qemu-devel] [PATCH 13/30] qcow: QCowAIOCB field cleanup

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio remove unused field from this structure and put some of them in qcow_aio_read_cb and qcow_aio_write_cb Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow.c | 137 +++-- 1 files changed, 65 inserti

[Qemu-devel] [PATCH 19/30] qcow2: remove l2meta from QCowAIOCB

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index cc5f409..3068a58 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -385,7

[Qemu-devel] [PATCH 01/30] coroutine: Add CoRwlock support

2011-08-29 Thread Kevin Wolf
From: "Aneesh Kumar K.V" Signed-off-by: Aneesh Kumar K.V Signed-off-by: Kevin Wolf --- qemu-coroutine-lock.c | 44 qemu-coroutine.h | 32 2 files changed, 76 insertions(+), 0 deletions(-) diff --git a/qemu-

[Qemu-devel] [PATCH 11/30] posix-aio-compat: fix latency issues

2011-08-29 Thread Kevin Wolf
From: Avi Kivity In certain circumstances, posix-aio-compat can incur a lot of latency: - threads are created by vcpu threads, so if vcpu affinity is set, aio threads inherit vcpu affinity. This can cause many aio threads to compete for one cpu. - we can create up to max_threads (64) aio

Re: [Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Avi Kivity
On 08/29/2011 06:42 PM, Anthony Liguori wrote: On 08/29/2011 10:34 AM, Avi Kivity wrote: Please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch to receive a fixed version of the latest memory API conversion batch. The pflash_cfi patch has been reworked extensively, bu

Re: [Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Anthony Liguori
On 08/29/2011 10:34 AM, Avi Kivity wrote: Please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch to receive a fixed version of the latest memory API conversion batch. The pflash_cfi patch has been reworked extensively, but otherwise there are no changes. This has bee

[Qemu-devel] [PATCH 28/30] block: explicit I/O accounting

2011-08-29 Thread Kevin Wolf
From: Christoph Hellwig Decouple the I/O accounting from bdrv_aio_readv/writev/flush and make the hardware models call directly into the accounting helpers. This means: - we do not count internal requests from image formats in addition to guest originating I/O - we do not double count I/O o

[Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Avi Kivity
Please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch to receive a fixed version of the latest memory API conversion batch. The pflash_cfi patch has been reworked extensively, but otherwise there are no changes. Avi Kivity (22): mips_fulong2e: convert to m

[Qemu-devel] [PATCH 17/30] qcow2: Removed unused AIOCB fields

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index f4e3c06..9f7566f 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -385,11 +385

Re: [Qemu-devel] Questions regarding ivshmem spec

2011-08-29 Thread Sasha Levin
On Thu, 2011-08-25 at 16:29 +0300, Sasha Levin wrote: > Hello, > > I am looking to implement an ivshmem device for KVM tools, the purpose > is to provide same functionality as QEMU and interoperability with QEMU. [snip] > 1. File handles and guest IDs are passed between the server and the > peer

[Qemu-devel] [PATCH 22/30] qcow2: reindent and use while before the big jump

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio prepare to remove read/write callbacks Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c | 272 - 1 files changed, 135 insertions(+), 137 deletions(-) diff --git a/block/qcow2.c b/block/qc

Re: [Qemu-devel] [PATCH] Memory API conversion for serial.c (Memory mapped interface)

2011-08-29 Thread Avi Kivity
On 08/29/2011 06:15 PM, Fabien Chouteau wrote: This patch converts the memory mapped interface of serial.c to the new memory API. There has already been done by Richard, it's in the memory/queue branch of git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git. Please base patches off git://

[Qemu-devel] [PATCH 23/30] qcow2: Removed QCowAIOCB entirely

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c | 207 ++--- 1 files changed, 80 insertions(+), 127 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 52a7769..37dab65 100644 --- a

[Qemu-devel] [PATCH 30/30] qemu-img: Require larger zero areas for sparse handling

2011-08-29 Thread Kevin Wolf
By default, require 4k of consecutive zero bytes for qemu-img to make the output file sparse by not issuing a write request for the zeroed parts. Add an -S option to allow users to tune this setting. This helps to avoid situations where a lot of zero sectors and data sectors are mixed and qemu-img

[Qemu-devel] [PATCH] Memory API conversion for serial.c (Memory mapped interface)

2011-08-29 Thread Fabien Chouteau
This patch converts the memory mapped interface of serial.c to the new memory API. Signed-off-by: Fabien Chouteau --- hw/mips_jazz.c | 12 +++-- hw/mips_malta.c |7 ++- hw/musicpal.c| 17 --- hw/omap_uart.c | 11 +++-- hw/pc.h

[Qemu-devel] [PATCH] Rename qemu -> qemu-system-i386

2011-08-29 Thread Anthony Liguori
This has been discussed before in the past. The special casing really makes no sense anymore. This seems like a good change to make for 1.0. Signed-off-by: Anthony Liguori --- Makefile|5 ++--- Makefile.target |4 2 files changed, 2 insertions(+), 7 deletions(-) diff --gi

Re: [Qemu-devel] [PULL] pci, virtio, net, migration

2011-08-29 Thread Anthony Liguori
On 08/26/2011 05:06 AM, Michael S. Tsirkin wrote: The following changes since commit e8906f3529a452276375ab8e7b8598751bc33b01: PPC: E500: Set ESR values (2011-08-23 22:24:40 +0200) Pulled. Thanks. Regards, Anthony Liguori are available in the git repository at: git://git.kernel.org

  1   2   >