[Qemu-devel] [PATCH] multiboot: Support commas in module parameters

2011-06-16 Thread Adam Lackorzynski
Support commas in the parameter list of multiboot modules, by using double commas (via get_opt_value()). Signed-off-by: Adam Lackorzynski --- hw/multiboot.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hw/multiboot.c b/hw/multiboot.c index 6e6cfb9..24

Re: [Qemu-devel] [PATCH] virtio-serial: Fix segfault on guest boot

2011-06-16 Thread Amit Shah
On (Thu) 16 Jun 2011 [13:38:49], Luiz Capitulino wrote: > If I start qemu with: > > # qemu -hda disks/test.img -enable-kvm -m 1G -snapshot \ > -device virtio-serial \ > -chardev socket,host=localhost,port=1234,server,nowait,id=foo \ > -device virtserialport,chardev=foo,nam

[Qemu-devel] Image streaming gives live block copy for free (and vice versa)

2011-06-16 Thread Stefan Hajnoczi
Perhaps someone has been saying this all along but I want to spell it out that image streaming and live block copy are equivalent in theory. I just realized this last night.  In practice we might choose one implementation or two different ones for performance reasons. If any of these are unclear p

[Qemu-devel] [PATCH] do not reset no_shutdown after we shutdown the vm

2011-06-16 Thread Wen Congyang
Daniel P. Berrange sent a libvirt's patch to support reboots with the QEMU driver. He implements it in json model like this: 1. add -no-shutdown in the qemu's option: qemu -no-shutdown 2. shutdown the vm by monitor command system_powerdown 3. wait for shutdown event 4. reset the vm by monit

Re: [Qemu-devel] [PATCH] fix the return value of rtl8139_can_receive()

2011-06-16 Thread Wen Congyang
At 06/16/2011 06:39 PM, Kevin Wolf Write: > Am 16.06.2011 10:23, schrieb Wen Congyang: >> If rtl8139_can_receive() returns 1, it means that the nic can receive packet, >> otherwise, it means the nic can not receive packet. >> >> If !s->clock_enabled or !rtl8139_receiver_enabled(s), it means that th

[Qemu-devel] [PATCH] do not send packet to nic if the packet will be dropped by nic

2011-06-16 Thread Wen Congyang
If !s->clock_enabled or !rtl8139_receiver_enabled(s), it means that the nic will drop all packets from host. So qemu will keep getting packets from host and wasting CPU on dropping packets. This seems worse than packets that should be dropped but aren't. Signed-off-by: Wen Congyang --- hw/rtl81

[Qemu-devel] [PATCH] vgabios: Sync vbetables-gen.c with the version in http://cvs.savannah.gnu.org/viewvc/?root=vgabios, which has additional resolutions for HDTVs.

2011-06-16 Thread Tristan Schmelcher
I sent a patch to the vgabios project at http://savannah.nongnu.org/cvs/?group=vgabios to add HDTV resolutions a while back and they have accepted it. This patch is to make the same change to git://git.qemu.org/vgabios.git. It adds 720p, 1080p, and the less common 1280x768. These are very handy for

[Qemu-devel] [PATCH] PPC: move TLBs to their own arrays

2011-06-16 Thread Alexander Graf
Until now, we've created a union over multiple different TLB types and allocated that union. While it's a waste of memory (and cache) to allocate TLB information for a TLB type with much information when you only need little, it also inflicts another issue. With the new KVM API, we can now share t

Re: [Qemu-devel] [PATCH v5 3/5] guest agent: add guest agent RPCs/commands

2011-06-16 Thread Luiz Capitulino
On Tue, 14 Jun 2011 15:06:23 -0500 Michael Roth wrote: > This adds the initial set of QMP/QAPI commands provided by the guest > agent: > > guest-sync > guest-ping > guest-info > guest-shutdown > guest-file-open > guest-file-read > guest-file-write > guest-file-seek > guest-file-close > guest-fsf

Re: [Qemu-devel] [patch 4/4] QEMU live block copy

2011-06-16 Thread Stefan Hajnoczi
On Wed, Jun 15, 2011 at 6:14 PM, Marcelo Tosatti wrote: A couple of comments, nothing critical. Rest of the series looks good. Bulk phase is really the dirty phase with all blocks starting dirty (except !bdrv_is_allocate() blocks cleared if shared source). There may not be much benefit in unify

Re: [Qemu-devel] vgabios maintenance status

2011-06-16 Thread Andreas Färber
Am 16.06.2011 um 11:08 schrieb Gerd Hoffmann: On 06/16/11 10:13, Tristan Schmelcher wrote: Does anyone know the maintenance status of vgabios? I have a patch that I'd like to get upstreamed into vgabios, but the project at http://savannah.nongnu.org/projects/vgabios seems to be dead, Indeed.

