Re: [Qemu-devel] [PATCH] spice: increase the verbosity of spice section in "qemu --help"

2012-08-25 Thread Yonit Halperin
On 08/21/2012 03:31 PM, Eric Blake wrote: On 08/21/2012 04:54 AM, Yonit Halperin wrote: Added all spice options to the help string. This can be used by libvirt to determine which spice related features are supported by qemu. For older released, this is true; but for future versions of qemu, li

Re: [Qemu-devel] [RFC v2] ahci: Add support for migration

2012-08-25 Thread Alexander Graf
On 24.08.2012, at 09:28, Jason Baron wrote: > On Thu, Aug 09, 2012 at 10:49:23AM -0400, Jason Baron wrote: >> On Thu, Aug 09, 2012 at 02:59:54PM +0200, Andreas Färber wrote: >>> Define generic VMState for AHCI and reuse it together with PCI for ICH >>> and on its own for the SysBus version. >>>

Re: [Qemu-devel] [PATCH 2/5] softmmu templates: optionally pass CPUState to memory access functions

2012-08-25 Thread Peter Maydell
On 26 August 2012 00:28, Peter Maydell wrote: > On 24 August 2012 19:43, Andreas Färber wrote: >> @Peter, have you looked into tcg/arm/ AREG0 support? > > Currently working on a patch to fix things. ...does anybody have a 64 bit guest test image? The amd64 debian one on Aurelien's website is no

[Qemu-devel] [Bug 1036363] Re: Major network performance problems on AMD hardware

2012-08-25 Thread Ziemowit Pierzycki
Executed another test: F16 KVM <-- 15 gbps --> F17 VM So why is F16 much faster? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1036363 Title: Major network performance problems on AMD hardware S

Re: [Qemu-devel] [PATCH 2/5] softmmu templates: optionally pass CPUState to memory access functions

2012-08-25 Thread Peter Maydell
On 24 August 2012 19:43, Andreas Färber wrote: > @Peter, have you looked into tcg/arm/ AREG0 support? Currently working on a patch to fix things. Sneak preview, setting up the helper arguments looks much nicer now: argreg = TCG_REG_R0; #if CONFIG_TCG_PASS_AREG0 argreg = tcg_out_arg_reg32

[Qemu-devel] [PATCH] tcg/ia64: fix and optimize ld/st slow path

2012-08-25 Thread Aurelien Jarno
Store slow path has been broken in e141ab52d: - the arguments are shifted before the last one (mem_index) is written. - the shift is done for both slow and fast paths. Fix that. Also optimize a bit by bundling the move together. This still can be optimized, but it's better to wait for a decision t

[Qemu-devel] [PATCH] tcg/ia64: fix prologue/epilogue

2012-08-25 Thread Aurelien Jarno
Prologue and epilogue code has been broken in cea5f9a28. Signed-off-by: Aurelien Jarno --- tcg/ia64/tcg-target.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tcg/ia64/tcg-target.c b/tcg/ia64/tcg-target.c index e02dacc..b3c7db0 100644 --- a/tcg/ia64

Re: [Qemu-devel] [PATCH] Support for loading devices as dynamic libraries

2012-08-25 Thread Anthony Liguori
Dominik Żeromski writes: > Adding support for loading DSO with -device option. Hi, A few things: 1) Out of tree modules are boring and there's very little support/sympathy for supporting out of tree modules. That said, if you implemented support for in tree modules and the build system

Re: [Qemu-devel] qemu log function to print out the registers of the guest

2012-08-25 Thread Max Filippov
On Sat, Aug 25, 2012 at 9:20 PM, Steven wrote: > On Tue, Aug 21, 2012 at 3:18 AM, Max Filippov wrote: >> On Tue, Aug 21, 2012 at 9:40 AM, Steven wrote: >>> Hi, Max, >>> I wrote a small program to verify your patch could catch all the load >>> instructions from the guest. However, I found some pr

Re: [Qemu-devel] [PATCH] Support for loading devices as dynamic libraries

2012-08-25 Thread Stefan Hajnoczi
On Sat, Aug 25, 2012 at 6:06 PM, Dominik Żeromski wrote: > 2012/8/25 Stefan Hajnoczi >> >> On Sat, Aug 25, 2012 at 12:10 PM, Dominik Żeromski >> wrote: >> > Adding support for loading DSO with -device option. >> > >> > Example Makefile for out of tree modules: >> >> QEMU does not have a stable A

