[Qemu-devel] Re: x86: PMTIMER calibration sometimes fails

2010-09-27 Thread Thomas De Schampheleire
Hi, Can anyone help me with this? Thanks, Thomas On Tue, Sep 21, 2010 at 8:58 AM, Thomas De Schampheleire wrote: > Hi, > > I am running an x86 based Linux system under qemu. Linux boots up > correctly in most cases, however sometimes the PMTIMER fails to > calibrate correctly: > > [    0.0

[Qemu-devel] how to add patches

2010-09-27 Thread chandra shekar
hi everyone i like to add a patch to my qemu but unable to understand the format that is how do i proceed in adding this patch to my qemu the patch is http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01662.html,thanks

[Qemu-devel] roby zhou wants to stay in touch on LinkedIn

2010-09-27 Thread roby zhou
LinkedIn I'd like to add you to my professional network on LinkedIn. - roby zhou roby zhou Solution Engineer at Myriad Group AG China Confirm that you know roby zhou https://www.linkedin.com/e/-kkb1ec-gem4zced-1/isd/1717720215/2nPlrZr3/ -- (c) 2010, LinkedIn Corporation

Re: [Qemu-devel] [Snapshot Mode]

2010-09-27 Thread edison
savevm will take disk snapshot also, then you can copy the snapshot out of disk image to another storage. I had posted two patches about it: http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01662.html and http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg00655.html. FYI. BTW, if

Re: [Qemu-devel] snapshots

2010-09-27 Thread edison
QCOW2 snapshots are stored inside the disk image, which is the kind of internal snapshot. I had send out a patch (http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01662.html) last weeks, that can copy the snapshot out of the disk. FYI. On Sun, Sep 26, 2010 at 10:47 PM, chandra shekar wr

[Qemu-devel] Re: [PATCH v3 08/13] pcie root port: implement pcie root port.

2010-09-27 Thread Isaku Yamahata
On Mon, Sep 27, 2010 at 12:40:12PM +0200, Michael S. Tsirkin wrote: > On Mon, Sep 27, 2010 at 03:22:43PM +0900, Isaku Yamahata wrote: > > On Sun, Sep 26, 2010 at 02:50:42PM +0200, Michael S. Tsirkin wrote: > > > On Fri, Sep 24, 2010 at 02:38:09PM +0900, Isaku Yamahata wrote: > > > > On Wed, Sep 22,

[Qemu-devel] [Bug 648356] Re: VirtFS possible memory leak in 9p virtio mapped

2010-09-27 Thread Moshroum
Updated to v2.6.36.6 with https://patchwork.kernel.org/patch/127401/ and it still has the problem. It increases the memory usage not as fast, but it still quite a lot. I also tried to mount it using -oversion=9p2000.L /sys/kernel/debug/kmemleak says on unmount: unreferenced object 0xf791a870 (s

[Qemu-devel] [Bug 648356] Re: VirtFS possible memory leak in 9p virtio mapped

2010-09-27 Thread Moshroum
** Description changed: I use as client Debian squeeze i386 with a custom kernel: Linux (none) 2.6.35.5 #3 Thu Sep 23 18:36:02 UTC 2010 i686 GNU/Linux And as host Debian squeeze amd64 Linux asd 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/Linux kvm version is: kv

[Qemu-devel] KVM call agenda for Sept 28

2010-09-27 Thread Chris Wright
Please send in any agenda items you are interested in covering. thanks, -chris

[Qemu-devel] Re: [PATCH] net: delay freeing peer host device

2010-09-27 Thread Michael S. Tsirkin
On Mon, Sep 27, 2010 at 02:18:37PM -0600, Alex Williamson wrote: > On Mon, 2010-09-27 at 15:00 +0200, Michael S. Tsirkin wrote: > > With -netdev, virtio devices present offload > > features to guest, depending on the backend used. > > Thus, removing host netdev peer while guest is > > active leads

[Qemu-devel] Re: [PATCHv2] virtio-net: unify vhost-net start/stop

2010-09-27 Thread Michael S. Tsirkin
On Mon, Sep 27, 2010 at 01:43:11PM -0600, Alex Williamson wrote: > On Mon, 2010-09-27 at 18:41 +0200, Michael S. Tsirkin wrote: > > Move all of vhost-net start/stop logic to a single routine, > > and call it from everywhere. > > > > Additionally, start/stop vhost-net on link up/down: > > we should

[Qemu-devel] [Bug 648128] Re: VirtFS: Cannot mount 9p during boot

2010-09-27 Thread Moshroum
Fixed for me by http://article.gmane.org/gmane.linux.utilities.util- linux-ng/3500/raw and http://article.gmane.org/gmane.linux.kernel/1041020/raw ** Changed in: qemu Status: New => In Progress -- VirtFS: Cannot mount 9p during boot https://bugs.launchpad.net/bugs/648128 You received this

[Qemu-devel] [Bug 646427] Re: VirtFS mapped symlinks resolved wrong

2010-09-27 Thread Moshroum
Fixed by the mentioned documentation ** Changed in: qemu Status: New => Invalid -- VirtFS mapped symlinks resolved wrong https://bugs.launchpad.net/bugs/646427 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: Inva

[Qemu-devel] Re: BUG - qdev - partial loss of network connectivity

2010-09-27 Thread Leszek Urbanski
<20100926154324.gd21...@redhat.com>; from Michael S. Tsirkin on Sun, Sep 26, 2010 at 17:43:24 +0200 > > > >It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 > > > >(based on 2.6.32.21). > > > > > > > >If offload is the only difference, I'll play with different offload > > >

[Qemu-devel] "Bad ram offset"?

2010-09-27 Thread Artyom Tarasenko
In today's git master: $ ./qemu-system-sparc64 -M sun4u -m 2048 Bad ram offset 8000 Aborted $ ./qemu-system-sparc -M SS-20 -m 2048 Bad ram offset 8010 Aborted Is there a way to give guest 2GiB+ RAM? The host seems to have enough: $ free total used

[Qemu-devel] Re: [PATCH] net: delay freeing peer host device

2010-09-27 Thread Alex Williamson
On Mon, 2010-09-27 at 15:00 +0200, Michael S. Tsirkin wrote: > With -netdev, virtio devices present offload > features to guest, depending on the backend used. > Thus, removing host netdev peer while guest is > active leads to guest-visible inconsistency and/or crashes. > > As a solution, while gu

[Qemu-devel] Re: [PATCHv2] virtio-net: unify vhost-net start/stop

2010-09-27 Thread Alex Williamson
On Mon, 2010-09-27 at 18:41 +0200, Michael S. Tsirkin wrote: > Move all of vhost-net start/stop logic to a single routine, > and call it from everywhere. > > Additionally, start/stop vhost-net on link up/down: > we should not transmit anything if user asked us to > put the link down. > > Signed-o

Re: [Qemu-devel] qemu: qemu_mutex_lock: Invalid argument

2010-09-27 Thread Rick Vernam
On Wednesday 15 September 2010 05:46:55 Yoshiaki Tamura wrote: > Hi Rick, > > 2010/9/15 Corentin Chary : > > On Tue, Sep 14, 2010 at 10:00 PM, Rick Vernam wrote: > >> I don't have nearly enough info to file a proper bug report. > >> > >> I am running qemu-kvm-0.13.0 rc1 > >> starting qemu like s

[Qemu-devel] [PATCHv2] virtio-net: unify vhost-net start/stop

2010-09-27 Thread Michael S. Tsirkin
Move all of vhost-net start/stop logic to a single routine, and call it from everywhere. Additionally, start/stop vhost-net on link up/down: we should not transmit anything if user asked us to put the link down. Signed-off-by: Michael S. Tsirkin --- Sent a wrong version, sorry about the noise.

[Qemu-devel] [PATCH] virtio-9p: Use GCC_FMT_ATTR and fix a format warning

2010-09-27 Thread Stefan Weil
With the new gcc format warnings, gcc detected this: /qemu/hw/virtio-9p.c:1040: error: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘__nlink_t’ Cc: Blue Swirl Signed-off-by: Stefan Weil --- hw/virtio-9p.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-)

