[Qemu-devel] backing_file Path

2011-11-06 Thread Zhi Hui Li
when I trace the code of qemu-img.c, I found in the image file, the backing_file use the relative path, I think Maybe it has some problems. for example: 1: qemu-img create -o backing_file=../ aa.img 5G 2: qemu-system-x86_64 aa.img if you change aa.img's the path, the exec is wrong,it

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Mon, Nov 7, 2011 at 12:08 AM, Frank Ch. Eigler wrote: >> [...]  We don't want to be different, we want to make the barrier of >> entry low. > > When has the barrier of entry into the kernel ever been "low" > for anyone not already working in the kernel? What's your point? Working on the KVM to

[Qemu-devel] [PATCH v2] block: Use bdrv functions to replace file operation in cow.c

2011-11-06 Thread Li Zhi Hui
Since common file operation functions lack of error detection, so change them to bdrv series functions. v2: Only contains the function modified. v1: Fix coding style and convert file operation functions to bdrv functions. Signed-off-by: Li Zhi Hui --- block/cow.c | 35 +--

Re: [Qemu-devel] [PATCH 2/2] net: store correct timestamp in dump file

2011-11-06 Thread Mark Wu
On 11/07/2011 05:52 AM, Hervé Poussineau wrote: Signed-off-by: Hervé Poussineau --- net/dump.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/net/dump.c b/net/dump.c index 8132411..4b48d48 100644 --- a/net/dump.c +++ b/net/dump.c @@ -30,6 +30,7 @@ typedef str

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
Hi Anthony, On Sun, 6 Nov 2011, Anthony Liguori wrote: - Drop SDL/VNC. Make a proper Cairo GUI with a full blown GTK interface. Don't rely on virt-manager for this. Not that I have anything against virt-manager but there are many layers between you and the end GUI if you go that route. Fun

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, 6 Nov 2011, Ted Ts'o wrote: The only excuse I can see is a hope to make random changes to the kernel and userspace tools without having to worry about compatibility problems, which is an argument I've seen with perf (that you have to use the same version of perf as the kernel version, whi

Re: [Qemu-devel] [PATCH v7 0/2] PC system flash support

2011-11-06 Thread Zhi Yong Wu
Reviewed-by and Tested-by: Zhi Yong Wu On Thu, Nov 3, 2011 at 12:19 PM, Jordan Justen wrote: > Enable flash emulation in a PC system using pflash_cfi01. > > v7: > * Do not add system firmware to qemu roms > * If kvm is enabled, copy pflash drive contents into a >  read-only ram region, since kvm

Re: [Qemu-devel] [PATCH] Support for UDP unicast network backend

2011-11-06 Thread Benjamin
On 11/06/11 14:54, Jan Kiszka wrote: On 2011-11-06 21:55, Benjamin wrote: Follow-up of: http://www.mail-archive.com/qemu-devel@nongnu.org/msg81235.html This enables connections between Qemu, Dynamips and VirtualBox guests. Test it with: qemu-system-i386 -netdev socket,id=gns3,udp=127.0.0.1:42

[Qemu-devel] [PATCH] fix segfault on fd-migration starting

2011-11-06 Thread Wen Congyang
We set s->mon to NULL in migrate_init. But we will use it to search fd when do fd-migration, and it will cause qemu crashed. Signed-off-by: Wen Congyang --- migration.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/migration.c b/migration.c index 4b17566..d094381 100

Re: [Qemu-devel] [PATCH] reenable vm_clock when resuming all vcpus

2011-11-06 Thread Zhi Yong Wu
On Fri, Nov 4, 2011 at 2:26 PM, Wen Congyang wrote: > At 11/04/2011 10:48 AM, Zhi Yong Wu Write: >> On Fri, Nov 4, 2011 at 10:45 AM, Wen Congyang wrote: >>> >>> We disable vm_clock when pausing all vcpus, but we forget to >>> reenable it when resuming all vcpus. It will cause that the >>> guest c

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Anthony Liguori
On 11/06/2011 12:09 PM, Pekka Enberg wrote: On Sun, Nov 6, 2011 at 7:08 PM, Anthony Liguori wrote: I'm quite happy with KVM tool and hope they continue working on it. My only real wish is that they wouldn't copy QEMU so much and would try bolder things that are fundamentally different from QEM

Re: [Qemu-devel] Accessing a linux guest's data structures

2011-11-06 Thread Mulyadi Santosa
Hi :) On Mon, Nov 7, 2011 at 00:46, Ankur Dahiya wrote: > Hey, thanks for the reply. > I dont want to ssh to the guest! > What I basically want to do is monitor the guest state. Like I want to track > what system calls are being called, > what process and thread are currently running...Things tha

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Ted Ts'o
On Sun, Nov 06, 2011 at 08:58:20PM +0200, Pekka Enberg wrote: > > Ted, I'm confused. Making backwards incompatible ABI changes has never > > been on the table. Why are you bringing it up? > > And btw, KVM tool is not a random userspace project - it was designed > to live in tools/kvm from the begi