Re: [Qemu-devel] vgabios maintenance status

2011-06-16 Thread Tristan Schmelcher
On Jun 16, 2011 11:41 AM, "Andreas Färber" wrote: > > Am 16.06.2011 um 11:08 schrieb Gerd Hoffmann: > > >> On 06/16/11 10:13, Tristan Schmelcher wrote: >>> >>> Does anyone know the maintenance status of vgabios? I have a patch >>> that I'd like to get upstreamed into vgabios, but the project at >>

Re: [Qemu-devel] [PATCH v5 1/5] guest agent: command state class

2011-06-16 Thread Luiz Capitulino
On Tue, 14 Jun 2011 15:06:21 -0500 Michael Roth wrote: > > Signed-off-by: Michael Roth > --- > qga/guest-agent-command-state.c | 73 > +++ > qga/guest-agent-core.h | 25 + It's not possible to build this. I see that the last patch h

[Qemu-devel] part time / free lance graphic designer

2011-06-16 Thread Jalurtech Sales Team
We need a part time / free lance graphic designer Work from home, not necessary to come office student / or fresh graduates preferable please call Ros +60123813321 or email to market...@pmonline.asia Note: To ensure emails from us end up in your Inbox, please add us to

Re: [Qemu-devel] [PATCH v5 1/5] guest agent: command state class

2011-06-16 Thread Michael Roth
On 06/16/2011 01:29 PM, Luiz Capitulino wrote: On Tue, 14 Jun 2011 15:06:21 -0500 Michael Roth wrote: Signed-off-by: Michael Roth --- qga/guest-agent-command-state.c | 73 +++ qga/guest-agent-core.h | 25 + It's not possible to

[Qemu-devel] [PATCH] PPC: E500: Use MAS registers instead of internal TLB representation

2011-06-16 Thread Alexander Graf
The natural format for e500 cores to do TLB manipulation with are the MAS registers. Instead of converting them into some internal representation and back again when the guest reads them, we can just keep the data identical to the way the guest passed it to us. The main advantage of this approach

Re: [Qemu-devel] [PATCH v5 1/5] guest agent: command state class

2011-06-16 Thread Luiz Capitulino
On Thu, 16 Jun 2011 13:46:31 -0500 Michael Roth wrote: > On 06/16/2011 01:29 PM, Luiz Capitulino wrote: > > On Tue, 14 Jun 2011 15:06:21 -0500 > > Michael Roth wrote: > > > >> > >> Signed-off-by: Michael Roth > >> --- > >> qga/guest-agent-command-state.c | 73 > >> ++

[Qemu-devel] [PATCH] virtio-serial: Fix segfault on guest boot

2011-06-16 Thread Luiz Capitulino
If I start qemu with: # qemu -hda disks/test.img -enable-kvm -m 1G -snapshot \ -device virtio-serial \ -chardev socket,host=localhost,port=1234,server,nowait,id=foo \ -device virtserialport,chardev=foo,name=org.qemu.guest_agent I get a segfault when booting a Fedora 14 gu

[Qemu-devel] [PATCH 1/2] Fix automatically assigned network names for netdev

2011-06-16 Thread Markus Armbruster
If a network client doesn't have a name, we make one up, with assign_name(). assign_name() creates a name MODEL.NUM, where MODEL is the client's model, and NUM is the number of MODELs that already exist. Bug: it misses clients that are not on a VLAN, i.e. netdevs and the NICs using them: $ q

[Qemu-devel] [PATCH 0/8] linux-user: Fix gcc 4.6 compile warnings

2011-06-16 Thread Peter Maydell
This is a collection of patches which fix the gcc 4.6 compile warnings in the linux-user code. Mostly they're from Juan's earlier patchset, in some cases with some minor tweaks by me as per review comments on that patchset. The last three I fixed in a different way so those are new patches. Sorry

[Qemu-devel] how to verify virtio is being used?