[Qemu-devel] [PATCH] virtio-net: unify vhost-net start/stop

2010-09-27 Thread Michael S. Tsirkin
Move all of vhost-net start/stop logic to a single routine, and call it from everywhere. Additionally, start/stop vhost-net on link up/down: we should not transmit anything if user asked us to put the link down. Signed-off-by: Michael S. Tsirkin --- hw/virtio-net.c | 37 +-

[Qemu-devel] [PATCH] virtio: invoke set_status callback on reset

2010-09-27 Thread Michael S. Tsirkin
As status is set to 0 on reset, invoke the relevant callback. This makes for a cleaner code in devices as they don't need to duplicate the code in their reset routine, as well as excercises this path a little more. Signed-off-by: Michael S. Tsirkin --- hw/virtio.c |2 ++ 1 files changed, 2 i

[Qemu-devel] Re: [PATCH 3/3] Add svm cpuid features

2010-09-27 Thread Avi Kivity
On 09/27/2010 05:40 PM, Roedel, Joerg wrote: On Mon, Sep 27, 2010 at 11:02:23AM -0400, Avi Kivity wrote: >On 09/27/2010 04:58 PM, Avi Kivity wrote: > > On 09/27/2010 03:16 PM, Joerg Roedel wrote: > >> This patch adds the svm cpuid feature flags to the qemu > >> intialization path. It