Re: [Qemu-devel] [PATCH V3] Introduce a new bus "ICC" to connect APIC

2011-11-06 Thread Jan Kiszka
On 2011-11-03 10:30, pingf...@linux.vnet.ibm.com wrote: > From: Liu Ping Fan > > Introduce a new structure CPUS as the controller of ICC (INTERRUPT > CONTROLLER COMMUNICATIONS), and new bus "ICC" to hold APIC,instead > of sysbus. So we can support APIC hot-plug feature. > > Signed-off-by: liu pi

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Frank Ch. Eigler
$ From: f...@redhat.com (Frank Ch. Eigler) Date: Sun, 06 Nov 2011 17:08:48 -0500 In-Reply-To: (Pekka Enberg's message of "Sun, 6 Nov 2011 20:05:45 +0200") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-asci

[Qemu-devel] [PATCH 2/2] net: store correct timestamp in dump file

2011-11-06 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- net/dump.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/net/dump.c b/net/dump.c index 8132411..4b48d48 100644 --- a/net/dump.c +++ b/net/dump.c @@ -30,6 +30,7 @@ typedef struct DumpState { VLANClientState nc; +int6

[Qemu-devel] [PATCH 1/2] net: truncate output file when using dump backend

2011-11-06 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- net/dump.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/dump.c b/net/dump.c index 0d0cbb2..8132411 100644 --- a/net/dump.c +++ b/net/dump.c @@ -106,7 +106,7 @@ static int net_dump_init(VLANState *vlan, const char *device,

[Qemu-devel] [PATCH 2/3] sonic: fix netcard reset

2011-11-06 Thread Hervé Poussineau
From: Herv Poussineau Signed-off-by: Hervé Poussineau --- hw/dp8393x.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/dp8393x.c b/hw/dp8393x.c index cfec4cb..acb1604 100644 --- a/hw/dp8393x.c +++ b/hw/dp8393x.c @@ -845,8 +845,7 @@ static void nic_reset(void *opaq

[Qemu-devel] [PATCH 3/3] sonic: reset all bits of in_use field when required

2011-11-06 Thread Hervé Poussineau
This field is 16 or 32 bit wide depending of SONIC_DCR_DW bit. Fixes network in NetBSD 5.1/arc Signed-off-by: Hervé Poussineau --- hw/dp8393x.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/dp8393x.c b/hw/dp8393x.c index acb1604..c3e86ce 100644 --- a/hw/dp8393x.c +

[Qemu-devel] [PATCH 1/3] sonic: fix typo

2011-11-06 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/dp8393x.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/dp8393x.c b/hw/dp8393x.c index f66844b..cfec4cb 100644 --- a/hw/dp8393x.c +++ b/hw/dp8393x.c @@ -515,7 +515,7 @@ static void write_register(dp8393xState *s, int reg, uin

Re: [Qemu-devel] [PATCH v3] hw/arm_sysctl: Fix RESETCTL for realview-pb-a8 and -pbx-a9

2011-11-06 Thread Peter Maydell
On 6 November 2011 19:14, Jean-Christophe DUBOIS wrote: > Depending on the considered baseboard the bit used to > reset the platform is different. > Signed-off-by: Jean-Christophe DUBOIS Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 10:01 PM, Paolo Bonzini wrote: > Nothing, but I'm just giving you *strong* hints that a submodule or a merged > tool is the wrong solution, and the histories of kernel and tool should be > kept separate. And btw, I don't really understand what you're trying to accomplish wi

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 10:01 PM, Paolo Bonzini wrote: >> If you're bisecting breakage that can be in the guest kernel or the >> KVM tool, you'd want to build both. > > No.  I want to try new tool/old kernel and old tool/new kernel (kernel can > be either guest or host, depending on the nature of t

Re: [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ?

2011-11-06 Thread Thomas Schmitt
Hi, i have finished CD and DVD tests with drive file=/dev/sg2,if=virtio -cdrom /dvdbuffer/pseudo_drive There is substantial improvement towards if=scsi. Actually everything works like a charm now. :)) It did not work for libburn out of the box, but i could work around most of the obstacles. O

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Paolo Bonzini
On 11/06/2011 08:17 PM, Pekka Enberg wrote: > But I'm pretty certain that, when testing 3.2 with KVM tool in a couple of > years, I want all the shining new features you added in this time; I don't > want the old end-2011 code. Same if I'm bisecting kernels, I don't want to > build KVM tool

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 9:14 PM, Paolo Bonzini wrote: > GStreamer (V4L), RTSAdmin (LIO target), sg3_utils, trousers all are out of > tree, and nobody of their authors is even thinking of doing all this > brouhaha to get merged into Linus's tree. We'd be the first subsystem to use the download scri

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 9:11 PM, Paolo Bonzini wrote: >> I really don't see the point in doing that. We want to be part of >> regular kernel history and release cycle. > > But I'm pretty certain that, when testing 3.2 with KVM tool in a couple of > years, I want all the shining new features you add

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Paolo Bonzini
On 11/06/2011 07:05 PM, Pekka Enberg wrote: I mean, seriously, git makes it so easy to have a separate tree that > it almost doesn't make sense not to have one. You're constantly > working in separate trees yourself because every one of your > branches is separate. Keeping in sync with the ker

[Qemu-devel] [PATCH v3] hw/arm_sysctl: Fix RESETCTL for realview-pb-a8 and -pbx-a9

2011-11-06 Thread Jean-Christophe DUBOIS
Depending on the considered baseboard the bit used to reset the platform is different. Here is the list of considered Realview/Versatile platforms: Realview/Versatile AB for ARM926EJ-S: BOARD_ID = 0x100 = BOARD_ID_PB926 http://infocenter.arm.com/help/topic/com.arm.doc.dui0225d/CACCIFGI.html Real

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Paolo Bonzini
On 11/06/2011 06:28 PM, Pekka Enberg wrote: On Sun, Nov 6, 2011 at 7:15 PM, Alexander Graf wrote: The difference here is that although I feel Alex's script is a pointless project, I'm in no way opposed to merging it in the tree if people use it and it solves their problem. Some people seem to b

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 8:54 PM, Pekka Enberg wrote: >> So integrating kvm-tool into the kernel isn't going to work as a free >> pass to make non-backwards compatible changes to the KVM user/kernel >> interface.  Given that, why bloat the kernel source tree size? > > Ted, I'm confused. Making backw

Re: [Qemu-devel] [PATCH v2 4/7] block: take lock around bdrv_read implementations

2011-11-06 Thread Avi Kivity
On 11/06/2011 07:25 PM, Paolo Bonzini wrote: > On 11/06/2011 03:27 PM, Avi Kivity wrote: >> On 10/20/2011 01:16 PM, Paolo Bonzini wrote: >>> This does the first part of the conversion to coroutines, by >>> wrapping bdrv_read implementations to take the read side of the >>> rwlock. >>> >>> Drivers t

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 06, 2011 at 11:08:10AM -0600, Anthony Liguori wrote: >> I'm quite happy with KVM tool and hope they continue working on it. >> My only real wish is that they wouldn't copy QEMU so much and would >> try bolder things that are fundamentally different from QEMU. On Sun, Nov 6, 2011 at 8:3

Re: [Qemu-devel] [PATCH v2] realview: fix reset bit depending on platform

2011-11-06 Thread Peter Maydell
On 5 November 2011 11:23, Jean-Christophe DUBOIS wrote: > Depending on the considered baseboard the bit used to > reset the platform is different. > > Here is the list of considered Realview/Versatile platforms: > > Realview/Versatile AB for ARM926EJ-S: BOARD_ID = 0x100 = BOARD_ID_PB926 > http://i

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Ted Ts'o
On Sun, Nov 06, 2011 at 11:08:10AM -0600, Anthony Liguori wrote: > I'm quite happy with KVM tool and hope they continue working on it. > My only real wish is that they wouldn't copy QEMU so much and would > try bolder things that are fundamentally different from QEMU. My big wish is that they don'

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 7:08 PM, Anthony Liguori wrote: > I'm quite happy with KVM tool and hope they continue working on it.  My only > real wish is that they wouldn't copy QEMU so much and would try bolder > things that are fundamentally different from QEMU. Hey, right now our only source of cra

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 7:30 PM, Alexander Graf wrote: >> That's pretty much what git submodule would do, isn't it? >> >> I really don't see the point in doing that. We want to be part of >> regular kernel history and release cycle. We want people to be able to >> see what's going on in our tree to

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, 6 Nov 2011, Jan Kiszka wrote: Doesn't help here (with a disk image). Also, both dependencies make no sense to me as we boot from disk, not from net, and the console is on ttyS0. It's only VIRTIO_NET and the guest is not actually stuck, it just takes a while to boot: [1.866614] I

Re: [Qemu-devel] [PATCH v2] arm: Fix CP15 FSR (C5) domain setting

2011-11-06 Thread Jean-Christophe DUBOIS
On 06/11/2011 18:33, Peter Maydell wrote: On 5 November 2011 11:42, Jean-Christophe DUBOIS wrote: During Xvisor development, it was noted that qemu did not return the correct domain value in the Cp15 [Data] FSR register (C5). This patch is a proposal to fix it. v2: - fix coding style - rebase

Re: [Qemu-devel] [PATCH v2] arm: Fix CP15 FSR (C5) domain setting

2011-11-06 Thread Peter Maydell
On 5 November 2011 11:42, Jean-Christophe DUBOIS wrote: > During Xvisor development, it was noted that qemu did not return > the correct domain value in the Cp15 [Data] FSR register (C5). > > This patch is a proposal to fix it. > > v2: > - fix coding style > - rebase on git. > > Signed-off-by: Jea

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Alexander Graf
On 06.11.2011, at 09:28, Pekka Enberg wrote: > On Sun, Nov 6, 2011 at 7:15 PM, Alexander Graf wrote: >>> The difference here is that although I feel Alex's script is a >>> pointless project, I'm in no way opposed to merging it in the tree if >>> people use it and it solves their problem. Some pe

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 7:15 PM, Alexander Graf wrote: >> The difference here is that although I feel Alex's script is a >> pointless project, I'm in no way opposed to merging it in the tree if >> people use it and it solves their problem. Some people seem to be >> violently opposed to merging the

Re: [Qemu-devel] [PATCH v2 4/7] block: take lock around bdrv_read implementations

2011-11-06 Thread Paolo Bonzini
On 11/06/2011 03:27 PM, Avi Kivity wrote: On 10/20/2011 01:16 PM, Paolo Bonzini wrote: This does the first part of the conversion to coroutines, by wrapping bdrv_read implementations to take the read side of the rwlock. Drivers that implement bdrv_read rather than bdrv_co_readv can then benefit

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Jan Kiszka
On 2011-11-06 18:11, Pekka Enberg wrote: > On Sun, 6 Nov 2011, Jan Kiszka wrote: >>> Can you please share your kernel .config with me and I'll take a look >>> at it. We now have a "make kvmconfig" makefile target for enabling all >>> the necessary config options for guest kernels. I don't think any

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Alexander Graf
On 06.11.2011, at 05:06, Pekka Enberg wrote: > On Sun, Nov 6, 2011 at 2:43 PM, Avi Kivity wrote: >> You say that kvm-tool's scope is broader than Alex's script, therefore >> the latter is pointless. > > I'm saying that Alex's script is pointless because it's not attempting > to fix the real iss

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, 6 Nov 2011, Jan Kiszka wrote: Can you please share your kernel .config with me and I'll take a look at it. We now have a "make kvmconfig" makefile target for enabling all the necessary config options for guest kernels. I don't think any of us developers are using SUSE so it can surely be

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Anthony Liguori
On 11/06/2011 07:06 AM, Pekka Enberg wrote: On Sun, Nov 6, 2011 at 2:43 PM, Avi Kivity wrote: You say that kvm-tool's scope is broader than Alex's script, therefore the latter is pointless. I'm saying that Alex's script is pointless because it's not attempting to fix the real issues. For exam

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Alexander Graf
On 06.11.2011, at 05:11, Pekka Enberg wrote: > On Sun, Nov 6, 2011 at 2:43 PM, Avi Kivity wrote: >> Alex's script, though, is just a few dozen lines. kvm-tool is a 20K >> patch - in fact 2X as large as kvm when it was first merged. And it's >> main feature seems to be that "it is not qemu". >

Re: [Qemu-devel] Virtual serial logging server?

2011-11-06 Thread Mulyadi Santosa
On Sun, Nov 6, 2011 at 23:21, Reeted wrote: > Can you suggest a server application to receive all such TCP connections and > log serial data for many virtual machines at once? > > In particular I would be interested in something with quotas, i.e. something > that deletes old lines from the logs of

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Anthony Liguori
On 11/06/2011 10:50 AM, Avi Kivity wrote: On 11/06/2011 06:35 PM, Pekka Enberg wrote: The difference here is that although I feel Alex's script is a pointless project, I'm in no way opposed to merging it in the tree if people use it and it solves their problem. Some people seem to be violently o

Re: [Qemu-devel] Accessing a linux guest's data structures

2011-11-06 Thread Mulyadi Santosa
On Sun, Nov 6, 2011 at 23:01, Ankur Dahiya wrote: > Hi > I am a beginner qemu developer. > I am running a linux guest inside qemu and I need to determine what process, > thread is currently running in the guest. > How should I do this? Any suggestions? Or can anyone point me to the > relevant area

Re: [Qemu-devel] Wierd hack to sound/pci/intel8x0.c

2011-11-06 Thread Denis V. Lunev
On 11/6/11 8:47 PM, Takashi Iwai wrote: At Sun, 06 Nov 2011 18:31:42 +0200, Avi Kivity wrote: On 11/06/2011 06:15 PM, Denis V. Lunev wrote: On 11/6/11 6:51 PM, Avi Kivity wrote: The recently merged 228cf79376f1 ("ALSA: intel8x0: Improve performance in virtual environment") is hacky and somewha

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Avi Kivity
On 11/06/2011 06:35 PM, Pekka Enberg wrote: > >> The difference here is that although I feel Alex's script is a > >> pointless project, I'm in no way opposed to merging it in the tree if > >> people use it and it solves their problem. Some people seem to be > >> violently opposed to merging the KVM

Re: [Qemu-devel] Wierd hack to sound/pci/intel8x0.c

2011-11-06 Thread Denis V. Lunev
On 11/6/11 8:31 PM, Avi Kivity wrote: On 11/06/2011 06:15 PM, Denis V. Lunev wrote: On 11/6/11 6:51 PM, Avi Kivity wrote: The recently merged 228cf79376f1 ("ALSA: intel8x0: Improve performance in virtual environment") is hacky and somewhat wrong. First, the detection code + if (inside_v

Re: [Qemu-devel] Wierd hack to sound/pci/intel8x0.c

2011-11-06 Thread Takashi Iwai
At Sun, 06 Nov 2011 18:31:42 +0200, Avi Kivity wrote: > > On 11/06/2011 06:15 PM, Denis V. Lunev wrote: > > On 11/6/11 6:51 PM, Avi Kivity wrote: > >> The recently merged 228cf79376f1 ("ALSA: intel8x0: Improve performance > >> in virtual environment") is hacky and somewhat wrong. > >> > >> First,

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Jan Kiszka
On 2011-11-06 17:30, Pekka Enberg wrote: > Hi Jan, > > On Sun, Nov 6, 2011 at 6:19 PM, Jan Kiszka wrote: >> "Usable" - I've tried kvm-tool several times and still (today) fail to >> get a standard SUSE image (with a kernel I have to compile and provide >> separately...) up and running *). Likely

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 6:19 PM, Jan Kiszka wrote: > In contrast, you can throw arbitrary Linux distros in various forms at > QEMU, and it will catch and run them. For me, already this is more usable. Yes, I completely agree that this is an unfortunate limitation in the KVM tool. We definitely nee

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
Hi Avi, On Sun, Nov 6, 2011 at 5:56 PM, Avi Kivity wrote: > On 11/06/2011 03:06 PM, Pekka Enberg wrote: >> On Sun, Nov 6, 2011 at 2:43 PM, Avi Kivity wrote: >> > You say that kvm-tool's scope is broader than Alex's script, therefore >> > the latter is pointless. >> >> I'm saying that Alex's scri

Re: [Qemu-devel] Wierd hack to sound/pci/intel8x0.c

2011-11-06 Thread Takashi Iwai
At Sun, 6 Nov 2011 20:15:01 +0400, Denis V. Lunev wrote: > > On 11/6/11 6:51 PM, Avi Kivity wrote: > > The recently merged 228cf79376f1 ("ALSA: intel8x0: Improve performance > > in virtual environment") is hacky and somewhat wrong. > > > > First, the detection code > > > > + if (inside_vm<

Re: [Qemu-devel] Wierd hack to sound/pci/intel8x0.c

2011-11-06 Thread Avi Kivity
On 11/06/2011 06:15 PM, Denis V. Lunev wrote: > On 11/6/11 6:51 PM, Avi Kivity wrote: >> The recently merged 228cf79376f1 ("ALSA: intel8x0: Improve performance >> in virtual environment") is hacky and somewhat wrong. >> >> First, the detection code >> >> + if (inside_vm< 0) { >> +

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
Hi Jan, On Sun, Nov 6, 2011 at 6:19 PM, Jan Kiszka wrote: > "Usable" - I've tried kvm-tool several times and still (today) fail to > get a standard SUSE image (with a kernel I have to compile and provide > separately...) up and running *). Likely a user mistake, but none that > is very obvious. A

[Qemu-devel] [PATCH] arm_gic: handle banked enable bits for per-cpu interrupts

2011-11-06 Thread Peter Maydell
From: Rabin Vincent The first enable set/clear register (which controls the PPIs and SGIs) is supposed to be banked for each processor. Currently it is just handled globally and this prevents recent SMP Linux kernels from booting, because CPU0 stops receiving localtimer interrupts when CPU1 disa

[Qemu-devel] [PULL 1.0rc1] arm-devs patch for 1.0

2011-11-06 Thread Peter Maydell
This pull request includes the single arm-gic patch which didn't quite make it in before 1.0rc0 (fixes "newer kernels don't boot"). Please pull. thanks -- PMM The following changes since commit 932eacc158c064935c7bab920c88a93a629e1ca4: Merge branch 'xtensa' of git://jcmvbkbc.spb.ru/dumb/qemu-x

[Qemu-devel] Virtual serial logging server?

2011-11-06 Thread Reeted
Dear all, please excuse the almost-OT question, I see various possibilities in quemu-kvm and libvirt for sending virtual serial port data to files, sockets, pipes, etc on the host. In particular, the TCP socket seems interesting. Can you suggest a server application to receive all such TCP con

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Jan Kiszka
On 2011-11-06 14:06, Pekka Enberg wrote: > Sure. I think it's mostly people that are interested in non-Linux > virtualization that think the KVM tool is a pointless project. > However, some people (including myself) think the KVM tool is a more > usable and hackable tool than QEMU for Linux virtual

Re: [Qemu-devel] Wierd hack to sound/pci/intel8x0.c

2011-11-06 Thread Denis V. Lunev
On 11/6/11 6:51 PM, Avi Kivity wrote: The recently merged 228cf79376f1 ("ALSA: intel8x0: Improve performance in virtual environment") is hacky and somewhat wrong. First, the detection code + if (inside_vm< 0) { + /* detect KVM and Parallels virtual environments */ +

[Qemu-devel] Accessing a linux guest's data structures

2011-11-06 Thread Ankur Dahiya
Hi I am a beginner qemu developer. I am running a linux guest inside qemu and I need to determine what process, thread is currently running in the guest. How should I do this? Any suggestions? Or can anyone point me to the relevant areas in qemu's source. Thanks. Ankur Dahiya

[Qemu-devel] [PATCH] qemu_timedate_diff() shouldn't modify its argument.

2011-11-06 Thread Gleb Natapov
The caller of qemu_timedate_diff() does not expect that tm it passes to the function will be modified, but mktime() is destructive and modifies its argument. Pass a copy of tm to it and set tm_isdst so that mktime() will not rely on it since its value may be outdated. Signed-off-by: Gleb Natapov

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Avi Kivity
On 11/06/2011 03:06 PM, Pekka Enberg wrote: > On Sun, Nov 6, 2011 at 2:43 PM, Avi Kivity wrote: > > You say that kvm-tool's scope is broader than Alex's script, therefore > > the latter is pointless. > > I'm saying that Alex's script is pointless because it's not attempting > to fix the real issue

[Qemu-devel] Wierd hack to sound/pci/intel8x0.c

2011-11-06 Thread Avi Kivity
The recently merged 228cf79376f1 ("ALSA: intel8x0: Improve performance in virtual environment") is hacky and somewhat wrong. First, the detection code + if (inside_vm < 0) { + /* detect KVM and Parallels virtual environments */ + inside_vm = kvm_para_available();

Re: [Qemu-devel] [PATCH] Support for UDP unicast network backend

2011-11-06 Thread Benjamin Epitech
Here's the link, replace ' AT ' by '@', the server thought it was an email address. http://www.mail-archive.com/qemu-devel AT nongnu.org/msg81235.html As I've been notified, localport should disappear and localaddr should be used to

Re: [Qemu-devel] [PATCH v2 4/7] block: take lock around bdrv_read implementations

2011-11-06 Thread Avi Kivity
On 10/20/2011 01:16 PM, Paolo Bonzini wrote: > This does the first part of the conversion to coroutines, by > wrapping bdrv_read implementations to take the read side of the > rwlock. > > Drivers that implement bdrv_read rather than bdrv_co_readv can > then benefit from asynchronous operation (at l

Re: [Qemu-devel] [PATCH] Support for UDP unicast network backend

2011-11-06 Thread Jan Kiszka
On 2011-11-06 21:55, Benjamin wrote: > Follow-up of: > http://www.mail-archive.com/qemu-devel@nongnu.org/msg81235.html > > This enables connections between Qemu, Dynamips and VirtualBox guests. > > Test it with: > > qemu-system-i386 -netdev > socket,id=gns3,udp=127.0.0.1:4243,localport=127.0.0.1

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Jan Kiszka
On 2011-08-24 23:38, Alexander Graf wrote: > On LinuxCon I had a nice chat with Linus on what he thinks kvm-tool > would be doing and what he expects from it. Basically he wants a > small and simple tool he and other developers can run to try out and > see if the kernel they just built actually wor

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 2:43 PM, Avi Kivity wrote: > Alex's script, though, is just a few dozen lines.  kvm-tool is a 20K > patch - in fact 2X as large as kvm when it was first merged.  And it's > main feature seems to be that "it is not qemu". I think I've mentioned many times that I find the QEM

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 2:43 PM, Avi Kivity wrote: > You say that kvm-tool's scope is broader than Alex's script, therefore > the latter is pointless. I'm saying that Alex's script is pointless because it's not attempting to fix the real issues. For example, we're trying to make make it as easy as

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Avi Kivity
On 11/06/2011 02:32 PM, Pekka Enberg wrote: > On Sun, Nov 6, 2011 at 2:27 PM, Avi Kivity wrote: > > But from your description, you're trying to solve just another narrow > > problem: > > > > "The end game for me is to replace QEMU/VirtualBox for Linux on Linux > > virtualization for my day to day

[Qemu-devel] oVirt workshop links

2011-11-06 Thread Dor Laor
http://www.ovirt.org/ is a complete set of open source management code, specific for qemu/kvm. It is based on Red Hat's RHEV-M code which is our enterprise ready solution for VMs (now java based, no windows, thanks for asking). Beyond plenty of Red Hat developers, the project got the support of

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 2:27 PM, Avi Kivity wrote: > But from your description, you're trying to solve just another narrow > problem: > > "The end game for me is to replace QEMU/VirtualBox for Linux on Linux > virtualization for my day to day purposes. " > > We rarely merge a subsystem to solve one

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 1:50 PM, Avi Kivity wrote: > So far, kvm-tool capabilities are a subset of qemu's.  Does it add > anything beyond a different command-line? I think "different command line" is a big thing which is why we've spent so much time on it. But if you mean other end user features,

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Avi Kivity
On 11/06/2011 02:14 PM, Pekka Enberg wrote: > On Sun, Nov 6, 2011 at 1:50 PM, Avi Kivity wrote: > >> People seem to think the KVM tool is only about solving a specific > >> problem to kernel developers. That's certainly never been my goal as I > >> do lots of userspace programming as well. The end

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 1:50 PM, Avi Kivity wrote: >> People seem to think the KVM tool is only about solving a specific >> problem to kernel developers. That's certainly never been my goal as I >> do lots of userspace programming as well. The end game for me is to >> replace QEMU/VirtualBox for Li

[Qemu-devel] [PATCH] Support for UDP unicast network backend

2011-11-06 Thread Benjamin
Follow-up of: http://www.mail-archive.com/qemu-devel@nongnu.org/msg81235.html This enables connections between Qemu, Dynamips and VirtualBox guests. Test it with: qemu-system-i386 -netdev socket,id=gns3,udp=127.0.0.1:4243,localport=127.0.0.1:4242 -device e1000,netdev=gns3 /path/to/hard/drive

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Avi Kivity
On 11/06/2011 01:08 PM, Pekka Enberg wrote: > On Sun, 2011-11-06 at 12:23 +0200, Avi Kivity wrote: > > In most installations, qemu is driven by other programs, so any changes > > to the command line would be invisible, except insofar as they break things. > > > > For the occasional direct user of

[Qemu-devel] Summary of CD, DVD passthrough tests with -drive if=scsi

2011-11-06 Thread Thomas Schmitt
Hi, since i had to give up the plan to test BD burning, i now post the first summary of passthrough testing on base of if=scsi . Next i will try to follow Paolo Bonzini's proposal to use if=virtio. - List of successes and

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
Hi Avi, On Sun, 2011-11-06 at 12:23 +0200, Avi Kivity wrote: > > If this is a serious attempt in making QEMU command line suck less on > > Linux, I think it makes sense to do this properly instead of adding a > > niche script to the kernel tree that's simply going to bit rot over > > time. > > Yo

Re: [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ?

2011-11-06 Thread Thomas Schmitt
Hi, Paolo Bonzini wrote: > It would be more interesting if you tried again the failure cases with a > virtio drive (if=virtio). It would appear as /dev/vda but you can issue > SG_IO to it. This would isolate the failure to the kernels vs. the SCSI > subsystem. Will do. I am currently fighting w

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Avi Kivity
On 11/06/2011 12:12 PM, Pekka Enberg wrote: > On Sun, Nov 6, 2011 at 12:07 PM, Avi Kivity wrote: > >> I'm happy to see some real competition for the KVM tool in usability. ;-) > >> > >> That said, while the script looks really useful for developers, > >> wouldn't it make more sense to put it in QE

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
On Sun, Nov 6, 2011 at 12:07 PM, Avi Kivity wrote: >> I'm happy to see some real competition for the KVM tool in usability. ;-) >> >> That said, while the script looks really useful for developers, >> wouldn't it make more sense to put it in QEMU to make sure it's kept >> up-to-date and distributi

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Avi Kivity
On 11/06/2011 12:04 PM, Pekka Enberg wrote: > Hi Alexander, > > On Sun, Nov 6, 2011 at 3:35 AM, Alexander Graf wrote: > > On LinuxCon I had a nice chat with Linus on what he thinks kvm-tool > > would be doing and what he expects from it. Basically he wants a > > small and simple tool he and other

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-06 Thread Pekka Enberg
Hi Alexander, On Sun, Nov 6, 2011 at 3:35 AM, Alexander Graf wrote: > On LinuxCon I had a nice chat with Linus on what he thinks kvm-tool > would be doing and what he expects from it. Basically he wants a > small and simple tool he and other developers can run to try out and > see if the kernel t

Re: [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ?

2011-11-06 Thread Thomas Schmitt
Hi, i wanted to test Blu-ray burning and attached a BD recorder via USB to the host. Its power was switched on, before i booted the host. The host can operate this drive. But the qemu guest obviously has severe problems with it. There is a 'QEMU DVD-ROM' at /dev/sr0. There is also a /dev/sr1, wh

Re: [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ?

2011-11-06 Thread Paolo Bonzini
On 11/05/2011 09:47 PM, Thomas Schmitt wrote: Since BD-R are very similar to DVD+R, but much more expensive, i will tomorrow only test the case without RESERVE TRACK. Yeah, I don't think it's necessary. It would be more interesting if you tried again the failure cases with a virtio drive (if=