2011-06-16 Thread al pat
I have posted this on kvm alias, but have not heard back. seeing some inputs. seeking some pointers/guidance as to how to determine virtio is being used... I configured a VM to use block device with if=virtio (create a 1GB disk using dd I exported this disk to the VM and am now doing scp from hos

[Qemu-devel] [PATCH 8/8] linux-user/signal.c: Remove unused fenab

2011-06-16 Thread Peter Maydell
Remove fenab as it is only written, never used. Add a FIXME comment about the discrepancy between our behaviour and that of the Linux kernel for this routine. Signed-off-by: Peter Maydell --- linux-user/signal.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/linux

[Qemu-devel] [PATCH 3/8] linux-user: syscall should use sanitized arg1

2011-06-16 Thread Peter Maydell
From: Juan Quintela Looking at the other architectures, we should be using "how" not "arg1". Signed-off-by: Juan Quintela [peter.mayd...@linaro.org: remove unnecessary initialisation of how] Signed-off-by: Peter Maydell --- linux-user/syscall.c |4 ++-- 1 files changed, 2 insertions(+), 2

Re: [Qemu-devel] [PATCH v5 2/5] guest agent: qemu-ga daemon

2011-06-16 Thread Luiz Capitulino
On Tue, 14 Jun 2011 15:06:22 -0500 Michael Roth wrote: > This is the actual guest daemon, it listens for requests over a > virtio-serial/isa-serial/unix socket channel and routes them through > to dispatch routines, and writes the results back to the channel in > a manner similar to QMP. > > A s

[Qemu-devel] [PATCH 1/8] linuxload: id_change was a write only variable

2011-06-16 Thread Peter Maydell
From: Juan Quintela Signed-off-by: Juan Quintela Signed-off-by: Peter Maydell --- linux-user/linuxload.c | 25 + 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c index ac8c486..62ebc7e 100644 --- a/linux-u

[Qemu-devel] [PATCH] PPC: 440: Use 440 style MMU as default, so Qemu knows the MMU type

2011-06-16 Thread Alexander Graf
We have some KVM interaction code in Qemu that tries to be clever and ignore some capabilities when running on BookE style MMUs. Unfortunately, the default CPU bamboo was defaulting to was not a BookE-style MMU, resulting in the check to fail. With this patch, guests can run again on 440 with -ena

[Qemu-devel] [Bug 798258] Re: System hang when compiling QEMU on ARM host

2011-06-16 Thread specx2
Using the ./configure --extra-cflags=-fno-var-tracking gave the following result: ... CCi386-softmmu/translate.o cc1: out of memory allocating 14633640 bytes after a total of 60088320 bytes make[1]: *** [translate.o] Error 1 make: *** [subdir-i386-softmmu] Error 2 -- You received this bug n

[Qemu-devel] [PATCH 2/2] Fix netdev name lookup in -device, device_add, netdev_del

2011-06-16 Thread Markus Armbruster
qemu_find_netdev() looks up members of non_vlan_clients by name. It happily returns the first match. Trouble is the names need not be unique. non_vlan_clients contains host parts (netdevs) and guest parts (NICs). Netdevs have unique names: a netdev's name is a (mandatory) qemu_netdev_opts ID, a

[Qemu-devel] [PATCH 0/2] netdev fixes

2011-06-16 Thread Markus Armbruster
Markus Armbruster (2): Fix automatically assigned network names for netdev Fix netdev name lookup in -device, device_add, netdev_del net.c | 19 +++ 1 files changed, 15 insertions(+), 4 deletions(-) -- 1.7.2.3

Re: [Qemu-devel] Aboriginal Linux 1.0.2: linux-2.6.39 system images for a dozen targets.

2011-06-16 Thread Mulyadi Santosa
On Thu, Jun 16, 2011 at 19:34, Rob Landley wrote: > Aboriginal Linux's motto is "we cross compile so you don't have to". Hi Rob Thanks for your kind work I began to learn about building cross compiler and found your workit's like I found a good hint. -- regards, Mulyadi Santosa Freela

[Qemu-devel] [PATCH 5/8] flatload: memp was a write-only variable

2011-06-16 Thread Peter Maydell
From: Juan Quintela Signed-off-by: Juan Quintela Signed-off-by: Peter Maydell --- linux-user/flatload.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/linux-user/flatload.c b/linux-user/flatload.c index 6fb78f5..1062da3 100644 --- a/linux-user/flatload.c +++ b/linux

[Qemu-devel] [PATCH 2/3] pci: export pci_unplug_device

2011-06-16 Thread stefano.stabellini
From: Stefano Stabellini pci_unplug_device is needed by the xen_platform device to perfom dynamic nic unplug. Signed-off-by: Stefano Stabellini --- hw/pci.c |2 +- hw/pci.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 1d297d6..679e976 1

[Qemu-devel] [PATCH 6/8] linux-user: Bump do_syscall() up to 8 syscall arguments

2011-06-16 Thread Peter Maydell
On 32 bit MIPS a few syscalls have 7 arguments, and so to call them via NR_syscall the guest needs to be able to pass 8 arguments to do_syscall(). Raise the number of arguments do_syscall() takes accordingly. This fixes some gcc 4.6 compiler warnings about arg7 and arg8 variables being set and nev

[Qemu-devel] compile/make error on 64 bit linux

2011-06-16 Thread SlinuX
LINK qemu-img CCqemu-io.o CCcmd.o LINK qemu-io CClibhw64/vl.o /home/slinux/Downloads/qemu-0.14.1/vl.c: In function 'main': /home/slinux/Downloads/qemu-0.14.1/vl.c:1990:37: error: 'CONFIG_QEMU_CONFDIR' undeclared (first use in this function) /home/slinux/Downloads/qemu-0.14

[Qemu-devel] [PATCH 7/8] linux-user/signal.c: Remove only-ever-set variable fpu_save_addr

2011-06-16 Thread Peter Maydell
Move the access of fpu_save into the commented out skeleton code for restoring FPU registers on SPARC sigreturn, thus silencing a gcc 4.6 "variable set but never used" warning. (This doesn't affect the calculation of 'err' because in fact __get_user() can never fail.) Signed-off-by: Peter Maydell

[Qemu-devel] [PATCH 3/3] xen: implement unplug protocol in xen_platform

2011-06-16 Thread stefano.stabellini
From: Stefano Stabellini The unplug protocol is necessary to support PV drivers in the guest: the drivers expect to be able to "unplug" emulated disks and nics before initializing the Xen PV interfaces. It is responsibility of the guest to make sure that the unplug is done before the emulated dev

[Qemu-devel] [PATCH 2/8] syscall: really return ret code

2011-06-16 Thread Peter Maydell
From: Juan Quintela We assign ret with the error code, but then return 0 unconditionally. Signed-off-by: Juan Quintela Signed-off-by: Peter Maydell --- linux-user/syscall.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscal

[Qemu-devel] [Bug 798258] Re: System hang when compiling QEMU on ARM host

2011-06-16 Thread Peter Maydell
This is a gcc bug (fixed in newer versions of gcc), which causes it to use much more memory than it should do when compiling certain files. You can work around it by configuring with ./configure --extra-cflags=-fno-var-tracking (this will result in worse debugging information, but if you want to

Re: [Qemu-devel] [RFC][PATCH] Register Linux dyntick timer as per-thread signal

2011-06-16 Thread Alexandre Raymond
Hi Jan, On Thu, Jun 16, 2011 at 5:31 AM, Jan Kiszka wrote: > Ingo Molnar pointed out that sending the timer signal to the whole > process, just blocking it everywhere, is suboptimal with an increasing > number of threads. QEMU is using this pattern so far. I am not familiar with this code, but d

[Qemu-devel] [PATCH 4/8] flatload: end_code was only used in a debug message

2011-06-16 Thread Peter Maydell
From: Juan Quintela Just unfold its definition in only use. Signed-off-by: Juan Quintela [peter.mayd...@linaro.org: fixed typo in the debug code, added parentheses to fix precedence issue] Signed-off-by: Peter Maydell --- linux-user/flatload.c |5 ++--- 1 files changed, 2 insertions(+), 3

[Qemu-devel] [PATCH RESEND 1/3] xen: Add the Xen platform pci device

2011-06-16 Thread stefano.stabellini
From: Steven Smith Introduce a new emulated PCI device, specific to fully virtualized Xen guests. The device is necessary for PV on HVM drivers to work. Signed-off-by: Steven Smith Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- Makefile.target |2 + hw/hw.h

[Qemu-devel] [PATCH] arm-semi: Provide access to CLI arguments passed through the "-append" option

2011-06-16 Thread Cédric VINCENT
This patch basically adapts the new semi-hosting command-line support -- introduced by Wolfgang Schildbach in the commit 2e8785ac -- for use in system-mode. Note that the "arm_cmdline_len" and "host_cmdline_len" variables were renamed respectively "input_size" and "output_size" because: * in

[Qemu-devel] [PATCH 0/3] xen: support PV on HVM guests

2011-06-16 Thread Stefano Stabellini
Hi all, this small patch series implements the components needed by PV on HVM guests to boot; in particular the "unplug protocol" to dynamically unplug emulated disks and nics when the guest starts. The patch to implement the Xen platform device has been sent to the list several times before by An

Re: [Qemu-devel] Image streaming and live block copy (was: [PATCH 00/13] QED image streaming)

2011-06-16 Thread Marcelo Tosatti
On Thu, Jun 16, 2011 at 11:38:48AM -0300, Marcelo Tosatti wrote: > > People seem to agree on this, and the reason that I've heard why we > > should merge the existing code instead is downstream time pressure. That > > may be a valid reason for downstreams to add such code, but is taking > > such co

[Qemu-devel] Apple Remote Desktop - macosx built-in client and qemu -vnc

2011-06-16 Thread Amitava Shee
Please redirect me if this is not the appropriate forum to discuss this topic. I have been spawning qemu using -vnc :3 and using an ssh tunnel to view the console from my macosx client. "Chicken of the VNC" is able to work over the tunnel. However, the built-in "Apple Remote Desktop" client is una

Re: [Qemu-devel] Image streaming and live block copy (was: [PATCH 00/13] QED image streaming)

2011-06-16 Thread Marcelo Tosatti
On Thu, Jun 16, 2011 at 02:35:37PM +0200, Kevin Wolf wrote: > Am 14.06.2011 20:18, schrieb Stefan Hajnoczi: > > Overview > > > > > > This patch series adds image streaming support for QED image files. Other > > image formats can also be supported in the future. > > > > Image streaming p

Re: [Qemu-devel] Image streaming and live block copy

2011-06-16 Thread Marcelo Tosatti
On Thu, Jun 16, 2011 at 03:08:30PM +0200, Kevin Wolf wrote: > Am 16.06.2011 14:49, schrieb Avi Kivity: > > On 06/16/2011 03:35 PM, Kevin Wolf wrote: > >> * Image streaming is a normal image file plus copy-on-read plus a > >> background task that copies data from the source image > > > > Or a block

[Qemu-devel] [Bug 798258] [NEW] System hang when compiling QEMU on ARM host

2011-06-16 Thread specx2
Public bug reported: Configuration: Ubuntu 10.10 Linux 2.6.32.9 GCC 4.4.5 Host is based on ARM7 Processor (Qualcomm Snapdragon QSD8250) ./configure make After the lines ... i386-softmmu/translate.o The system is completely freezes I guess that GCC uses all the memory?

Re: [Qemu-devel] [PATCH] qemu-img: Add cache command line option

2011-06-16 Thread Federico Simoncelli
- Original Message - > From: "Christoph Hellwig" > To: "Federico Simoncelli" > Cc: k...@vger.kernel.org, kw...@redhat.com, qemu-devel@nongnu.org, > a...@redhat.com > Sent: Thursday, June 16, 2011 4:28:09 PM > Subject: Re: [Qemu-devel] [PATCH] qemu-img: Add cache command line option > On

Re: [Qemu-devel] [PATCH 1/2] Support for MIPS64 user mode emulation

2011-06-16 Thread Richard Henderson
On 06/15/2011 11:14 PM, Khansa Butt wrote: > for my MIPS64 bit statically linked ELF the variables loaddr and hiaddr have > 36 bit values. > for probing guest_base these values are rounded to 32 bit as my underlying OS > is 32 bit Fedore13 Those last 8 words are the Real Problem. We don't suppo

Re: [Qemu-devel] [RFC][PATCH] Register Linux dyntick timer as per-thread signal

2011-06-16 Thread Richard Henderson
On 06/16/2011 02:31 AM, Jan Kiszka wrote: > ev.sigev_value.sival_int = 0; > -ev.sigev_notify = SIGEV_SIGNAL; > ev.sigev_signo = SIGALRM; > +#ifdef SIGEV_THREAD_ID > +if (qemu_signalfd_available()) { > +ev.sigev_notify = SIGEV_THREAD_ID; > +ev._sigev_un._tid = qemu_

Re: [Qemu-devel] [PATCH] qemu-img: Add cache command line option

2011-06-16 Thread Kevin Wolf
Am 16.06.2011 16:28, schrieb Christoph Hellwig: > On Wed, Jun 15, 2011 at 09:46:10AM -0400, Federico Simoncelli wrote: >> qemu-img currently writes disk images using writeback and filling >> up the cache buffers which are then flushed by the kernel preventing >> other processes from accessing the s

Re: [Qemu-devel] [PATCH v2] Add support for fd: protocol

2011-06-16 Thread Corey Bryant
On 06/15/2011 03:12 PM, Blue Swirl wrote: On Tue, Jun 14, 2011 at 4:31 PM, Corey Bryant wrote: > sVirt provides SELinux MAC isolation for Qemu guest processes and their > corresponding resources (image files). sVirt provides this support > by labeling guests and resources with security lab

[Qemu-devel] Invitation to connect on LinkedIn

2011-06-16 Thread Ashish Gupta via LinkedIn
LinkedIn Ashish Gupta requested to add you as a connection on LinkedIn: -- Jiajun, I'd like to add you to my professional network on LinkedIn. - Ashish Accept invitation from Ashish Gupta http://www.linkedin.com/e/-kkb1ec-goztd2rm-

Re: [Qemu-devel] Image streaming and live block copy

2011-06-16 Thread Stefan Hajnoczi
On Thu, Jun 16, 2011 at 11:52:43AM -0300, Marcelo Tosatti wrote: This approach does not use the backing file feature? > blkstream block driver: > > - Maintain in memory whether given block is allocated in local image, > if not, read from remote, write to local. Set block as local. > Local and rem

Re: [Qemu-devel] Base server as file server.

2011-06-16 Thread arun.sasi1
No here my scenario is File server is in Base server. Ldap,DNS,DHCP is in KVM-VM So I want to know what will be the my file server performance. My confusion. Installed KVM on file server. So all paging and memory will allocate to Vm`s... Thanks, -Arun -Original Message- From: Stefan H

[Qemu-devel] PROMOS JUIN BIGBILLOU.FR

2011-06-16 Thread BIGBILLOU . FR
Si la newsletter ne s'affiche pas correctement sur votre écran allez à cette adresse: http://www.dhinformatique.fr/mailing/bigbillou_10062011/bigbillou_10062011.php?email=qemu-devel@nongnu.org si vous ne souhaitez plus recevoir de message de BIGBILLOU.FR allez à cette adresse: http://www.dhinfor

Re: [Qemu-devel] [PATCH] qemu-img: Add cache command line option

2011-06-16 Thread Christoph Hellwig
On Wed, Jun 15, 2011 at 09:46:10AM -0400, Federico Simoncelli wrote: > qemu-img currently writes disk images using writeback and filling > up the cache buffers which are then flushed by the kernel preventing > other processes from accessing the storage. > This is particularly bad in cluster environ

Re: [Qemu-devel] [RFC][PATCH] Register Linux dyntick timer as per-thread signal

2011-06-16 Thread Ingo Molnar
* Jan Kiszka wrote: > Ingo Molnar pointed out that sending the timer signal to the whole > process, just blocking it everywhere, is suboptimal with an increasing > number of threads. QEMU is using this pattern so far. > > But Linux provides a (non-portable) way to restrict the signal to a > sin

Re: [Qemu-devel] [RFC] qxl: set mm_time in vga update

2011-06-16 Thread Alon Levy
On Thu, Jun 16, 2011 at 03:34:52PM +0200, Gerd Hoffmann wrote: > On 06/15/11 20:44, Alon Levy wrote: > >This fixes a problem where on windows 7 startup phase, before the qxl driver > >is loaded, the drawables are sufficiently large and video like to trigger a > >stream, but the lack of a filled mm

Re: [Qemu-devel] Image streaming and live block copy

2011-06-16 Thread Kevin Wolf
Am 16.06.2011 15:10, schrieb Anthony Liguori: > On 06/16/2011 07:35 AM, Kevin Wolf wrote: >> To summarise what both things are about: >> >> * Image streaming is a normal image file plus copy-on-read plus a >> background task that copies data from the source image >> * Live block copy is a block-mir

Re: [Qemu-devel] [PATCH] hw/usb-ohci.c: Fix handling of remote wakeup corner cases

2011-06-16 Thread Gerd Hoffmann
On 06/15/11 19:22, Peter Maydell wrote: Correct a number of minor errors in the OHCI wakeup implementation: * when the port is suspended but the controller is not, raise RHSC * when the controller is suspended but the port is not, raise RD * when the controller is suspended, move it to resu

Re: [Qemu-devel] Image streaming and live block copy

2011-06-16 Thread Avi Kivity
On 06/16/2011 04:08 PM, Kevin Wolf wrote: Am 16.06.2011 14:49, schrieb Avi Kivity: > On 06/16/2011 03:35 PM, Kevin Wolf wrote: >> * Image streaming is a normal image file plus copy-on-read plus a >> background task that copies data from the source image > > Or a block-mirror started in degrad

Re: [Qemu-devel] [RFC] qxl: set mm_time in vga update

2011-06-16 Thread Gerd Hoffmann
On 06/15/11 20:44, Alon Levy wrote: This fixes a problem where on windows 7 startup phase, before the qxl driver is loaded, the drawables are sufficiently large and video like to trigger a stream, but the lack of a filled mm time field triggers a warning in spice-gtk. Looks good to me. Why thi

Re: [Qemu-devel] [PATCH] fix the return value of rtl8139_can_receive()

2011-06-16 Thread Michael S. Tsirkin
On Thu, Jun 16, 2011 at 12:39:51PM +0200, Kevin Wolf wrote: > Am 16.06.2011 10:23, schrieb Wen Congyang: > > If rtl8139_can_receive() returns 1, it means that the nic can receive > > packet, > > otherwise, it means the nic can not receive packet. > > > > If !s->clock_enabled or !rtl8139_receiver_

[Qemu-devel] [PATCHv3] qemu-img: Add cache command line option

2011-06-16 Thread Federico Simoncelli
qemu-img currently writes disk images using writeback and filling up the cache buffers which are then flushed by the kernel preventing other processes from accessing the storage. This is particularly bad in cluster environments where time-based algorithms might be in place and accessing the storage

Re: [Qemu-devel] Image streaming and live block copy

2011-06-16 Thread Avi Kivity
On 06/16/2011 03:35 PM, Kevin Wolf wrote: * Image streaming is a normal image file plus copy-on-read plus a background task that copies data from the source image Or a block-mirror started in degraded mode. * Live block copy is a block-mirror of two normal image files plus a background task t

Re: [Qemu-devel] Base server as file server.

2011-06-16 Thread Stefan Hajnoczi
On Thu, Jun 16, 2011 at 03:26:25PM +0530, arun.sa...@wipro.com wrote: > Will I get complete performance on file server since it is in Base > server where KVM kernel installed... Yes, applications running on the host will performance as normal. Remember that virtual machines consume CPU, memory, an

[Qemu-devel] Aboriginal Linux 1.0.2: linux-2.6.39 system images for a dozen targets.

2011-06-16 Thread Rob Landley
Aboriginal Linux's motto is "we cross compile so you don't have to". Download prebuilt binary system images that boot under qemu, with native toolchains so you can compile your own software, from: http://landley.net/aboriginal/downloads/binaries The supported target list in this release is:

Re: [Qemu-devel] Image streaming and live block copy

2011-06-16 Thread Kevin Wolf
Am 16.06.2011 14:49, schrieb Avi Kivity: > On 06/16/2011 03:35 PM, Kevin Wolf wrote: >> * Image streaming is a normal image file plus copy-on-read plus a >> background task that copies data from the source image > > Or a block-mirror started in degraded mode. At least not in the same configuratio

Re: [Qemu-devel] [PATCH] fix the return value of rtl8139_can_receive()

2011-06-16 Thread Kevin Wolf
Am 16.06.2011 10:23, schrieb Wen Congyang: > If rtl8139_can_receive() returns 1, it means that the nic can receive packet, > otherwise, it means the nic can not receive packet. > > If !s->clock_enabled or !rtl8139_receiver_enabled(s), it means that the nic > can not receive packet. So the return v

Re: [Qemu-devel] [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability

2011-06-16 Thread M. Mohan Kumar
On Wed, Jun 15, 2011 at 04:24:12PM +0100, Stefan Hajnoczi wrote: > On Tue, Jun 14, 2011 at 9:12 AM, M. Mohan Kumar wrote: > > [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability > > > > In passthrough security model, following a symbolic link in the server > > side could result i

[Qemu-devel] Image streaming and live block copy (was: [PATCH 00/13] QED image streaming)

2011-06-16 Thread Kevin Wolf
Am 14.06.2011 20:18, schrieb Stefan Hajnoczi: > Overview > > > This patch series adds image streaming support for QED image files. Other > image formats can also be supported in the future. > > Image streaming populates the file in the background while the guest is > running. This make

Re: [Qemu-devel] Image streaming and live block copy

2011-06-16 Thread Anthony Liguori
On 06/16/2011 07:35 AM, Kevin Wolf wrote: Am 14.06.2011 20:18, schrieb Stefan Hajnoczi: Overview This patch series adds image streaming support for QED image files. Other image formats can also be supported in the future. Image streaming populates the file in the background while the

Re: [Qemu-devel] [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability

2011-06-16 Thread M. Mohan Kumar
On Wed, Jun 15, 2011 at 10:10:00PM +0200, Andreas Färber wrote: > Am 14.06.2011 um 10:12 schrieb M. Mohan Kumar: > >> [RFC PATCH] virtio-9p: Use clone approach to fix TOCTOU vulnerability > > Subject doesn't need to be duplicated. Ok > >> In passthrough security model, following a symbolic link in

[Qemu-devel] Base server as file server.

2011-06-16 Thread arun.sasi1
Hello Stefan, I have a small query about virtualization. Need to install file server on Base server and include some virtual machines on that i.e. DNS/DHCP/LDAP etc. Will I get complete performance on file server since it is in Base server where KVM kernel installed... Thanks, -Arun

[Qemu-devel] [PATCH] fix the return value of rtl8139_can_receive()

2011-06-16 Thread Wen Congyang
If rtl8139_can_receive() returns 1, it means that the nic can receive packet, otherwise, it means the nic can not receive packet. If !s->clock_enabled or !rtl8139_receiver_enabled(s), it means that the nic can not receive packet. So the return value should be 0, not 1. Signed-off-by: Wen Congyang

Re: [Qemu-devel] [PATCH v2][uq/master] kvm: x86: Save/restore FPU OP, IP and DP

2011-06-16 Thread Christophe Fergeau
On Wed, Jun 15, 2011 at 03:17:26PM +0200, Jan Kiszka wrote: > These FPU states are properly maintained by KVM but not yet by TCG. So > far we unconditionally set them to 0 in the guest which may cause > state corruptions, though not with modern guests. And this one's fine too from a compilation po

Re: [Qemu-devel] [PATCH][uq/master] kvm: x86: Save/restore FPU OP, IP and DP

2011-06-16 Thread Christophe Fergeau
Hi Jan, On Sat, Jun 11, 2011 at 11:23:31AM +0200, Jan Kiszka wrote: > These FPU states are properly maintained by KVM but not yet by TCG. So > far we unconditionally set them to 0 in the guest which may cause > state corruptions - not only during migration. I can't judge whether the patch is corr

[Qemu-devel] [RFC][PATCH] Register Linux dyntick timer as per-thread signal

2011-06-16 Thread Jan Kiszka
Ingo Molnar pointed out that sending the timer signal to the whole process, just blocking it everywhere, is suboptimal with an increasing number of threads. QEMU is using this pattern so far. But Linux provides a (non-portable) way to restrict the signal to a single thread: Use SIGEV_THREAD_ID unl

Re: [Qemu-devel] vgabios maintenance status

2011-06-16 Thread Gerd Hoffmann
On 06/16/11 10:13, Tristan Schmelcher wrote: Does anyone know the maintenance status of vgabios? I have a patch that I'd like to get upstreamed into vgabios, but the project at http://savannah.nongnu.org/projects/vgabios seems to be dead, Indeed. Is vgabios just being maintained separately in

[Qemu-devel] Votre entretien de toiture. NOUVEAU SUR LE BASSIN

2011-06-16 Thread contact
Lettre d'information - VOTRE ENTRETIEN DE TOITURE. NOUVEAU SUR LE BASSIN  NOUVEAU SU

[Qemu-devel] [PATCH] PPC: Only set lower 32bits with mtmsr

2011-06-16 Thread Alexander Graf
As Nathan pointed out correctly, the mtmsr instruction does not modify the high 32 bits of MSR. It also doesn't matter if SF is set or not, the instruction always behaves the same. This patch moves it a bit closer to the spec. Reported-by: Nathan Whitehorn Signed-off-by: Alexander Graf --- tar

Re: [Qemu-devel] [Bug 797905] [NEW] virsh live migration

2011-06-16 Thread Stefan Hajnoczi
On Wed, Jun 15, 2011 at 9:35 PM, Marcus Paiva <797...@bugs.launchpad.net> wrote: > Public bug reported: > > Hi, > i do not manage to do a virsh migrate live command. > Using Ubuntu Server 10.04 x64 > > root@svr50abl:~# virsh list >  Id Nome                 Estado > -

[Qemu-devel] vgabios maintenance status

2011-06-16 Thread Tristan Schmelcher
Does anyone know the maintenance status of vgabios? I have a patch that I'd like to get upstreamed into vgabios, but the project at http://savannah.nongnu.org/projects/vgabios seems to be dead, with no activity on the vgabios-developers list in ages and no response to my patch email (http://lists.

Re: [Qemu-devel] [PATCH] CPU consumption optimization of 'qemu-img convert' using bdrv_is_allocated()

2011-06-16 Thread Dmitry Konishchev
On Wed, Jun 15, 2011 at 5:57 PM, Stefan Hajnoczi wrote: > Anyway, bdrv_getlength() will return the total_sectors value instead > of calling into raw-posix.c .bdrv_getlength().  That's why it should > be cheap. Yeah, I see it now after a closer look in the drivers code. It looks like I get this 9%

Re: [Qemu-devel] [patch 4/4] QEMU live block copy

2011-06-16 Thread Jiri Denemark
On Wed, Jun 15, 2011 at 14:14:07 -0300, Marcelo Tosatti wrote: > Index: qemu-block-copy/qmp-commands.hx > === > --- qemu-block-copy.orig/qmp-commands.hx > +++ qemu-block-copy/qmp-commands.hx ... > SQMP > +query-block-copy > +-