[Qemu-devel] Re: [PATCH 2/2] trace: avoid unnecessary recompilation if nothing changed

2010-09-27 Thread Paolo Bonzini
On 09/27/2010 06:13 PM, Blue Swirl wrote: Indeed, see how it's done for config-*.h. # Uses generic rule in rules.mak trace.h: trace.h-timestamp trace.h-timestamp: $(SRC_PATH)/trace-events config-host.mak $(call quiet-command,sh $(SRC_PATH)/tracetool --$(TRACE_BACKEND) -h< $< > $@,"

[Qemu-devel] Tracing memory accesses via gdbstub and SPARC64

2010-09-27 Thread Mark Cave-Ayland
Hi all, What is the best way of being able track accesses to a specific location via gdbstub? I'm trying to investigate a potential memory-clobbering bug in OpenBIOS on SPARC64 but using "watch" on a variable via gdbstub causes gdb to segfault, e.g.: bu...@zeno:~/src/openbios/openbios-devel

[Qemu-devel] Re: [PATCH 2/2] trace: avoid unnecessary recompilation if nothing changed

2010-09-27 Thread Blue Swirl
On Mon, Sep 27, 2010 at 9:51 AM, Paolo Bonzini wrote: > On 09/27/2010 10:32 AM, Markus Armbruster wrote: >> Why the conditional?  cmp -s fails fine when argument files don't exist. >> >> Note that common versions of make including GNU Make do not stat a >> rule's target to check whether the rule c

[Qemu-devel] Re: [PATCH 3/3] Add svm cpuid features

2010-09-27 Thread Roedel, Joerg
On Mon, Sep 27, 2010 at 11:02:23AM -0400, Avi Kivity wrote: > On 09/27/2010 04:58 PM, Avi Kivity wrote: > > On 09/27/2010 03:16 PM, Joerg Roedel wrote: > >> This patch adds the svm cpuid feature flags to the qemu > >> intialization path. It also adds the svm features available > >> on phenom to

[Qemu-devel] Re: [PATCH 3/3] Add svm cpuid features

2010-09-27 Thread Avi Kivity
On 09/27/2010 04:58 PM, Avi Kivity wrote: On 09/27/2010 03:16 PM, Joerg Roedel wrote: This patch adds the svm cpuid feature flags to the qemu intialization path. It also adds the svm features available on phenom to its cpu-definition and extends the host cpu type to support all svm features KV

[Qemu-devel] Re: [PATCH 3/3] Add svm cpuid features