Re: [Qemu-devel] Windows slow boot: contractor wanted

2012-08-25 Thread Rik van Riel
On 08/25/2012 01:45 PM, Richard Davies wrote: Are you talking about these patches? http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=c67fe3752abe6ab47639e2f9b836900c3dc3da84 http://marc.info/?l=linux-mm&m=134521289221259 If so, I believe those are in 3.6.0-rc3, so I teste

Re: [Qemu-devel] Windows slow boot: contractor wanted

2012-08-25 Thread Richard Davies
Troy Benjegerdes wrote: > Is there a way to capture/reproduce this 'slow boot' behavior with > a simple regression test? I'd like to know if it happens on a > single-physical CPU socket machine, or just on dual-sockets. Yes, definitely. These two emails earlier in the thread give a fairly complet

Re: [Qemu-devel] Windows slow boot: contractor wanted

2012-08-25 Thread Richard Davies
Rik van Riel wrote: > Richard Davies wrote: > > Avi Kivity wrote: > > > Richard Davies wrote: > > > > I can trigger the slow boots without KSM and they have the same > > > > profile, with _raw_spin_lock_irqsave and isolate_freepages_block at > > > > the top. > > > > > > > > I reduced to 3x 20GB 8-c

[Qemu-devel] [Bug 1021649] Re: qemu 1.1.0 waits for a keypress at boot

2012-08-25 Thread Bug Watch Updater
** Changed in: qemu-kvm (Debian) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1021649 Title: qemu 1.1.0 waits for a keypress at boot Status in QEMU: Con

Re: [Qemu-devel] [PATCH] Support for loading devices as dynamic libraries

2012-08-25 Thread Dominik Żeromski
2012/8/25 Stefan Hajnoczi > > On Sat, Aug 25, 2012 at 12:10 PM, Dominik Żeromski > wrote: > > Adding support for loading DSO with -device option. > > > > Example Makefile for out of tree modules: > > QEMU does not have a stable ABI for devices. There is a lot of device > model refactoring happen

Re: [Qemu-devel] qcow2: online snasphots : internal vs external ?

2012-08-25 Thread Alexandre DERUMIER
Thank Stefan,that's clear now. Maybe one more question, about qemu snapshot that I don't understand. I work since many years with snapshot on zfs or netapp, and on these system like ceph, I can rollback at the time of the snapshot, and have a view of when the snapshot was taken. exemple : imag

Re: [Qemu-devel] How to add new architecture?

