Re: [Qemu-devel] Disable PS/2 mouse

2010-06-10 Thread Dor Laor
On 06/09/2010 05:35 PM, Gerd Hoffmann wrote: Hi, with 0.12.4 it is still the case that a total idle vm takes about 6-8% of a 2.4GHz Xeon Core. I see that order of magitude too, no matter whenever usb is on or off. With older qemu and usbtablet it used to be up to 25%. Is it possible to dy

Re: [Qemu-devel] [PATCH] configure: add an option to disable vlans

2010-06-10 Thread Chris Webb
Markus Armbruster writes: > "Michael S. Tsirkin" writes: > > > Everyone ok with disabling vlans with no config option? > > Wrong question. You got to ask "anyone *not* ok with disabling vlans > with no config option?" We do use socket devices in the form -net nic,model=e1000,vlan=X,mac=MM

[Qemu-devel] [Bug 586420] Re: WinXP install cd hangs at boot time if machine started with floppy

2010-06-10 Thread Jes Sorensen
I obviously missed the Gentoo part. Anyway, if QEMU complains about not being able to find bios.bin, then it is because it is looking in the wrong place, either due to you specifying the wrong -L or because the default location of the new build is looking in the wrong place. However looking at eve

Re: [Qemu-devel] Disable PS/2 mouse

2010-06-10 Thread Gerd Hoffmann
On 06/10/2010 09:12 AM, Dor Laor wrote: On 06/09/2010 05:35 PM, Gerd Hoffmann wrote: Hi, with 0.12.4 it is still the case that a total idle vm takes about 6-8% of a 2.4GHz Xeon Core. I see that order of magitude too, no matter whenever usb is on or off. With older qemu and usbtablet it used

[Qemu-devel] [Bug 538908] Re: qemu-system-cris crashes after a few seconds

2010-06-10 Thread Ken Sharp
** Summary changed: - qemu-cris crashes after a few seconds + qemu-system-cris crashes after a few seconds ** Tags added: qemu-system-cris -- qemu-system-cris crashes after a few seconds https://bugs.launchpad.net/bugs/538908 You received this bug notification because you are a member of qemu-

[Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command

2010-06-10 Thread xudong
Public bug reported: Host OS: ia32e kvm.git Commit:cf18597a046413e9f0dd8df3ad6715a88766be51 qemu-kvm Commit:3f505ec990599aeb960ed7031a2bb7b233ea4927 Host Kernel Version:2.6.35-rc2+ Hardware:Westmere-HEDT Bug detailed description: -- when use "qemu-img" command to create q

[Qemu-devel] Re: [PATCH] sparc32 esp fix spurious interrupts in chip reset

2010-06-10 Thread Artyom Tarasenko
2010/6/9 Blue Swirl : > On Fri, Jun 4, 2010 at 8:30 PM, Artyom Tarasenko > wrote: >> 2010/6/4 Blue Swirl : >>> On Tue, Jun 1, 2010 at 8:16 PM, Artyom Tarasenko >>> wrote: 2010/6/1 Blue Swirl : > On Tue, Jun 1, 2010 at 7:56 PM, Artyom Tarasenko > wrote: >> 2010/6/1 Blue Swirl : >

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Gerd Hoffmann
I may have been a bit misleading here. What we really want to do is use the same matching algorithm as is used by the rest of the device state. Currently this is a vmstate name and [arbitrary] numeric id. I don't remember whether there's a convenient link from a device to its associated vmstate -

Re: [Qemu-devel] [PATCH] configure: add an option to disable vlans

2010-06-10 Thread Michael S. Tsirkin
On Thu, Jun 10, 2010 at 08:20:56AM +0100, Chris Webb wrote: > Markus Armbruster writes: > > > "Michael S. Tsirkin" writes: > > > > > Everyone ok with disabling vlans with no config option? > > > > Wrong question. You got to ask "anyone *not* ok with disabling vlans > > with no config option?"

Re: [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command

2010-06-10 Thread Kevin Wolf
Am 10.06.2010 09:41, schrieb xudong: > when use "qemu-img" command to create qcow image, segmentation fault will > happen. > dmesg: qemu-img[1883] general protection ip:32f0477d20 sp:7fff9c89b308 > error:0 in libc-2.5.so[32f040+14a000] > > Bisected commit ea25559830a1a025e534dea634158c0141c71

[Qemu-devel] files in kvm/libkvm/ doesn't make

2010-06-10 Thread 王鸿鹄
hi, guys. I have changed some files in the folder kvm/libkvm/. But when I make, it doesn't work. What should I do to correct this? Thanks.

Re: [Qemu-devel] [PATCH] Add an error_report when failing to open due to block-drv-whitelist

2010-06-10 Thread Kevin Wolf
Am 09.06.2010 21:28, schrieb Ryan Harper: > When configure qemu with --block-drv-whitelist we don't report when we are > blocked by the white list and the resulting error message is misleading: > > ./configure --target-list=x86_64-softmmu \ > --block-drv-whitelist=qcow2,raw,host_device

RE: [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command

2010-06-10 Thread Hao, Xudong
The commit dafac85ed4f43d694c1b438ec6d14e18d225e600 works fine, I git diff the two dafac85ed4f43d694c1b438ec6d14e18d225e600 and ea25559830a1a025e534dea634158c0141c71894, and revert qemu-img.c to dafac85ed4f43d694c1b438ec6d14e18d225e600 , then everything is OK. Thanks, Xudong -Original Messa

[Qemu-devel] [PATCH 01/17] vl.c: Remove double include of netinet/in.h for Solaris

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen vl.c: netinet/in.h is already included once above for the Signed-off-by: Jes Sorensen Acked-by: Andreas Faerber Acked-by: Juan Quintela Acked-by: Richard Henderson --- vl.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 6d08ec8.

[Qemu-devel] [PATCH 04/17] vl.c: Move host_main_loop_wait() to OS specific files.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move host_main_loop_wait() to OS specific files. Create qemu-os-posix.h and provide empty inline for the POSIX case. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-win32.c | 43 +++ qemu

[Qemu-devel] [PATCH 02/17] Create qemu-os-win32.h and move WIN32 specific declarations there

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Create qemu-os-win32.h for WIN32 specific declarations. Move polling handling declaration into this file from sysemu.h Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- qemu-os-win32.h | 43 +++ sy

[Qemu-devel] [PATCH 03/17] Introduce os-win32.c and move polling functions from vl.c

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen This introduces os-win32.c. It is meant to carry win32 specific functions thata are not relevant for all of QEMU as well as win32 versions of various pieces like signal handling etc. Move win32 polling handler helper functions from vl.c to os-win32.c Signed-off-by: Jes Sorens

[Qemu-devel] [PATCH 06/17] Move win32 early signal handling setup to os_setup_signal_handling()

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move win32 early signal handling setup to os_setup_signal_handling() Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-win32.c | 29 + qemu-os-posix.h |2 -- sysemu.h|2 ++ vl.c

[Qemu-devel] [PATCH 09/17] Move find_datadir to OS specific files.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen This moves the win32 and POSIX versions of find_datadir() to OS specific files, and removes some #ifdef clutter from vl.c Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c | 64 ++ os-wi

[Qemu-devel] [PATCH 05/17] Introduce os-posix.c and create os_setup_signal_handling()

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Introcuce os-posix.c and move posix specific signal handling there. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- Makefile.objs |1 + os-posix.c | 41 + qemu-os-posix.h |2 ++ vl

[Qemu-devel] [PATCH v4 00/17] clean up vl.c code

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen v4 of the vl.c clean up patch. This one just fixes a merge conflict due to some recent changes to vl.c, and I added the Acked-By: lines I received for v3. Consider it a house-keeping update to make it easier to merge. The patches try to clean up the vl.c code by separating out

[Qemu-devel] [PATCH 07/17] Rename os_setup_signal_handling() to os_setup_early_signal_handling()

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Rename os_setup_signal_handling() to os_setup_early_signal_handling() Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c |2 +- os-win32.c |2 +- sysemu.h |2 +- vl.c |2 +- 4 files changed, 4 insertions(+

[Qemu-devel] [PATCH 16/17] Move line-buffering setup to OS specific files.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move line-buffering setup to OS specific files. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c |5 + qemu-os-posix.h |1 + qemu-os-win32.h |2 ++ vl.c|5 + 4 files changed, 9 insertion

[Qemu-devel] [PATCH 14/17] Move daemonize handling to OS specific files

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move daemonize handling from vl.c to OS specific files. Provide dummy stubs for Win32. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c | 102 os-win32.c |5 ++

[Qemu-devel] [PATCH 08/17] Move main signal handler setup to os specificfiles.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move main signal handler setup to os specific files. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c | 27 +++ qemu-os-posix.h |2 ++ qemu-os-win32.h |3 +++ vl.c| 33 +-

[Qemu-devel] [PATCH 10/17] Rename qemu-options.h to qemu-options.def

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Rename qemu-options.h to qemu-options.def as it is not a header file for general use and this leaves space for a proper qemu-options.h Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- Makefile.objs |4 ++-- vl.c |6 +++---

[Qemu-devel] [PATCH 17/17] Move set_proc_name() to OS specific files.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move handling to change process name to POSIX specific files plus add a better error message to cover the case where the feature isn't supported. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c | 24

[Qemu-devel] [PATCH 12/17] Move runas handling from vl.c to OS specific files.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move code to handle runas, ie. change of user id of QEMU process to OS specific files and provide dummy stub for Win32. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c | 28 qemu-os-posix.h

[Qemu-devel] [PATCH 13/17] Move chroot handling to OS specific files.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move chroot handling to OS specific files. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c | 19 +++ qemu-os-posix.h |1 + qemu-os-win32.h |1 + vl.c| 18 +- 4 files

[Qemu-devel] [PATCH 11/17] Introduce OS specific cmdline argument handling and move SMB arg to os-posix.c

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Introduce OS specific cmdline argument handling by calling os_parse_cmd_args() at the end of switch() statement. Move option enum to qemu-options.h and have it included from os-posix.c and os-win32.c in addition to vl.c. In addition move SMB argument to os-posix.c Signed-off-

[Qemu-devel] [PATCH 15/17] Make os_change_process_uid and os_change_root os-posix.c local

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen os_change_process_uid() and os_change_root() are now only called from os-posix.c, so no need to keep win32 stubs for them. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c |8 qemu-os-posix.h |2 -- qemu-o

[Qemu-devel] Re: [PATCH 6/6] apic: avoid using CPUState internals

2010-06-10 Thread Paolo Bonzini
On 06/09/2010 09:59 PM, Blue Swirl wrote: struct APICState { -CPUState *cpu_env; +void *cpu_env; I proposed having an opaque CPUState type in hw/ but it was rejected. But I don't think using a void pointer is any better. It's not necessary for the patch. Maybe it's possible to avoid

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Kevin Wolf
Am 09.06.2010 18:22, schrieb Anthony Liguori: > On 06/09/2010 10:31 AM, Daniel P. Berrange wrote: >>> However, libvirt was counting on this feature and on the snapshot commands >>> to switch from the text Monitor. We have two options: >>> >>> 1. Ask them to wait one more release (not so good fo

Re: [Qemu-devel] [PATCH 10/35] tcg-s390: New TCG target

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:18PM -0700, Richard Henderson wrote: > We already have stubs for a TCG target on S390, but were missing code that > would actually generate instructions. > > So I took Uli's patch, cleaned it up and present it to you again :-). > > I hope I found all odd coding style

Re: [Qemu-devel] [PATCH 11/35] tcg-s390: Tidy unimplemented opcodes.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:19PM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > tcg/s390/tcg-target.c | 25 ++--- > 1 files changed, 10 insertions(+), 15 deletions(-) > > diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c > index 55f0fa

Re: [Qemu-devel] [PATCH 07/35] tcg: Optionally sign-extend 32-bit arguments for 64-bit host.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:15PM -0700, Richard Henderson wrote: > Some hosts (amd64, ia64) have an ABI that ignores the high bits > of the 64-bit register when passing 32-bit arguments. Others, > like s390x, require the value to be properly sign-extended for > the type. I.e. "int32_t" must be

Re: [Qemu-devel] [PATCH 13/35] tcg-s390: Tidy regset initialization; use R14 as temporary.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:21PM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > tcg/s390/tcg-target.c | 26 -- > 1 files changed, 12 insertions(+), 14 deletions(-) This patch looks fine. > diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-

Re: [Qemu-devel] [PATCH 12/35] tcg-s390: Define TCG_TMP0.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:20PM -0700, Richard Henderson wrote: > Use a define for the temp register instead of hard-coding it. > > Signed-off-by: Richard Henderson > --- > tcg/s390/tcg-target.c | 54 ++-- > 1 files changed, 29 insertions(+), 25 d

Re: [Qemu-devel] [PATCH 14/35] tcg-s390: Rearrange register allocation order.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:22PM -0700, Richard Henderson wrote: > Try to avoid conflicting with the outgoing function call arguments. > > Signed-off-by: Richard Henderson > --- > tcg/s390/tcg-target.c | 23 +-- > 1 files changed, 13 insertions(+), 10 deletions(-) This p

Re: [Qemu-devel] [PATCH 15/35] tcg-s390: Query instruction extensions that are installed.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:23PM -0700, Richard Henderson wrote: > Verify that we have all the instruction extensions that we generate. > Future patches can tailor code generation to the set of instructions > that are present. > > Signed-off-by: Richard Henderson > --- > tcg/s390/tcg-target.c

[Qemu-devel] Re: [PATCH v3 3/5] QMP: Introduce MIGRATION events

2010-06-10 Thread Juan Quintela
Luiz Capitulino wrote: > On Wed, 9 Jun 2010 14:10:56 +0200 > Juan Quintela wrote: >> +MIGRATION_FAILED >> + >> + >> +Emitted when migration fails (both is source and target). Notice >> +that this event will be changed for 0.14 when we have infrastructure >> +to emit a QError wh

[Qemu-devel] Re: [PATCH v3 0/5] Add QMP migration events

2010-06-10 Thread Juan Quintela
Luiz Capitulino wrote: > On Wed, 9 Jun 2010 14:10:53 +0200 > Juan Quintela wrote: > >> This is a resent with what we agreed on yesterday call. >> Migration events would be there for 0.13 until we get proper >> async command support. > > Something which is not clear to me is the set of events we

Re: [Qemu-devel] [PATCH 2/2] virtio-blk: simplify multiwrite calling conventions

2010-06-10 Thread Kevin Wolf
Am 08.06.2010 18:26, schrieb Christoph Hellwig: > Pass the MultiReqBuffer structure down all the way to the I/O submission > instead of takin it apart. Also mark num_writes unsigned as it can't > go negative, and take the check for any pending I/O requests into the > submission function. Last but

Re: [Qemu-devel] Disable PS/2 mouse

2010-06-10 Thread Peter Lieven
Gerd Hoffmann wrote: On 06/10/2010 09:12 AM, Dor Laor wrote: On 06/09/2010 05:35 PM, Gerd Hoffmann wrote: Hi, with 0.12.4 it is still the case that a total idle vm takes about 6-8% of a 2.4GHz Xeon Core. I see that order of magitude too, no matter whenever usb is on or off. With older qemu

[Qemu-devel] [Bug 586420] Re: WinXP install cd hangs at boot time if machine started with floppy

2010-06-10 Thread tekditt
Well, I forgot something to mention. Again: I can boot the install CDs of Windows XP and Windows Server 2003 if I DON'T use any floppy drive. -fda/-fdb FILE as well as -drive file=FILE,if=floppy are causing this bug, the bug not to be able to boot these install CDs. -- WinXP install cd hangs at

[Qemu-devel] [Bug 586420] Re: WinXP install cd hangs at boot time if machine started with floppy

2010-06-10 Thread tekditt
I admit I used -L wrong, but that's not the issue. I don't need to specify it, because QEMU finds the right directory itself. My problem is, the installer CD hangs also if I add -hda/-hdb. The setup should be able to boot anyway, even without any hard drive. It's possible that the CD image could b

Re: [Qemu-devel] [Bug 586420] Re: WinXP install cd hangs at boot time if machine started with floppy

2010-06-10 Thread Michael Tokarev
10.06.2010 14:49, tekditt wrote: Well, I forgot something to mention. Again: I can boot the install CDs of Windows XP and Windows Server 2003 if I DON'T use any floppy drive. -fda/-fdb FILE as well as -drive file=FILE,if=floppy are causing this bug, the bug not to be able to boot these install C

Re: [Qemu-devel] Re: [PATCH V3 1/3] qemu: Add qemu-wrappers for pthread_attr_t

2010-06-10 Thread Gautham R Shenoy
On Fri, Jun 04, 2010 at 03:19:34PM +0200, Corentin Chary wrote: > On Fri, Jun 4, 2010 at 3:07 PM, Anthony Liguori wrote: > > On 06/03/2010 07:31 AM, Paolo Bonzini wrote: > >> > >> On 06/03/2010 10:56 AM, Gautham R Shenoy wrote: > >>> > >>> Add qemu wrappers for pthread_attr_t handling. > >> > >> T

Re: [Qemu-devel] [PATCH V3 2/3] qemu: Generic asynchronous threading framework to offload tasks

2010-06-10 Thread Gautham R Shenoy
On Fri, Jun 04, 2010 at 08:16:19AM -0500, Anthony Liguori wrote: >> --- /dev/null >> +++ b/async-work.c >> @@ -0,0 +1,136 @@ >> +/* >> + * Async work support >> + * >> + * Copyright IBM, Corp. 2010 >> + * >> + * Authors: >> + * Aneesh Kumar K.V >> + * >> + * This work is licensed under the terms o

Re: [Qemu-devel] Disable PS/2 mouse

2010-06-10 Thread Paul Brook
> For usb hid devices: No idea how they work and whenever we can put them > into sleep somehow (with/without guest cooperation). The issue with USB is that it is (by design) a polled system. The UHCI adapter has to wakeup every 1ms to read transfer descriptors from guest RAM. Until recently ther

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Anthony Liguori
On 06/10/2010 04:43 AM, Kevin Wolf wrote: Huh, why this? Seems I still haven't understood all of qcow2 then... I always thought that there's just a specific offset where VM state starts, but no explicit end. A live snapshot can last for a very long time. What happens if you need to alloc

[Qemu-devel] [Bug 538908] Re: qemu-system-cris crashes after a few seconds

2010-06-10 Thread Edgar E. Iglesias
Hi, You need to provide a boot/kernel image. What you are seeing is that QEMU boots into empty memory, the CPU just executes NOP's until it hits an address that is not backed by anything so it bails out. I've commited a patch that bails out earlier with an error message if there was no image to b

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Kevin Wolf
Am 10.06.2010 14:53, schrieb Anthony Liguori: > On 06/10/2010 04:43 AM, Kevin Wolf wrote: >> >> Huh, why this? Seems I still haven't understood all of qcow2 then... I >> always thought that there's just a specific offset where VM state >> starts, but no explicit end. >> > > A live snapshot can

[Qemu-devel] [PULL] pci,virtio

2010-06-10 Thread Michael S. Tsirkin
The following changes since commit 0ffbba357c557d9fa5caf9476878a4b9c155a614: migration-exec: fix OpenBSD build warning (2010-06-04 20:01:07 +) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git for_anthony Amit Shah (1): net: Fix hotp

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Avi Kivity
On 06/10/2010 04:08 PM, Kevin Wolf wrote: It's just not seen by the guest because it's saved at a high offset that is after the end of the real disk content, but otherwise it should behave the same as guest data. That's very unfriendly towards extending the guest-visible portion of the dis

[Qemu-devel] Re: [PATCH 07/13] blockdev: Means to destroy blockdev only if made with drive_init()

2010-06-10 Thread Kevin Wolf
Am 02.06.2010 18:55, schrieb Markus Armbruster: > All drives are still made that way. They get destroyed along with > their device. That's inappropriate for the alternative way to make > blockdevs that will appear later in this series. These won't have a > DriveInfo. > > blockdev_detach() destr

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Kevin Wolf
Am 10.06.2010 16:11, schrieb Avi Kivity: > On 06/10/2010 04:08 PM, Kevin Wolf wrote: >> It's just not seen by the guest because >> it's saved at a high offset that is after the end of the real disk >> content, but otherwise it should behave the same as guest data. >> > > That's very unfriendly

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Anthony Liguori
On 06/10/2010 08:08 AM, Kevin Wolf wrote: Am 10.06.2010 14:53, schrieb Anthony Liguori: On 06/10/2010 04:43 AM, Kevin Wolf wrote: Huh, why this? Seems I still haven't understood all of qcow2 then... I always thought that there's just a specific offset where VM state starts, but no exp

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Alex Williamson
On Thu, 2010-06-10 at 10:23 +0200, Gerd Hoffmann wrote: > > I may have been a bit misleading here. What we really want to do is use the > > same matching algorithm as is used by the rest of the device state. > > Currently > > this is a vmstate name and [arbitrary] numeric id. I don't remember whet

Re: [Qemu-devel] [Bug 586420] Re: WinXP install cd hangs at boot time if machine started with floppy

2010-06-10 Thread Jes Sorensen
On 06/10/10 12:49, tekditt wrote: > Well, I forgot something to mention. Again: > > I can boot the install CDs of Windows XP and Windows Server 2003 if I > DON'T use any floppy drive. -fda/-fdb FILE as well as -drive > file=FILE,if=floppy are causing this bug, the bug not to be able to boot > thes

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Paul Brook
> On Thu, 2010-06-10 at 10:23 +0200, Gerd Hoffmann wrote: > > > I may have been a bit misleading here. What we really want to do is use > > > the same matching algorithm as is used by the rest of the device > > > state. Currently this is a vmstate name and [arbitrary] numeric id. I > > > don't reme

[Qemu-devel] RE: [RFC] Moving the kvm ioapic, pic, and pit back to userspace

2010-06-10 Thread Dong, Eddie
>> A VF interrupt usually happens in 4-8KHZ. How about the virtio? >> I assume virtio will be widely used together w/ leagcy guest with >> INTx mode. >> > > True, but in time it will be replaced by MSI. > > Note without vhost virtio is also in userspace, so there are lots of > exits anyway for

[Qemu-devel] [BUG] tcg-i386: regression after merge 64-bit

2010-06-10 Thread Thomas Monjalon
My guest Linux/PPC cannot boot on my host x86 since this commit: 5d8a4f8f: tcg-i386: Merge 64-bit generation This is the output: zImage starting: loaded at 0x40 (sp: 0x004e5eb0) inflate returned -3 msg: invalid literal/lengths set -- Thomas

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Alex Williamson
On Wed, 2010-06-09 at 21:36 +0100, Paul Brook wrote: > > > Not really. This identifier is device and bus independent, which is why > > > I suggested passing the device to qemu_ram_alloc. This can then figure > > > out how to the identify the device. It should probably do this the same > > > way t

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Alex Williamson
On Thu, 2010-06-10 at 15:49 +0100, Paul Brook wrote: > > On Thu, 2010-06-10 at 10:23 +0200, Gerd Hoffmann wrote: > > > > I may have been a bit misleading here. What we really want to do is use > > > > the same matching algorithm as is used by the rest of the device > > > > state. Currently this is

[Qemu-devel] Re: [PATCH 13/13] blockdev: New -blockdev to define a host block device

2010-06-10 Thread Paolo Bonzini
On 06/02/2010 06:55 PM, Markus Armbruster wrote: * Like -drive, -blockdev ignores cache= silently when snapshot=on. Do we really want that? Yes, the changes are throw-away by definition. Might as well use cache=unsafe. +if (snapshot) { +/* always use write-back with snapsho

[Qemu-devel] Re: [PATCH 14/19] Add a query-argv command to QMP

2010-06-10 Thread Paolo Bonzini
On 06/07/2010 05:01 PM, Anthony Liguori wrote: On 06/07/2010 09:42 AM, Daniel P. Berrange wrote: Add a new QMP command called 'query-argv' to information about the command line arguments supported by the QEMU binary. This is intended to remove the need for apps to parse '-help' output. This is

[Qemu-devel] Re: [PATCH 07/13] blockdev: Means to destroy blockdev only if made with drive_init()

2010-06-10 Thread Markus Armbruster
Kevin Wolf writes: > Am 02.06.2010 18:55, schrieb Markus Armbruster: >> All drives are still made that way. They get destroyed along with >> their device. That's inappropriate for the alternative way to make >> blockdevs that will appear later in this series. These won't have a >> DriveInfo. >

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

2010-06-10 Thread Anthony Liguori
On 06/10/2010 08:56 AM, Michael S. Tsirkin wrote: The following changes since commit 0ffbba357c557d9fa5caf9476878a4b9c155a614: migration-exec: fix OpenBSD build warning (2010-06-04 20:01:07 +) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/qe

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Chris Wright
* Alex Williamson (alex.william...@redhat.com) wrote: > On Wed, 2010-06-09 at 13:18 +0100, Paul Brook wrote: > > to the identify the device. It should probably do this the same way that we > > identify the saved state for the device. Currently I think this is an > > arbitrary vmstate name/id, bu

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Paul Brook
> > > to the identify the device. It should probably do this the same way > > > that we identify the saved state for the device. Currently I think > > > this is an arbitrary vmstate name/id, but I expect this to change to a > > > qdev address (e.g. /i440FX-pcihost/pci.0/_addr_04.0"). > > > > Ok,

[Qemu-devel] Re: [PATCH 13/13] blockdev: New -blockdev to define a host block device

2010-06-10 Thread Markus Armbruster
Paolo Bonzini writes: > On 06/02/2010 06:55 PM, Markus Armbruster wrote: >> * Like -drive, -blockdev ignores cache= silently when snapshot=on. Do >>we really want that? > > Yes, the changes are throw-away by definition. Might as well use > cache=unsafe. I understand why that's the most sen

[Qemu-devel] Re: [PATCH 13/13] blockdev: New -blockdev to define a host block device

2010-06-10 Thread Paolo Bonzini
On 06/10/2010 06:32 PM, Markus Armbruster wrote: I understand why that's the most sensible cache setting. But if the user explicitly asks for something else, I think we better give it to him, or tell him no. Ignoring him silently isn't nice. Ah, it's clearer now... I guess one could use cach

Re: [Qemu-devel] [PATCH 22/22] machine: introduce -machine-def option to define a machine via config

2010-06-10 Thread Daniel P. Berrange
On Mon, Jun 07, 2010 at 07:50:14PM -0500, Anthony Liguori wrote: > On 06/07/2010 06:52 PM, Anthony Liguori wrote: > >Since we have MachineCore and can represent a machine entirely via default > >options, we can introduce a new option that let's us dynamically register a > >machine based on those op

[Qemu-devel] RFC v2: blockdev_add & friends, brief rationale, QMP docs

2010-06-10 Thread Markus Armbruster
v2: Cover protocols Split blockdev_change into media_insert and media_remove Option syntax list TODOs Rationale: Why new commands for block devices? == We want a clean separation between host part and guest part. Existing -drive and drive_

Re: [Qemu-devel] [Bug 592028] [NEW] sparc32plus user test failed

2010-06-10 Thread Blue Swirl
On Thu, Jun 10, 2010 at 5:56 AM, kruglov.dima wrote: > Public bug reported: > > Hello, > > I try to execute on linux machine sparc binary (simple hello word > application) using qemu-sparc32plus > and get segfault.Before test I copy all libraries and headers > (/usr/lib, /lib/, /usr/local/lib /us

Re: [Qemu-devel] [RFC PATCH 0/2] Add USB Video Class device emulation.

2010-06-10 Thread David S. Ahern
On 06/08/10 09:34, Natalia Portillo wrote: > Hi, > > This currently adds an emulated USB webcam compliant with USB Video Class > Specification 1.0a. > > It only works on Linux guests and feeds the emulated device using a > Video4Linux 2 host device, as long as it supports 320x240 MJPEG format

Re: [Qemu-devel] [PATCH] qbus: fix memory leak in qbus_free()

2010-06-10 Thread Blue Swirl
Thanks, applied. On Thu, May 27, 2010 at 5:35 AM, Isaku Yamahata wrote: > BusState::name is allocated in qbus_create_inplace(). > So it should be freed by qbus_free(). > > Signed-off-by: Isaku Yamahata > --- >  hw/qdev.c |    1 + >  1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git

Re: [Qemu-devel] [PATCH] multiboot: compilation fix with DEBUG_MULTIBOOT enabled.

2010-06-10 Thread Blue Swirl
Thanks, applied. On Thu, May 27, 2010 at 5:37 AM, Isaku Yamahata wrote: > This patch fixes the following compilation errors in multiboot.c > when DEBUG_MULTIBOOT is defined. > Use TARGET_FMT_plx instead of %x for target_phys_addr_t. > >  CC    i386-softmmu/multiboot.o > cc1: warnings being treate

Re: [Qemu-devel] [PATCH] vga-isa-mm: remove one #ifdef CONFIG_BOCHS_VBE.

2010-06-10 Thread Blue Swirl
Thanks, applied. On Thu, May 27, 2010 at 5:37 AM, Isaku Yamahata wrote: > remove one #ifdef CONFIG_BOCHS_VBE. > Call vga_init_vbe() instead. > > Signed-off-by: Isaku Yamahata > --- >  hw/vga-isa-mm.c |    6 +- >  1 files changed, 1 insertions(+), 5 deletions(-) > > diff --git a/hw/vga-isa-mm

Re: [Qemu-devel] [RFC PATCH 1/2] USB Video Class device emulation.

2010-06-10 Thread Natalia Portillo
Hi Blue, You're right on all things. I'll check CODING_STYLE and do the things. Thanks a lot.

Re: [Qemu-devel] [RFC PATCH 0/2] Add USB Video Class device emulation.

2010-06-10 Thread Natalia Portillo
Hi David, > Attempting to try out your patches, but it's failing with the following: > > usb-uvc: Init called > usb-uvc: Trying to open /dev/video0 > .usb-uvc: Device opened correctly. > usb-uvc: Querying capabilities. > usb-uvc: Device driver: uvcvideo > usb-uvc: Device name: Laptop_Integrated_W

Re: [Qemu-devel] [PATCH] main: allocate gui_timer only once.

2010-06-10 Thread Blue Swirl
Thanks, applied. On Thu, May 27, 2010 at 5:38 AM, Isaku Yamahata wrote: > fix memory leak. > there is no need to allocate more than one gui_timer. > > Signed-off-by: Isaku Yamahata > --- >  vl.c |    1 + >  1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/vl.c b/vl.c > index 417

[Qemu-devel] [Bug 546458] Re: kernel NULL pointer in -virtual (-server) kernel

2010-06-10 Thread C de-Avillez
Just to confirm -- still present, 10.04 LTS up-to-date, UEC images also 10.04 up-to-date. A 2,000 run creating KVM instances under Eucalyptus shows 6 occurences of this OOPS: WARNING:INSTANCE i-3EDE078A:[ 129.998256] BUG: unable to handle kernel NULL pointer dereference at 0358 WARNING:INSTA

Re: [Qemu-devel] [RFC PATCH 0/2] Add USB Video Class device emulation.

2010-06-10 Thread David S. Ahern
On 06/10/10 12:26, Natalia Portillo wrote: > Hi David, > >> Attempting to try out your patches, but it's failing with the following: >> >> usb-uvc: Init called >> usb-uvc: Trying to open /dev/video0 >> .usb-uvc: Device opened correctly. >> usb-uvc: Querying capabilities. >> usb-uvc: Device drive

Re: [Qemu-devel] [RFC PATCH 0/2] Add USB Video Class device emulation.

2010-06-10 Thread Natalia Portillo
Hi, > Trying to guess the relevant descriptors: > >VideoStreaming Interface Descriptor: >bLength50 >bDescriptorType36 >bDescriptorSubtype 5 (FRAME_UNCOMPRESSED) >bFrameIndex

[Qemu-devel] Re: [BUG] tcg-i386: regression after merge 64-bit

2010-06-10 Thread Aurelien Jarno
On Thu, Jun 10, 2010 at 04:51:24PM +0200, Thomas Monjalon wrote: > My guest Linux/PPC cannot boot on my host x86 since this commit: > 5d8a4f8f: tcg-i386: Merge 64-bit generation > > This is the output: > zImage starting: loaded at 0x40 (sp: 0x004e5eb0) > inflate returned -3 m

[Qemu-devel] [PATCH-V6 01/10] virtio-9p: Introduces an option to specify the security model.

2010-06-10 Thread Venkateswararao Jujjuri (JV)
The new option is: -fsdev fstype,id=myid,path=/share_path/,security_model=[mapped|passthrough] -virtfs fstype,path=/share_path/,security_model=[mapped|passthrough],mnt_tag=tag In the case of mapped security model, files are created with QEMU user credentials and the client-user's credentials are

[Qemu-devel] [PATCH 5/8] net: vde: introduce info_dict

2010-06-10 Thread Miguel Di Ciurcio Filho
Signed-off-by: Miguel Di Ciurcio Filho --- net/vde.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/net/vde.c b/net/vde.c index 0b46fa6..0fe7c09 100644 --- a/net/vde.c +++ b/net/vde.c @@ -31,6 +31,9 @@ #include "qemu-char.h" #include "qemu-common.h" #include "q

Re: [Qemu-devel] [PATCH 07/35] tcg: Optionally sign-extend 32-bit arguments for 64-bit host.

2010-06-10 Thread Richard Henderson
On 06/10/2010 03:22 AM, Aurelien Jarno wrote: > Wouldn't it be better to actually pass the whole flag to > tcg_gen_helper32(), so that we can in the future also support mixed > signedness in arguments? Also doing it here looks like a bit like a > magic constant. I suppose that's possible. > This

[Qemu-devel] [RFC v2] [PATCH 2/3] Monitor command 'info trace'

2010-06-10 Thread Prerna Saxena
This introduces the monitor command 'info trace' to display current contents of trace buffer. Signed-off-by: Prerna Saxena --- configure |3 +++ monitor.c | 12 qemu-monitor.hx |4 simpletrace.c | 12 tracetool |2 ++ 5 files ch

[Qemu-devel] [RFC v2] [PATCH 1/3] Export tdb_hash()

2010-06-10 Thread Prerna Saxena
For now, I simply export tdb_hash() from qdict.h for use by tracing framework. Luiz suggested renaming and exporting it from a location other than qdict.h . Would "qemu-common.h" be a better place? Signed-off-by: Prerna Saxena --- qdict.c |2 +- qdict.h |2 ++ 2 files changed, 3 inser

[Qemu-devel] [PATCH-V6 05/10] virtio-9p: Implemented Security model for lstat and fstat

2010-06-10 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri --- hw/virtio-9p-local.c | 62 ++--- 1 files changed, 58 insertions(+), 4 deletions(-) diff --git a/hw/virtio-9p-local.c b/hw/virtio-9p-local.c index 1d7cb32..74c81a6 100644 --- a/hw/virtio-9p-local.c +++ b/hw/v

[Qemu-devel] [PATCH-V6 07/10] virtio-9p: Security model for mkdir

2010-06-10 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri --- hw/file-op-9p.h |2 +- hw/virtio-9p-local.c | 35 +-- hw/virtio-9p.c | 12 +--- 3 files changed, 43 insertions(+), 6 deletions(-) diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h index b345189..12

[Qemu-devel] [PATCH-V6 02/10] virtio-9p: Make infrastructure for the new security model.

2010-06-10 Thread Venkateswararao Jujjuri (JV)
This patch adds required infrastructure for the new security model. Signed-off-by: Venkateswararao Jujjuri --- hw/file-op-9p.h | 20 +++ hw/virtio-9p-local.c | 65 +++--- hw/virtio-9p.c | 23 - 3 files chang

[Qemu-devel] Re: [BUG] tcg-i386: regression after merge 64-bit

2010-06-10 Thread Richard Henderson
On 06/10/2010 11:55 AM, Aurelien Jarno wrote: > On Thu, Jun 10, 2010 at 04:51:24PM +0200, Thomas Monjalon wrote: >> My guest Linux/PPC cannot boot on my host x86 since this commit: >> 5d8a4f8f: tcg-i386: Merge 64-bit generation >> >> This is the output: >> zImage starting: loaded at 0x400

[Qemu-devel] [PATCH] [virtio-9p] Define and implement TSYMLINK for 9P2000.L

2010-06-10 Thread Venkateswararao Jujjuri (JV)
This patch implements creating a symlink for TSYMLINK request and responds with RSYMLINK. In the case of error, we return RERROR. SYNOPSIS size[4] Tsymlink tag[2] fid[4] name[s] symtgt[s] gid[4] size[4] Rsymlink tag[2] qid[13] DESCRIPTION Create a symbolic link named 'name' poi

[Qemu-devel] [PATCH-V6 09/10] virtio-9p: Implement Security model for mknod

2010-06-10 Thread Venkateswararao Jujjuri (JV)
Mapped mode stores extended attributes in the user space of the extended attributes. Given that the user space extended attributes are available to regular files only, special files are created as regular files on the fileserver and appropriate mode bits are added to the extended attributes. This m

[Qemu-devel] [PATCH-V6 10/10] virtio-9p: Implement Security model for mksock using mknod.

2010-06-10 Thread Venkateswararao Jujjuri (JV)
This patch uses mknod to create socket. On Host/Fileserver: -rw---. 1 virfsuid virtfsgid 0 2010-05-11 09:57 asocket1 On Guest/Client: srwxr-xr-x 1 guestuser guestuser 0 2010-05-11 12:57 asocket1 Signed-off-by: Venkateswararao Jujjuri --- hw/file-op-9p.h |1 - hw/virtio-9p-local.c

[Qemu-devel] [PATCH-V6 03/10] virtio-9p: Security model for chmod

2010-06-10 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri --- hw/file-op-9p.h |2 +- hw/virtio-9p-local.c | 11 +++ hw/virtio-9p.c |5 - 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h index 307bd1e..1c8d89b 100644 --- a/hw/file-op-9

  1   2   >