2010-09-27 Thread Avi Kivity
On 09/27/2010 03:16 PM, Joerg Roedel wrote: This patch adds the svm cpuid feature flags to the qemu intialization path. It also adds the svm features available on phenom to its cpu-definition and extends the host cpu type to support all svm features KVM can provide. This should really be "all

[Qemu-devel] Re: [RFC PATCH 0/4] Model specific function for nic announcement

2010-09-27 Thread Michael S. Tsirkin
On Mon, Sep 27, 2010 at 08:50:44PM +0800, Jason Wang wrote: > This series of patch tries to solve the problem of migration with nics who > have > multiple mac addresses or vlans. Qemu currently only send gratuitous packet > for > first mac address, so after migration other mac addresses or vlans

[Qemu-devel] [PATCH 2/2] Add option to preserve aspect in SDL display scaling.

2010-09-27 Thread Michal Suchanek
The output is not centered. I am not sure how to achieve that because SDL just sets a "video mode" which starts at upper left corner of the window. It would be possible to make the mode larger but then the zoom routines would have to take an offset. Signed-off-by: Michal Suchanek --- qemu-opt

[Qemu-devel] [RFC][PATCH 1/2] Add option to disable PS/2 mouse.

2010-09-27 Thread Michal Suchanek
Hello I tried to patch qemu to allow disabling the PS/2 mouse. This patch works for me, when I disable the mouse Windows no longer detects it. I am not sure this is entirely correct. Specifically there is KBD_MODE_DISABLE_MOUSE bit which can probably still be disabled and KBD_MODE_MOUSE_INT is e

[Qemu-devel] [PATCH 3/3] Add svm cpuid features

2010-09-27 Thread Joerg Roedel
This patch adds the svm cpuid feature flags to the qemu intialization path. It also adds the svm features available on phenom to its cpu-definition and extends the host cpu type to support all svm features KVM can provide. Signed-off-by: Joerg Roedel --- target-i386/cpu.h | 12 targ

[Qemu-devel] [PATCH 1/3] Make kvm64 the default cpu model when kvm_enabled()

2010-09-27 Thread Joerg Roedel
As requested by Alex this patch makes kvm64 the default CPU model when qemu is started with -enable-kvm. This takes only effect for qemu-versions newer or equal to 0.14.0. Signed-off-by: Joerg Roedel --- hw/boards.h|1 + hw/pc.c| 21 - hw/pc_piix.c |6

[Qemu-devel] [PATCH 2/3] Set cpuid definition to 0 before initializing it

2010-09-27 Thread Joerg Roedel
This patch cleans the (stack-allocated) cpuid definition to 0 before actually initializing it. Signed-off-by: Joerg Roedel --- target-i386/cpuid.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index 04ba8d5..3fcf78f 100644 ---

[Qemu-devel] [PATCH 0/3] SVM feature support for qemu v3

2010-09-27 Thread Joerg Roedel
Hi, here is the third round of the patches to add svm-features support to qemu. The patches are rebases against latest qemu/master. Other changes since v2: * Made kvm64 the default model only for qemu-versions >= 0.14.0 * Removed clean-bits from the phenom cpu-model Feedback and/

[Qemu-devel] [PATCH] net: delay freeing peer host device

2010-09-27 Thread Michael S. Tsirkin
With -netdev, virtio devices present offload features to guest, depending on the backend used. Thus, removing host netdev peer while guest is active leads to guest-visible inconsistency and/or crashes. As a solution, while guest (NIC) peer device exists, we prevent the host peer from being deleted

[Qemu-devel] [RFC PATCH 3/4] virtio-net: Limit the num of uni/multicast mac addresses

2010-09-27 Thread Jason Wang
In order to send gratuitous packet for each mac address, we need to keep track every macaddress after migration which is obviously conflicted with the overload policy currently used in qemu which just forward all packets to guest when it can't record all the macaddress. So we need to limit the num

[Qemu-devel] [RFC PATCH 4/4] virtio-net: implement virtio-net specific announce function