2012-08-25 Thread Wei-Ren Chen
On Sat, Aug 25, 2012 at 08:50:29AM -0700, Michael Eager wrote: > On 08/25/2012 08:38 AM, 陳韋任 (Wei-Ren Chen) wrote: > >> I want to add a new guest architecture. > >> > >> Is there any description of what the configuration options mean? > > > >You mean the options list in `../${QEMU_SRC}/configur

Re: [Qemu-devel] How to add new architecture?

2012-08-25 Thread Michael Eager
On 08/25/2012 08:38 AM, 陳韋任 (Wei-Ren Chen) wrote: I want to add a new guest architecture. Is there any description of what the configuration options mean? You mean the options list in `../${QEMU_SRC}/configure --help`? Not sure why you need to care about that. In $QEMU_SRC/configure, arch

Re: [Qemu-devel] How to add new architecture?

2012-08-25 Thread Wei-Ren Chen
On Sat, Aug 25, 2012 at 08:33:41AM -0700, Michael Eager wrote: > On 08/25/2012 05:57 AM, 陳韋任 (Wei-Ren Chen) wrote: > > On Fri, Aug 24, 2012 at 05:46:43PM -0700, Michael Eager wrote: > >> Is there a description of how to add a new processor architecture > >> to QEMU? I looked at the Wiki and at the

Re: [Qemu-devel] How to add new architecture?

2012-08-25 Thread Wei-Ren Chen
> I want to add a new guest architecture. > > Is there any description of what the configuration options mean? You mean the options list in `../${QEMU_SRC}/configure --help`? Not sure why you need to care about that. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of In

Re: [Qemu-devel] How to add new architecture?

2012-08-25 Thread Michael Eager
On 08/25/2012 05:57 AM, 陳韋任 (Wei-Ren Chen) wrote: On Fri, Aug 24, 2012 at 05:46:43PM -0700, Michael Eager wrote: Is there a description of how to add a new processor architecture to QEMU? I looked at the Wiki and at the QEMU-Buch, but there doesn't seem to be anything on topic. Looking for

Re: [Qemu-devel] Get host virtual address corresponding to guest physical address?

2012-08-25 Thread Peter Maydell
On 25 August 2012 14:17, 陳韋任 (Wei-Ren Chen) wrote: > On Sat, Aug 25, 2012 at 11:56:13AM +0100, Peter Maydell wrote: >> On 24 August 2012 04:14, 陳韋任 (Wei-Ren Chen) wrote: >> > I would like to know if there is a function in QEMU which converts >> > a guest physical address into corresponding host

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

2012-08-25 Thread Alexander Graf
On 25.08.2012, at 00:43, Blue Swirl wrote: > On Wed, Aug 22, 2012 at 10:31 AM, Li Zhang wrote: >> When -usb option is used, global varible usb_enabled is set. >> And all the plafrom will create one USB controller according >> to this variable. In fact, global varibles make code hard >> to read

Re: [Qemu-devel] qcow2: online snasphots : internal vs external ?

2012-08-25 Thread Stefan Hajnoczi
On Sat, Aug 25, 2012 at 2:25 PM, Alexandre DERUMIER wrote: > I'm currently looking to add live snapshot support to proxmox kvm > distribution. > > Is it possible to use internal snapshots on a running guest running qcow2 > disk? > (qemu-img snapshot -c ) ? No. qemu-img should not be used if th

Re: [Qemu-devel] Network Passthrough configuration!

2012-08-25 Thread GaoYi
So is my command line to start the guest OK? The command line is as: qemu-img -boot c -hda readhat.img -device pci-assign,host=XX:00.0 Why doesn't the network work? Yi 2012/8/25 Stefan Hajnoczi > On Sat, Aug 25, 2012 at 5:35 AM, GaoYi wrote: > > Hi all, > > > >I am trying to

Re: [Qemu-devel] [PATCH] Support for loading devices as dynamic libraries

2012-08-25 Thread Stefan Hajnoczi
On Sat, Aug 25, 2012 at 12:10 PM, Dominik Żeromski wrote: > Adding support for loading DSO with -device option. > > Example Makefile for out of tree modules: QEMU does not have a stable ABI for devices. There is a lot of device model refactoring happening right now for multithreaded MMIO/PIO dis

[Qemu-devel] [PATCH] Support for loading devices as dynamic libraries

2012-08-25 Thread Dominik Żeromski
Adding support for loading DSO with -device option. Example Makefile for out of tree modules: #v+ DEVICENAME=pcnet2 hw-obj-y=pcnet-pci.o hw-obj-y+=pcnet.o include rules.mak .PHONY: all QEMU_CFLAGS=-I../qemu-kvm -I../qemu-kvm/hw QEMU_CFLAGS+=-I../qemu-kvm/fpu -I../qemu-kvm/include QEMU_CFLAGS+

[Qemu-devel] [Bug 498523] Re: Add on-line write compression support to qcow2

2012-08-25 Thread Paul Maunders
+1 vote for this feature. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/498523 Title: Add on-line write compression support to qcow2 Status in QEMU: Confirmed Bug description: This is a wishl

[Qemu-devel] qcow2: online snasphots : internal vs external ?

2012-08-25 Thread Alexandre DERUMIER
Hi, I'm currently looking to add live snapshot support to proxmox kvm distribution. Is it possible to use internal snapshots on a running guest running qcow2 disk? (qemu-img snapshot -c ) ? I see some old mails about possible corruption, that's why I tell the question. Or do I need to use exter

Re: [Qemu-devel] Get host virtual address corresponding to guest physical address?

2012-08-25 Thread Wei-Ren Chen
On Sat, Aug 25, 2012 at 11:56:13AM +0100, Peter Maydell wrote: > On 24 August 2012 04:14, 陳韋任 (Wei-Ren Chen) wrote: > > I would like to know if there is a function in QEMU which converts > > a guest physical address into corresponding host virtual address. > > So the question is, what do you wa

Re: [Qemu-devel] How to add new architecture?

2012-08-25 Thread Wei-Ren Chen
On Fri, Aug 24, 2012 at 05:46:43PM -0700, Michael Eager wrote: > Is there a description of how to add a new processor architecture > to QEMU? I looked at the Wiki and at the QEMU-Buch, but there > doesn't seem to be anything on topic. Looking for target-xxx/ if you want to add a new guest, tcg

Re: [Qemu-devel] [PATCH 2/5] softmmu templates: optionally pass CPUState to memory access functions

2012-08-25 Thread Aurelien Jarno
On Sat, Aug 25, 2012 at 09:18:17AM +, Blue Swirl wrote: > On Fri, Aug 24, 2012 at 6:53 PM, Aurelien Jarno wrote: > > On Fri, Aug 24, 2012 at 08:43:32PM +0200, Andreas Färber wrote: > >> Am 24.08.2012 20:05, schrieb Aurelien Jarno: > >> > On Fri, Aug 24, 2012 at 05:52:29PM +0200, Andreas Färber

Re: [Qemu-devel] [PATCH 2/5] softmmu templates: optionally pass CPUState to memory access functions

2012-08-25 Thread Aurelien Jarno
On Sat, Aug 25, 2012 at 12:01:26AM +0100, Peter Maydell wrote: > On 24 August 2012 19:43, Andreas Färber wrote: > > Depends on what you mean with "disable"? Adding an #error would hurt our > > arm build just like earlier the ppc build, and I would hope from my last > > testing that the problems wo

Re: [Qemu-devel] Get host virtual address corresponding to guest physical address?

2012-08-25 Thread Peter Maydell
On 24 August 2012 04:14, 陳韋任 (Wei-Ren Chen) wrote: > I would like to know if there is a function in QEMU which converts > a guest physical address into corresponding host virtual address. So the question is, what do you want to do with the host virtual address when you've got it? cpu_physical_m

Re: [Qemu-devel] [PATCH 2/5] softmmu templates: optionally pass CPUState to memory access functions

2012-08-25 Thread Blue Swirl
On Fri, Aug 24, 2012 at 11:01 PM, Peter Maydell wrote: > On 24 August 2012 19:43, Andreas Färber wrote: >> Depends on what you mean with "disable"? Adding an #error would hurt our >> arm build just like earlier the ppc build, and I would hope from my last >> testing that the problems would only a

Re: [Qemu-devel] [PATCH 2/5] softmmu templates: optionally pass CPUState to memory access functions

2012-08-25 Thread Blue Swirl
On Fri, Aug 24, 2012 at 6:53 PM, Aurelien Jarno wrote: > On Fri, Aug 24, 2012 at 08:43:32PM +0200, Andreas Färber wrote: >> Am 24.08.2012 20:05, schrieb Aurelien Jarno: >> > On Fri, Aug 24, 2012 at 05:52:29PM +0200, Andreas Färber wrote: >> >> Not opposed to changing the argument order, but given

Re: [Qemu-devel] [PATCH 2/5] softmmu templates: optionally pass CPUState to memory access functions

2012-08-25 Thread Blue Swirl
On Fri, Aug 24, 2012 at 3:05 PM, Aurelien Jarno wrote: > On Sun, Mar 11, 2012 at 10:24:03PM +, Blue Swirl wrote: >> Optionally, make memory access helpers take a parameter for CPUState >> instead of relying on global env. >> >> On most targets, perform simple moves to reorder registers. On i38

Re: [Qemu-devel] [PATCH 03/10] qom: export object_property_is_child, object_property_is_link

2012-08-25 Thread Blue Swirl
On Fri, Aug 24, 2012 at 9:49 AM, Liu Ping Fan wrote: > From: Liu Ping Fan > > qdev will use them to judge how to remove the bus and device's > reference. So export them in object.h > > Signed-off-by: Liu Ping Fan > --- > include/qemu/object.h |3 +++ > qom/object.c |4 ++-- > 2

Re: [Qemu-devel] Get host virtual address corresponding to guest physical address?

2012-08-25 Thread Blue Swirl
On Fri, Aug 24, 2012 at 3:14 AM, 陳韋任 (Wei-Ren Chen) wrote: > Hi all, > > I would like to know if there is a function in QEMU which converts > a guest physical address into corresponding host virtual address. I > guess cpu_physical_memory_map (exec.c) can do the job, but I have a > few questions.

Re: [Qemu-devel] [PATCH RFC 1/2] Parse the cpu entitlement from the qemu commandline.

2012-08-25 Thread Blue Swirl
On Thu, Aug 23, 2012 at 11:15 PM, Michael Wolf wrote: > The cpu entitlement value will be passed to qemu as part of the cpu > parameters. > Add cpu_parse to read this value from the commandline. > > Signed-off-by: Michael Wolf > --- > qemu-options.hx |7 +-- > vl.c| 23 +++

Re: [Qemu-devel] [PATCH V5 2/2] qemu-img: Add json output option to the info command.

2012-08-25 Thread Blue Swirl
On Thu, Aug 23, 2012 at 12:42 PM, Benoît Canet wrote: > This option --output=[human|json] make qemu-img info output on > human or JSON representation at the choice of the user. > > example: > { > "snapshots": [ > { > "vm-clock-nsec": 637102488, > "name": "vm-201

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

2012-08-25 Thread Blue Swirl
On Wed, Aug 22, 2012 at 10:31 AM, Li Zhang wrote: > When -usb option is used, global varible usb_enabled is set. > And all the plafrom will create one USB controller according > to this variable. In fact, global varibles make code hard > to read. > > So this patch is to remove global variable usb_

Re: [Qemu-devel] [PATCH 03/10] qom: export object_property_is_child, object_property_is_link

2012-08-25 Thread liu ping fan
On Fri, Aug 24, 2012 at 10:51 PM, Paolo Bonzini wrote: > Il 24/08/2012 11:49, Liu Ping Fan ha scritto: >> From: Liu Ping Fan >> >> qdev will use them to judge how to remove the bus and device's >> reference. So export them in object.h > > This series doesn't use them. > Yeap, will fix it in V2.

Re: [Qemu-devel] [PATCH 10/10] qdev: fix create in place obj's life cycle problem

2012-08-25 Thread liu ping fan
On Fri, Aug 24, 2012 at 10:42 PM, Paolo Bonzini wrote: > Il 24/08/2012 11:49, Liu Ping Fan ha scritto: >> With this patch, we can protect PCIIDEState from disappearing during >> mmio-dispatch hold the IDEBus->ref. > > I don't see why MMIO dispatch should hold the IDEBus ref rather than the > PCIID

Re: [Qemu-devel] [PATCH v8 5/6] introduce a new qom device to deal with panicked event

2012-08-25 Thread Blue Swirl
On Wed, Aug 22, 2012 at 7:30 AM, Wen Congyang wrote: > At 08/09/2012 03:01 AM, Blue Swirl Wrote: >> On Wed, Aug 8, 2012 at 2:47 AM, Wen Congyang wrote: >>> If the target is x86/x86_64, the guest's kernel will write 0x01 to the >>> port KVM_PV_EVENT_PORT when it is panciked. This patch introduces

[Qemu-devel] [PATCH] qdev: unplug request will propagate and release item bottom-up

2012-08-25 Thread Liu Ping Fan
From: Liu Ping Fan To achieve uplug a sub tree, we propagate unplug event on the tree. Signed-off-by: Liu Ping Fan --- hw/acpi_piix4.c | 71 +- hw/qdev.c |7 - hw/qdev.h |2 + 3 files changed, 77 insertions(+), 3 del

Re: [Qemu-devel] [PATCH 07/10] unplug: using new intf qdev_delete_subtree in acpi_piix_eject_slot

2012-08-25 Thread liu ping fan
On Fri, Aug 24, 2012 at 6:24 PM, Paolo Bonzini wrote: > Il 24/08/2012 11:49, Liu Ping Fan ha scritto: >> From: Liu Ping Fan >> >> We are not long to force to delete the obj at that place, just >> let its refcnt handle this issue. > > This seems wrong. If anything, unplug requests should propagat