2010-09-27 Thread Jason Wang
This patch tries to announce every mac address for one virtio nic after migration. The primary mac address is announced unconditionally and other macaddress are only announced when no vlan is configurated in guest. For guest with vlan, what we need do is to send tagged gratutious packet, but curre

[Qemu-devel] [RFC PATCH 2/4] net: Introduce model specific nic announce function

2010-09-27 Thread Jason Wang
This patch introduce a function pointer in NetClientInfo which is called during self announcement to do the model specific mac address announcement. Previous method were kept for the model without its own implementation. Signed-off-by: Jason Wang --- net.h|2 ++ savevm.c | 10 -

[Qemu-devel] [RFC PATCH 1/4] net: move announce_self_create to net.c

2010-09-27 Thread Jason Wang
Export and move announce_self_create to net.c in order to be used by model specific announcing function. Signed-off-by: Jason Wang --- net.c| 31 +++ net.h|1 + savevm.c | 32 3 files changed, 32 insertions(+), 32 delet

[Qemu-devel] [RFC PATCH 0/4] Model specific function for nic announcement

2010-09-27 Thread Jason Wang
This series of patch tries to solve the problem of migration with nics who have multiple mac addresses or vlans. Qemu currently only send gratuitous packet for first mac address, so after migration other mac addresses or vlans were broken. The information of mac addresses and vlans were often stor

Re: TR : RE : [Qemu-devel] Re: Win2k host problem with {get, free}{addr, name}info()

2010-09-27 Thread Bastien ROUCARIES
On Sat, Sep 25, 2010 at 10:15 AM, Blue Swirl wrote: > On Fri, Sep 24, 2010 at 9:21 PM, Bastien ROUCARIES > wrote: >> Forget cc >> >> -- Message transféré -- >> De : "Bastien ROUCARIES" >> Date : 24 sept. 2010 23:21 >> Objet : RE : [Qemu-devel] Re: Win2k host problem with {get, fr

[Qemu-devel] [PATCH] Hostfwd: let hostnames be used

2010-09-27 Thread Lauri Kasanen
Hi This is an usability issue, one that bugs me every time I need to use hostfwd. If I want to bind to localhost, I instinctively type localhost, not 127.0.0.1. Likewise the machine's host name if I want an external connection. Thus, make it so it can take hostnames :) - Lauri -- ___

[Qemu-devel] [Bug 643430] Re: system_powerdown is working in qemu-kvm with KVM enabled for FreeBSD guests

2010-09-27 Thread Dennis Krul
I have the same issue with FreeBSD 8.1-RELEASE (i386 and x86_64) on qemu-kvm 0.12.5 (Fedora 13) system_powerdown works properly for Linux and Windows 2008 guests, but not for FreeBSD The ACPI power button event is not received by the FreeBSD guest. I found this (unconfirmed) status report: http:/

[Qemu-devel] Re: [PATCH] monitor: properly handle invalid fd/vhostfd from command line

2010-09-27 Thread Michael S. Tsirkin
On Mon, Sep 27, 2010 at 03:52:44PM +0800, Jason Wang wrote: > monitor_get_fd() may also be used to parse fd or vhostfd from command line, so > we need to check whether the pointer of mon is NULL to avoid segmentation > fault > when user pass invalid name of fd or vhostfd. > > Signed-off-by: Jason

[Qemu-devel] Re: [PATCH v3 08/13] pcie root port: implement pcie root port.

2010-09-27 Thread Michael S. Tsirkin
On Mon, Sep 27, 2010 at 03:22:43PM +0900, Isaku Yamahata wrote: > On Sun, Sep 26, 2010 at 02:50:42PM +0200, Michael S. Tsirkin wrote: > > On Fri, Sep 24, 2010 at 02:38:09PM +0900, Isaku Yamahata wrote: > > > On Wed, Sep 22, 2010 at 01:25:59PM +0200, Michael S. Tsirkin wrote: > > > > > > > > +PCIES

[Qemu-devel] Re: [PATCH v3 06/13] pcie/aer: helper functions for pcie aer capability.

2010-09-27 Thread Michael S. Tsirkin
On Mon, Sep 27, 2010 at 03:03:24PM +0900, Isaku Yamahata wrote: > On Sun, Sep 26, 2010 at 02:46:51PM +0200, Michael S. Tsirkin wrote: > > > > > +static inline void pcie_aer_errmsg(PCIDevice *dev, const > > > > > PCIE_AERErrMsg *msg) > > > > > +{ > > > > > +assert(pci_is_express(dev)); > > > >

Re: [Qemu-devel] [PATCH 6/7] qed: Read/write support

2010-09-27 Thread Stefan Hajnoczi
On Mon, Sep 27, 2010 at 11:12 AM, Avi Kivity wrote: >  On 09/23/2010 05:41 PM, Stefan Hajnoczi wrote: >> >> This patch implements the read/write state machine.  Operations are >> fully asynchronous and multiple operations may be active at any time. >> >> Allocating writes are serialized to make me

Re: [Qemu-devel] [PATCH 0/7] qed: Add QEMU Enhanced Disk format

2010-09-27 Thread Stefan Hajnoczi
On Mon, Sep 27, 2010 at 11:13 AM, Avi Kivity wrote: >  On 09/23/2010 05:41 PM, Stefan Hajnoczi wrote: >> >> QEMU Enhanced Disk format is a disk image format that forgoes features >> found in qcow2 in favor of better levels of performance and data >> integrity.  Due to its simpler on-disk layout, i

Re: [Qemu-devel] [PATCH 0/7] qed: Add QEMU Enhanced Disk format

2010-09-27 Thread Avi Kivity
On 09/23/2010 05:41 PM, Stefan Hajnoczi wrote: QEMU Enhanced Disk format is a disk image format that forgoes features found in qcow2 in favor of better levels of performance and data integrity. Due to its simpler on-disk layout, it is possible to safely perform metadata updates more efficiently

Re: [Qemu-devel] [PATCH 6/7] qed: Read/write support

2010-09-27 Thread Avi Kivity
On 09/23/2010 05:41 PM, Stefan Hajnoczi wrote: This patch implements the read/write state machine. Operations are fully asynchronous and multiple operations may be active at any time. Allocating writes are serialized to make metadata updates consistent. For example, two write requests to the s

[Qemu-devel] Re: [PATCH 2/2] trace: avoid unnecessary recompilation if nothing changed

2010-09-27 Thread Paolo Bonzini
On 09/27/2010 10:32 AM, Markus Armbruster wrote: > Why the conditional? cmp -s fails fine when argument files don't exist. > > Note that common versions of make including GNU Make do not stat a > rule's target to check whether the rule changed it. Instead, they > assume it changed, and remake ev

Re: [Qemu-devel] [PATCH 0/7] qed: Add QEMU Enhanced Disk format

2010-09-27 Thread Avi Kivity
On 09/23/2010 05:41 PM, Stefan Hajnoczi wrote: Later patches will address the following points: * Fine-grained L2 cache to allow for better request parallelism. Allocating write requests are currently serialized. This will also fix the corner case where a read request to the same sec

Re: [Qemu-devel] [PATCH 2/2] trace: avoid unnecessary recompilation if nothing changed

2010-09-27 Thread Markus Armbruster
Blue Swirl writes: > Add logic to detect changes in generated files. If the old > and new files are identical, don't touch the generated file. > This avoids a lot of churn since many files depend on trace.h. > > Signed-off-by: Blue Swirl > --- > Makefile | 18 -- > 1 files cha

[Qemu-devel] [PATCH] monitor: properly handle invalid fd/vhostfd from command line

2010-09-27 Thread Jason Wang
monitor_get_fd() may also be used to parse fd or vhostfd from command line, so we need to check whether the pointer of mon is NULL to avoid segmentation fault when user pass invalid name of fd or vhostfd. Signed-off-by: Jason Wang --- monitor.c |4 1 files changed, 4 insertions(+), 0 de