[Qemu-devel] [0/3] pseries: Support and improvements for KVM Book3S-HV support

2011-09-29 Thread David Gibson
Alex Graf has added support for KVM acceleration of the pseries machine, using his Book3S-PR KVM variant, which runs the guest in userspace, emulating supervisor operations. Recent kernels now have the Book3S-HV KVM variant which uses the hardware hypervisor features of recent POWER CPUs. Alex's

[Qemu-devel] [PATCH 2/3] pseries: Allow KVM Book3S-HV on PPC970 CPUS

2011-09-29 Thread David Gibson
At present, using the hypervisor aware Book3S-HV KVM will only work with qemu on POWER7 CPUs. PPC970 CPUs also have hypervisor capability, but they lack the VRMA feature which makes assigning guest memory easier. In order to allow KVM Book3S-HV on PPC970, we need to specially allocate the first

[Qemu-devel] [PATCH 1/3] pseries: Support SMT systems for KVM Book3S-HV

2011-09-29 Thread David Gibson
Alex Graf has already made qemu support KVM for the pseries machine when using the Book3S-PR KVM variant (which runs the guest in usermode, emulating supervisor operations). This code allows gets us very close to also working with KVM Book3S-HV (using the hypervisor capabilities of recent POWER

Re: [Qemu-devel] [PATCH v3 0/6]: block: Add I/O status support

2011-09-29 Thread Mark Wu
On 09/27/2011 04:43 AM, Luiz Capitulino wrote: This series adds support to the block layer to keep track of devices' I/O status. That information is also made available in QMP and HMP. The goal here is to allow management applications that miss the BLOCK_IO_ERROR event to able to query the VM

Re: [Qemu-devel] [PATCH 1/3] pseries: Support SMT systems for KVM Book3S-HV

2011-09-29 Thread Jan Kiszka
On 2011-09-29 08:45, David Gibson wrote: diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 35a6f10..2c1bc7a 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c ... @@ -76,6 +78,9 @@ int kvm_arch_init(KVMState *s) cap_interrupt_level = kvm_check_extension(s,

Re: [Qemu-devel] [PATCH 3/3] pseries: Use Book3S-HV TCE acceleration capabilities

2011-09-29 Thread Jan Kiszka
On 2011-09-29 08:45, David Gibson wrote: The pseries machine of qemu implements the TCE mechanism used as a virtual IOMMU for the PAPR defined virtual IO devices. Because the PAPR spec only defines a small DMA address space, the guest VIO drivers need to update TCE mappings very frequently -

[Qemu-devel] Add minimal support for Cortex A15 for ARM KVM

2011-09-29 Thread bill4carson
This patch adds minimal support for Cortex A15 to run under ARM KVM, which pavesthe way to ARM interrupt/time virtualization. Patches are based on: git://git.ncl.cs.columbia.edu/pub/git/qemu For how to setup ARM KVM environment, please refer:

[Qemu-devel] [PATCH] Add Qemu A15 minimal support for ARM KVM

2011-09-29 Thread bill4carson
From: Bill Carson bill4car...@gmail.com This patch add some A15 codes which enables ARM KVM could run Guest OS build with Versatile Express Cortex-A15x4 tile. Signed-off-by: Bill Carson bill4car...@gmail.com --- Makefile.target |2 +- hw/a15mpcore.c | 146

Re: [Qemu-devel] [PATCH 06/11] hw/ac97: new support for volume control

2011-09-29 Thread Wayne Gao
Hi Marc-André, --- hw/ac97.c | 79 + 1 files changed, 79 insertions(+), 0 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index ba94835..4a7c4ed 100644 --- a/hw/ac97.c

[Qemu-devel] When do we need to do TB unchaining?

2011-09-29 Thread 陳韋任
Hi, all I am looking for when TB unchaining is needed. Currently, I can only see there are three spots (take i386-softmmu as an example): 1. cpu_interrupt: When virtual devices raise interrupts, eventually apic_local_deliver (apic.c) will call cpu_interrupt. cpu_interrupt will set up

Re: [Qemu-devel] [PATCH] Remove line buffering from log file

2011-09-29 Thread Peter Maydell
On 29 September 2011 06:03, Peter Chubb peter.ch...@nicta.com.au wrote: Stefan That's the reason why line buffering is needed today.  I Stefan enable log file output to see what happened last before the Stefan crash. Thanks for this, I didn't think of this use-case.  I don't think I've ever

[Qemu-devel] Bug in helper_pcmpestrm and helper_pcmpistrm

2011-09-29 Thread Frank Mehnert
Hi, the two functions helper_pcmpestrm() and helper_pcmpistrm() in target-i386/ops_sse.h contain obviously typos. I think that at all 4 marked places should increment the index 'i', not decrement it during the loop: void glue(helper_pcmpestrm, SUFFIX) (Reg *d, Reg *s, uint32_t ctrl) { int

Re: [Qemu-devel] [PATCH] This patch adds a new block driver : iSCSI

2011-09-29 Thread Stefan Hajnoczi
On Wed, Sep 21, 2011 at 07:37:55PM +1000, Ronnie Sahlberg wrote: This provides built-in support for iSCSI to QEMU. This has the advantage that the iSCSI devices need not be made visible to the host, which is useful if you have very many virtual machines and very many iscsi devices. It also

Re: [Qemu-devel] boot fail!

2011-09-29 Thread Donald
Your description might be too simple. . On Thu, Sep 29, 2011 at 5:00 AM, shbi shb shbi@gmail.com wrote: Hi, I got a snapshot from my guest Windows but I cannot load it again and my qcow2 image cannot be loaded again (Boot fail error!). Could you please help me bout this problem?

Re: [Qemu-devel] [PATCH] [ARM] Fix sp804 dual-timer

2011-09-29 Thread Peter Maydell
On 29 September 2011 03:34, Peter Chubb peter.ch...@nicta.com.au wrote: -/* ??? Don't know the PrimeCell ID for this device. */ if (offset 0x20) { return arm_timer_read(s-timer[0], offset); -} else { +} +if (offset 0x40) { return

[Qemu-devel] balloon drivers missing in virtio-win-1.1.16.vfd

2011-09-29 Thread Onkar N Mahajan
virtio_balloon drivers are missing in the virtio-win floppy disk image found at http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/ whereas they are present in the ISO image , any specific reason for this ? Shouldn't they be ideally present ? Regards, Onkar

Re: [Qemu-devel] [PATCH] pseries: Update SLOF firmware image

2011-09-29 Thread Paolo Bonzini
On 09/29/2011 06:19 AM, David Gibson wrote: This patch updates the SLOF submodule and recompiled image. The new SLOF versions contains two changes of note: * The previous SLOF has a bug in SCSI condition handling that was exposed by recent updates to qemu's SCSI emulation. This update

[Qemu-devel] [PATCH] Ensure an error is reported to user if 9pfs mount tag is too long

2011-09-29 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com If the 9pfs mount tag is longer than MAX_TAG_LEN bytes, rather than silently truncating the tag which will likely break the guest OS, report an immediate error and exit QEMU * hw/9pfs/virtio-9p-device.c: Report error exit if mount tag is too long

[Qemu-devel] [PATCH] Raise 9pfs mount_tag limit from 32 to 255 bytes

2011-09-29 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com The Linux guest kernel does not appear to have a problem handling a mount_tag larger than 32 bytes. Increase the limit to 255 bytes, though perhaps it can be made larger still, or not limited at all ? Tested with a 3.0.4 kernel and a mount_tag 255

[Qemu-devel] [PATCH v2] tcg-i386: Introduce limited deposit support

2011-09-29 Thread Jan Kiszka
x86 cannot provide an optimized generic deposit implementation. But at least for a few special cases, namely for writing bits 0..7, 8..15, and 0..15, versions using only a single instruction are feasible. Introducing such limited support improves emulating 16-bit x86 code on x86, but also rarer

[Qemu-devel] [RFC PATCH] Introduce tracing for 9p pdu handlers

2011-09-29 Thread Harsh Prateek Bora
Plan is to replace the existing debug infrastructure with Qemu tracing infrastructure so that user can dynamically enable/disable trace events and therefore a meaningful trace log can be generated which can be further filtered using analysis script. Note: Because of current simpletrace

[Qemu-devel] [PATCH 2/2] Remove virtio-9p-debug.* infra since we are using Qemu Tracing now.

2011-09-29 Thread Harsh Prateek Bora
Removing the existing debug infrastrucure as proposed to be replaced by Qemu Tracing infrastructure. Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- Makefile.objs |2 +- hw/9pfs/virtio-9p-debug.c | 646 -

[Qemu-devel] [PATCH 1/2] Introduce tracing for 9p pdu handlers

2011-09-29 Thread Harsh Prateek Bora
Plan is to replace the existing debug infrastructure with Qemu tracing infrastructure so that user can dynamically enable/disable trace events and therefore a meaningful trace log can be generated which can be further filtered using analysis script. Note: Because of current simpletrace

[Qemu-devel] [RFC PATCH 0/2] Replace 9p debug infrastructure with Qemu Tracing

2011-09-29 Thread Harsh Prateek Bora
This patchset introduces Qemu Tracing to 9p pdu handlers and removes the existing debug infrastructure which becomes less meaningful after the introduction of coroutines. Parallel operations creates a messy output and filtering becomes difficult. With Qemu tracing in place, we can selectively

Re: [Qemu-devel] [PATCH 06/21] qapi: dealloc visitor, fix premature free and iteration logic

2011-09-29 Thread Anthony Liguori
On 09/28/2011 09:44 AM, Luiz Capitulino wrote: From: Michael Rothmdr...@linux.vnet.ibm.com Currently we do 3 things wrong: 1) The list iterator, in practice, is used in a manner where the pointer we pass in is the same as the pointer we assign the output to from visit_next_list(). This causes

Re: [Qemu-devel] [PATCH 08/21] qapi: add test cases for generated free functions

2011-09-29 Thread Anthony Liguori
On 09/28/2011 09:44 AM, Luiz Capitulino wrote: From: Michael Rothmdr...@linux.vnet.ibm.com Signed-off-by: Michael Rothmdr...@linux.vnet.ibm.com Signed-off-by: Luiz Capitulinolcapitul...@redhat.com --- test-qmp-commands.c | 29 + 1 files changed, 29

Re: [Qemu-devel] [PATCH 07/21] qapi: generate qapi_free_* functions for *List types

2011-09-29 Thread Anthony Liguori
On 09/28/2011 09:44 AM, Luiz Capitulino wrote: From: Michael Rothmdr...@linux.vnet.ibm.com Signed-off-by: Michael Rothmdr...@linux.vnet.ibm.com Signed-off-by: Luiz Capitulinolcapitul...@redhat.com Reviewed-by: Anthony Liguori aligu...@us.ibm.com Regards, Anthony Liguori ---

Re: [Qemu-devel] [PATCH 09/21] qapi: dealloc visitor, support freeing of nested lists

2011-09-29 Thread Anthony Liguori
On 09/28/2011 09:44 AM, Luiz Capitulino wrote: From: Michael Rothmdr...@linux.vnet.ibm.com Previously our logic for keeping track of when we're visiting the head of a list was done via a global bool. This can be overwritten if dealing with nested lists, so use stack entries to track this

Re: [Qemu-devel] [PATCH 10/21] qapi: modify visitor code generation for list iteration

2011-09-29 Thread Anthony Liguori
On 09/28/2011 09:44 AM, Luiz Capitulino wrote: From: Michael Rothmdr...@linux.vnet.ibm.com Modify logic such that we never assign values to the list head argument to progress through the list on subsequent iterations, instead rely only on having our return value passed back in as an argument on

Re: [Qemu-devel] [PATCH 12/21] qapi: Convert query-version

2011-09-29 Thread Anthony Liguori
On 09/28/2011 09:44 AM, Luiz Capitulino wrote: The original conversion was done by Anthony Liguori. This commit is just a rebase. For all of the rest of the patches, you can add my Signed-off-by: before your SoB. Then you don't need to have the disclaimer in the commit message. Regards,

Re: [Qemu-devel] [PATCH v1 00/21]: First round of QAPI conversions

2011-09-29 Thread Anthony Liguori
On 09/28/2011 09:44 AM, Luiz Capitulino wrote: This series is a bundle of three things: 1. Patches 01 to 04 add the middle mode feature to the current QMP server. That mode allows for the current server to support QAPI commands. The Original author is Anthony, you can find his

Re: [Qemu-devel] [PATCH] pseries: Implement set-time-of-day RTAS function

2011-09-29 Thread Alexander Graf
On 29.09.2011, at 04:53, David Gibson wrote: From: Breno Leitao bren...@br.ibm.com Currently there is no implementation for set-time-of-day rtas function, which causes the following warning setting the clock failed (-1) on the guest. This patch just creates this function, get the

Re: [Qemu-devel] [PATCH 1/3] pseries: Support SMT systems for KVM Book3S-HV

2011-09-29 Thread Alexander Graf
On 29.09.2011, at 08:45, David Gibson wrote: Alex Graf has already made qemu support KVM for the pseries machine when using the Book3S-PR KVM variant (which runs the guest in usermode, emulating supervisor operations). This code allows gets us very close to also working with KVM Book3S-HV

Re: [Qemu-devel] [PATCH 2/3] pseries: Allow KVM Book3S-HV on PPC970 CPUS

2011-09-29 Thread Alexander Graf
On 29.09.2011, at 08:45, David Gibson wrote: At present, using the hypervisor aware Book3S-HV KVM will only work with qemu on POWER7 CPUs. PPC970 CPUs also have hypervisor capability, but they lack the VRMA feature which makes assigning guest memory easier. In order to allow KVM

Re: [Qemu-devel] [PATCH 3/3] pseries: Use Book3S-HV TCE acceleration capabilities

2011-09-29 Thread Alexander Graf
On 29.09.2011, at 08:45, David Gibson wrote: The pseries machine of qemu implements the TCE mechanism used as a virtual IOMMU for the PAPR defined virtual IO devices. Because the PAPR spec only defines a small DMA address space, the guest VIO drivers need to update TCE mappings very

[Qemu-devel] [RFC][PATCH 0/5] backdoor: lightweight guest-to-QEMU backdoor channel

2011-09-29 Thread Lluís Vilanova
Provides the ability for the guest to communicate with user-provided code inside QEMU itself, using a lightweight mechanism. See first commit for a full description. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Lluís Vilanova (5): backdoor: Add documentation backdoor: Add

Re: [Qemu-devel] [PATCH v1 00/21]: First round of QAPI conversions

2011-09-29 Thread Luiz Capitulino
On Thu, 29 Sep 2011 07:55:37 -0500 Anthony Liguori aligu...@us.ibm.com wrote: On 09/28/2011 09:44 AM, Luiz Capitulino wrote: This series is a bundle of three things: 1. Patches 01 to 04 add the middle mode feature to the current QMP server. That mode allows for the current server

Re: [Qemu-devel] [RFC][PATCH 0/5] backdoor: lightweight guest-to-QEMU backdoor channel

2011-09-29 Thread Anthony Liguori
On 09/29/2011 08:47 AM, Lluís Vilanova wrote: Provides the ability for the guest to communicate with user-provided code inside QEMU itself, using a lightweight mechanism. See first commit for a full description. Signed-off-by: Lluís Vilanovavilan...@ac.upc.edu We already have two backdoors

[Qemu-devel] [PATCH 2/5] backdoor: Add build infrastructure

2011-09-29 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile |3 ++- Makefile.objs | 18 ++ Makefile.target |4 +++- backdoor/qemu/qemu-backdoor.h | 29 + configure |

[Qemu-devel] [PATCH] tap: Add optional parameters to up/down script

2011-09-29 Thread Sasha Levin
This allows the user to add custom parameters to the up or down scripts. Cc: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Sasha Levin levinsasha...@gmail.com --- net.c |8 net/tap.c | 37 ++--- 2 files changed, 38 insertions(+), 7

Re: [Qemu-devel] [PATCH] tap: Add optional parameters to up/down script

2011-09-29 Thread Jan Kiszka
On 2011-09-29 15:57, Sasha Levin wrote: This allows the user to add custom parameters to the up or down scripts. What kind of parameters would you want to pass? Something that tells VMs apart (which can be solved without these extensions) or more? Jan -- Siemens AG, Corporate Technology,

[Qemu-devel] [PATCH 3/5] backdoor: [*-user] Add QEMU-side proxy to libbackdoor.a

2011-09-29 Thread Lluís Vilanova
QEMU detects when the guest uses 'mmap' on the control channel file, and then uses 'mprotect' to detect accesses to it, which are redirected to the user-provided libbackdoor.a. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile.objs|2 + backdoor/qemu/user.c | 194

[Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to libbackdoor.a

2011-09-29 Thread Lluís Vilanova
Uses a virtual device to proxy uses of the backdoor communication channel to the user-provided code. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile.objs |1 backdoor/qemu/softmmu.c | 124 +++ hw/pci.h|

[Qemu-devel] [PATCH 5/5] backdoor: Add guest-side library

2011-09-29 Thread Lluís Vilanova
Guest applications can link against libqemu-backdoor-guest.a to use the backdoor communication channel. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- backdoor/guest/Makefile| 18 ++ backdoor/guest/common.c| 130

Re: [Qemu-devel] [PATCH 12/21] qapi: Convert query-version

2011-09-29 Thread Luiz Capitulino
On Thu, 29 Sep 2011 07:54:57 -0500 Anthony Liguori aligu...@us.ibm.com wrote: On 09/28/2011 09:44 AM, Luiz Capitulino wrote: The original conversion was done by Anthony Liguori. This commit is just a rebase. For all of the rest of the patches, you can add my Signed-off-by: before your

[Qemu-devel] [PATCH 1/5] backdoor: Add documentation

2011-09-29 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- docs/backdoor.txt | 144 + 1 files changed, 144 insertions(+), 0 deletions(-) create mode 100644 docs/backdoor.txt diff --git a/docs/backdoor.txt b/docs/backdoor.txt new file mode 100644

Re: [Qemu-devel] [PATCH] tap: Add optional parameters to up/down script

2011-09-29 Thread Thomas Jung
On 2011-09-29 16:11 jan kiszka wrote What kind of parameters would you want to pass? Something that tells VMs apart (which can be solved without these extensions) or more? Jan In our Case: We want to simulate an larger environment with multiple switches realized in openvswitch. Openvswitch

Re: [Qemu-devel] [PATCH 12/21] qapi: Convert query-version

2011-09-29 Thread Anthony Liguori
On 09/29/2011 09:32 AM, Luiz Capitulino wrote: On Thu, 29 Sep 2011 07:54:57 -0500 Anthony Liguorialigu...@us.ibm.com wrote: On 09/28/2011 09:44 AM, Luiz Capitulino wrote: The original conversion was done by Anthony Liguori. This commit is just a rebase. For all of the rest of the patches,

[Qemu-devel] [PATCH] linux-user: Fix broken -version option

2011-09-29 Thread Peter Maydell
Fix the -version option, which was accidentally broken in commit fc9c541: * exit after printing version information rather than proceeding blithely onward (and likely printing the full usage message) * correct the cut-n-paste error in the usage message for it * don't insist on the presence

Re: [Qemu-devel] [PATCH] tap: Add optional parameters to up/down script

2011-09-29 Thread Anthony Liguori
On 09/29/2011 08:57 AM, Sasha Levin wrote: This allows the user to add custom parameters to the up or down scripts. Cc: Anthony Liguorialigu...@us.ibm.com Signed-off-by: Sasha Levinlevinsasha...@gmail.com --- net.c |8 net/tap.c | 37 ++---

Re: [Qemu-devel] Qemu varying performance

2011-09-29 Thread Torbjorn Granlund
Edgar E. Iglesias edgar.igles...@gmail.com writes: But running Debian's 64-bit kernel vmlinux-2.6.32-5-5kc-malta under qemu-system-mips64 consumes 100% on the host system, whether the guest is idle or busy. (And for qemu-system-mips64el, the same is true for the corresponding 64-bit

Re: [Qemu-devel] [PATCH] Raise 9pfs mount_tag limit from 32 to 255 bytes

2011-09-29 Thread Aneesh Kumar K.V
On Thu, 29 Sep 2011 11:34:21 +0100, Daniel P. Berrange berra...@redhat.com wrote: From: Daniel P. Berrange berra...@redhat.com The Linux guest kernel does not appear to have a problem handling a mount_tag larger than 32 bytes. Increase the limit to 255 bytes, though perhaps it can be made

Re: [Qemu-devel] [PATCH v2] tcg-i386: Introduce limited deposit support

2011-09-29 Thread Richard Henderson
On 09/29/2011 04:31 AM, Jan Kiszka wrote: x86 cannot provide an optimized generic deposit implementation. But at least for a few special cases, namely for writing bits 0..7, 8..15, and 0..15, versions using only a single instruction are feasible. Introducing such limited support improves

Re: [Qemu-devel] [PATCH] Ensure an error is reported to user if 9pfs mount tag is too long

2011-09-29 Thread Aneesh Kumar K.V
On Thu, 29 Sep 2011 11:33:44 +0100, Daniel P. Berrange berra...@redhat.com wrote: From: Daniel P. Berrange berra...@redhat.com If the 9pfs mount tag is longer than MAX_TAG_LEN bytes, rather than silently truncating the tag which will likely break the guest OS, report an immediate error and

Re: [Qemu-devel] [PATCH v2] tcg-i386: Introduce limited deposit support

2011-09-29 Thread Jan Kiszka
On 2011-09-29 16:58, Richard Henderson wrote: On 09/29/2011 04:31 AM, Jan Kiszka wrote: x86 cannot provide an optimized generic deposit implementation. But at least for a few special cases, namely for writing bits 0..7, 8..15, and 0..15, versions using only a single instruction are feasible.

Re: [Qemu-devel] [PATCH] tap: Add optional parameters to up/down script

2011-09-29 Thread Jan Kiszka
On 2011-09-29 16:40, Thomas Jung wrote: On 2011-09-29 16:11 jan kiszka wrote What kind of parameters would you want to pass? Something that tells VMs apart (which can be solved without these extensions) or more? Jan In our Case: We want to simulate an larger environment with multiple

Re: [Qemu-devel] [PATCH] Raise 9pfs mount_tag limit from 32 to 255 bytes

2011-09-29 Thread Daniel P. Berrange
On Thu, Sep 29, 2011 at 08:23:49PM +0530, Aneesh Kumar K.V wrote: On Thu, 29 Sep 2011 11:34:21 +0100, Daniel P. Berrange berra...@redhat.com wrote: From: Daniel P. Berrange berra...@redhat.com The Linux guest kernel does not appear to have a problem handling a mount_tag larger than 32

[Qemu-devel] [PATCH v3] tcg-i386: Introduce limited deposit support

2011-09-29 Thread Jan Kiszka
x86 cannot provide an optimized generic deposit implementation. But at least for a few special cases, namely for writing bits 0..7, 8..15, and 0..15, versions using only a single instruction are feasible. Introducing such limited support improves emulating 16-bit x86 code on x86, but also rarer

Re: [Qemu-devel] VirtIO 9p mount_tag (bogus?) limit of 32 bytes

2011-09-29 Thread Aneesh Kumar K.V
On Wed, 28 Sep 2011 16:18:07 +0100, Daniel P. Berrange berra...@redhat.com wrote: On Wed, Sep 28, 2011 at 05:22:06PM +0530, Harsh Bora wrote: On 09/22/2011 11:12 PM, Daniel P. Berrange wrote: I've noticed that if you use a virtio 9p filesystem with a mount_tag property value that is longer

Re: [Qemu-devel] [PATCH] tap: Add optional parameters to up/down script

2011-09-29 Thread Sasha Levin
On Thu, 2011-09-29 at 17:20 +0200, Jan Kiszka wrote: On 2011-09-29 16:40, Thomas Jung wrote: On 2011-09-29 16:11 jan kiszka wrote What kind of parameters would you want to pass? Something that tells VMs apart (which can be solved without these extensions) or more? Jan In our Case:

Re: [Qemu-devel] [PATCH 3/3] Delayed IP packets

2011-09-29 Thread Amit Shah
On (Wed) 03 Aug 2011 [13:24:22], Jan Kiszka wrote: From: Fabien Chouteau chout...@adacore.com In the current implementation, if Slirp tries to send an IP packet to a client with an unknown hardware address, the packet is simply dropped and an ARP request is sent (if_encap in slirp/slirp.c).

Re: [Qemu-devel] [PATCH v3] tcg-i386: Introduce limited deposit support

2011-09-29 Thread Richard Henderson
On 09/29/2011 08:23 AM, Jan Kiszka wrote: +#ifndef TCG_TARGET_deposit_i32_valid +#define TCG_TARGET_deposit_i32_valid(ofs, len) 0 +#endif +#ifndef TCG_TARGET_deposit_i64_valid +#define TCG_TARGET_deposit_i64_valid(ofs, len) 0 +#endif Err, no. The default is true. The targets that

[Qemu-devel] [PATCH v4] tcg-i386: Introduce limited deposit support

2011-09-29 Thread Jan Kiszka
On 2011-09-29 18:11, Richard Henderson wrote: On 09/29/2011 08:23 AM, Jan Kiszka wrote: +#ifndef TCG_TARGET_deposit_i32_valid +#define TCG_TARGET_deposit_i32_valid(ofs, len) 0 +#endif +#ifndef TCG_TARGET_deposit_i64_valid +#define TCG_TARGET_deposit_i64_valid(ofs, len) 0 +#endif Err, no.

[Qemu-devel] (no subject)

2011-09-29 Thread Ottavio
I wonder if it is possible to compile a newer version of qemu with (the defunct) kqemu on Windows (XP)? The winkvm project doesn't seem to be usable yet. -- Ottavio

[Qemu-devel] Kqemu support in current qemu

2011-09-29 Thread Ottavio
Sorry, I had forgotten to add a title -- Forwarded message -- From: Ottavio pr0f3ss0r1...@yahoo.com Date: 29 September 2011 17:55 Subject: To: qemu-devel@nongnu.org Cc: qemu-us...@yahoogroups.com I wonder if it is possible to compile a newer version of qemu with (the defunct)

Re: [Qemu-devel] [RFC][PATCH 0/5] backdoor: lightweight guest-to-QEMU backdoor channel

2011-09-29 Thread Lluís Vilanova
Anthony Liguori writes: On 09/29/2011 08:47 AM, Lluís Vilanova wrote: Provides the ability for the guest to communicate with user-provided code inside QEMU itself, using a lightweight mechanism. See first commit for a full description. Signed-off-by: Lluís Vilanovavilan...@ac.upc.edu

Re: [Qemu-devel] Kqemu support in current qemu

2011-09-29 Thread Alexander Graf
Am 29.09.2011 um 18:57 schrieb Ottavio pr0f3ss0r1...@yahoo.com: Sorry, I had forgotten to add a title -- Forwarded message -- From: Ottavio pr0f3ss0r1...@yahoo.com Date: 29 September 2011 17:55 Subject: To: qemu-devel@nongnu.org Cc: qemu-us...@yahoogroups.com I

[Qemu-devel] [PATCH v3] Add AACI audio playback support to the ARM Versatile/PB platform

2011-09-29 Thread Mathieu Sonet
This driver emulates the ARM AACI interface (PL041) connected to a LM4549 codec. It enables audio playback for the Versatile/PB platform. Limitations: - Supports only a playback on one channel (Versatile/Vexpress) - Supports only a TX FIFO in compact-mode. - Record is not supported. - The PL041

Re: [Qemu-devel] [PATCH 3/3] Delayed IP packets

2011-09-29 Thread Jan Kiszka
On 2011-09-29 18:06, Amit Shah wrote: On (Wed) 03 Aug 2011 [13:24:22], Jan Kiszka wrote: From: Fabien Chouteau chout...@adacore.com In the current implementation, if Slirp tries to send an IP packet to a client with an unknown hardware address, the packet is simply dropped and an ARP

Re: [Qemu-devel] [PATCH 3/3] Delayed IP packets

2011-09-29 Thread Amit Shah
On (Thu) 29 Sep 2011 [19:41:33], Jan Kiszka wrote: On 2011-09-29 18:06, Amit Shah wrote: On (Wed) 03 Aug 2011 [13:24:22], Jan Kiszka wrote: From: Fabien Chouteau chout...@adacore.com In the current implementation, if Slirp tries to send an IP packet to a client with an unknown

Re: [Qemu-devel] [PATCH 3/3] Delayed IP packets

2011-09-29 Thread Jan Kiszka
On 2011-09-29 19:50, Amit Shah wrote: On (Thu) 29 Sep 2011 [19:41:33], Jan Kiszka wrote: On 2011-09-29 18:06, Amit Shah wrote: On (Wed) 03 Aug 2011 [13:24:22], Jan Kiszka wrote: From: Fabien Chouteau chout...@adacore.com In the current implementation, if Slirp tries to send an IP packet to a

Re: [Qemu-devel] [PATCH 3/3] Delayed IP packets

2011-09-29 Thread Amit Shah
On (Thu) 29 Sep 2011 [19:53:47], Jan Kiszka wrote: Can't reproduce, I'm not getting stable hibernation here even without any network configured. With virtio devices and the patches applied? Can you tell me what you're seeing? No, I didn't patch my guest. I was using standard IDE

Re: [Qemu-devel] [PATCH v3] Add AACI audio playback support to the ARM Versatile/PB platform

2011-09-29 Thread malc
On Thu, 29 Sep 2011, Mathieu Sonet wrote: This driver emulates the ARM AACI interface (PL041) connected to a LM4549 codec. It enables audio playback for the Versatile/PB platform. Limitations: - Supports only a playback on one channel (Versatile/Vexpress) - Supports only a TX FIFO in

Re: [Qemu-devel] [RFC] Adding new filesystem 'proxy' to 9p

2011-09-29 Thread M. Mohan Kumar
On Wednesday, September 28, 2011 08:29:06 PM Daniel P. Berrange wrote: On Wed, Sep 28, 2011 at 07:49:34PM +0530, M. Mohan Kumar wrote: Pass-through security model in QEMU 9p server needs root privilege to do few file operations (like chown, chmod to any mode/uid:gid). There are two issues

Re: [Qemu-devel] [PATCH 3/3] Delayed IP packets

2011-09-29 Thread Jan Kiszka
On 2011-09-29 20:05, Amit Shah wrote: On (Thu) 29 Sep 2011 [19:53:47], Jan Kiszka wrote: Can't reproduce, I'm not getting stable hibernation here even without any network configured. With virtio devices and the patches applied? Can you tell me what you're seeing? No, I didn't patch my

Re: [Qemu-devel] [PATCH 3/3] Delayed IP packets

2011-09-29 Thread Amit Shah
On (Thu) 29 Sep 2011 [20:19:42], Jan Kiszka wrote: On 2011-09-29 20:05, Amit Shah wrote: On (Thu) 29 Sep 2011 [19:53:47], Jan Kiszka wrote: Can't reproduce, I'm not getting stable hibernation here even without any network configured. With virtio devices and the patches applied? Can you

Re: [Qemu-devel] [PULL] lm32 fixes and new milkymist hardware support

2011-09-29 Thread Anthony Liguori
On 09/15/2011 05:58 PM, Michael Walle wrote: Hi Anthony, here is a patch for target-lm32, which is broken with the current master. Additionally, support for the new uart of the milkymist SoC is added. The following changes since commit ef4f97cba2a354656b00eb8659bf61ab2321fa4e: Merge

Re: [Qemu-devel] [RFC PATCH 0/2] Replace 9p debug infrastructure with Qemu Tracing

2011-09-29 Thread Stefan Hajnoczi
On Thu, Sep 29, 2011 at 06:09:47PM +0530, Harsh Prateek Bora wrote: This patchset introduces Qemu Tracing to 9p pdu handlers and removes the existing debug infrastructure which becomes less meaningful after the introduction of coroutines. Parallel operations creates a messy output and

[Qemu-devel] QEMU Live Snapshots / Commiting

2011-09-29 Thread Robert P
Hello, I still have a problem with the Live Snapshot feature of QEMU and before migrating to XEN, VMware or something similare, a quick post here: OS: Ubuntu Natty 64bit First, i'm starting my KVM Machine with an image like this: qemu-img create -f qcow2 -o backing_file=NameOfBaseImage

Re: [Qemu-devel] [PATCH 16/21] qapi: Convert query-chardev

2011-09-29 Thread Michael Roth
Looks good, tested qmp/hmp commands. Reviewed-by: Michael Roth mdr...@linux.vnet.ibm.com Tested-by: Michael Roth mdr...@linux.vnet.ibm.com On Wed, 28 Sep 2011 11:44:40 -0300, Luiz Capitulino lcapitul...@redhat.com wrote: The original conversion was done by Anthony Liguori. This commit is just

Re: [Qemu-devel] [PATCH 17/21] qapi: Convert query-commands

2011-09-29 Thread Michael Roth
Reviewed-by: Michael Roth mdr...@linux.vnet.ibm.com Tested-by: Michael Roth mdr...@linux.vnet.ibm.com On Wed, 28 Sep 2011 11:44:41 -0300, Luiz Capitulino lcapitul...@redhat.com wrote: Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- monitor.c| 40

Re: [Qemu-devel] [FYI] Soft feature freeze for 1.0 is 10/15 (three weeks away)

2011-09-29 Thread Blue Swirl
On Wed, Sep 28, 2011 at 9:21 PM, Alexander Graf ag...@suse.de wrote: On 27.09.2011, at 21:19, Blue Swirl wrote: On Tue, Sep 27, 2011 at 4:44 PM, Avi Kivity a...@redhat.com wrote: On 09/27/2011 07:39 PM, Blue Swirl wrote:  Well, it's not that easy.  As the other mapping is part of an

Re: [Qemu-devel] [PATCH 21/22] monitor: Restrict pic/irq_info to supporting targets

2011-09-29 Thread Blue Swirl
On Wed, Sep 28, 2011 at 9:26 PM, Jan Kiszka jan.kis...@web.de wrote: On 2011-09-28 20:19, Blue Swirl wrote: On Wed, Sep 28, 2011 at 11:01 AM, Jan Kiszkajan.kis...@siemens.com  wrote: Signed-off-by: Jan Kiszkajan.kis...@siemens.com ---  hw/an5206.c             |   10 --  

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-09-29 Thread Blue Swirl
On Wed, Sep 28, 2011 at 9:38 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 28 September 2011 19:42, Blue Swirl blauwir...@gmail.com wrote: We also assume that the reset states of devices and their outputs are coherent i.e. the output of one device during reset would not change the state

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-09-29 Thread Blue Swirl
On Wed, Sep 28, 2011 at 9:18 PM, Jan Kiszka jan.kis...@web.de wrote: On 2011-09-28 20:01, Blue Swirl wrote: On Wed, Sep 28, 2011 at 11:00 AM, Jan Kiszkajan.kis...@siemens.com  wrote: As we clearly modify the PIC state on pic_reset, we also have to update the IRQ output. This only happened

Re: [Qemu-devel] [PATCH v4] tcg-i386: Introduce limited deposit support

2011-09-29 Thread Richard Henderson
On 09/29/2011 09:52 AM, Jan Kiszka wrote: x86 cannot provide an optimized generic deposit implementation. But at least for a few special cases, namely for writing bits 0..7, 8..15, and 0..15, versions using only a single instruction are feasible. Introducing such limited support improves

Re: [Qemu-devel] [PATCH 0/2] [PULL] slirp: Small fixes

2011-09-29 Thread Anthony Liguori
On 09/28/2011 06:12 AM, Jan Kiszka wrote: The following changes since commit 46f3069cba94aab44b3b4f87bc270759b4a700fa: PPC: use memory API to construct the PCI hole (2011-09-27 19:16:46 +) are available in the git repository at: git://git.kiszka.org/qemu.git queues/slirp Pulled.

Re: [Qemu-devel] [PULL] VirtFS update

2011-09-29 Thread Anthony Liguori
On 09/27/2011 04:11 AM, Aneesh Kumar K.V wrote: The following changes since commit d85a1302a91912c52cdc3fe459b313848a8a0792: Merge remote-tracking branch 'kwolf/for-anthony' into staging (2011-09-22 10:31:26 -0500) are available in the git repository at: git://repo.or.cz/qemu/v9fs.git

Re: [Qemu-devel] [PATCH] Remove line buffering from log file

2011-09-29 Thread Blue Swirl
On Thu, Sep 29, 2011 at 7:57 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 29 September 2011 06:03, Peter Chubb peter.ch...@nicta.com.au wrote: Stefan That's the reason why line buffering is needed today.  I Stefan enable log file output to see what happened last before the Stefan

Re: [Qemu-devel] [PATCH 14/21] qapi: Convert query-status

2011-09-29 Thread Michael Roth
On Wed, 28 Sep 2011 11:44:38 -0300, Luiz Capitulino lcapitul...@redhat.com wrote: The original conversion was done by Anthony Liguori. This commit is just a rebase. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- hmp.c| 19 +++ hmp.h|1

Re: [Qemu-devel] Bug in helper_pcmpestrm and helper_pcmpistrm

2011-09-29 Thread Blue Swirl
On Thu, Sep 29, 2011 at 8:12 AM, Frank Mehnert frank.mehn...@oracle.com wrote: Hi, the two functions helper_pcmpestrm() and helper_pcmpistrm() in target-i386/ops_sse.h contain obviously typos. I think that at all 4 marked places should increment the index 'i', not decrement it during the

Re: [Qemu-devel] [PATCH v1 00/21]: First round of QAPI conversions

2011-09-29 Thread Michael Roth
On Thu, 29 Sep 2011 10:52:30 -0300, Luiz Capitulino lcapitul...@redhat.com wrote: On Thu, 29 Sep 2011 07:55:37 -0500 Anthony Liguori aligu...@us.ibm.com wrote: On 09/28/2011 09:44 AM, Luiz Capitulino wrote: This series is a bundle of three things: 1. Patches 01 to 04 add the

Re: [Qemu-devel] When do we need to do TB unchaining?

2011-09-29 Thread Blue Swirl
On Thu, Sep 29, 2011 at 7:55 AM, 陳韋任 che...@iis.sinica.edu.tw wrote: Hi, all  I am looking for when TB unchaining is needed. Currently, I can only see there are three spots (take i386-softmmu as an example): 1. cpu_interrupt:  When virtual devices raise interrupts, eventually

Re: [Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to libbackdoor.a

2011-09-29 Thread Blue Swirl
2011/9/29 Lluís Vilanova vilan...@ac.upc.edu: Uses a virtual device to proxy uses of the backdoor communication channel to the user-provided code. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu ---  Makefile.objs           |    1  backdoor/qemu/softmmu.c |  124

Re: [Qemu-devel] [RFC][PATCH 0/5] backdoor: lightweight guest-to-QEMU backdoor channel

2011-09-29 Thread Blue Swirl
2011/9/29 Anthony Liguori anth...@codemonkey.ws: On 09/29/2011 08:47 AM, Lluís Vilanova wrote: Provides the ability for the guest to communicate with user-provided code inside QEMU itself, using a lightweight mechanism. See first commit for a full description. Signed-off-by: Lluís

Re: [Qemu-devel] [PATCH v1 00/21]: First round of QAPI conversions

2011-09-29 Thread Luiz Capitulino
On Thu, 29 Sep 2011 15:15:17 -0500 Michael Roth mdr...@linux.vnet.ibm.com wrote: On Thu, 29 Sep 2011 10:52:30 -0300, Luiz Capitulino lcapitul...@redhat.com wrote: On Thu, 29 Sep 2011 07:55:37 -0500 Anthony Liguori aligu...@us.ibm.com wrote: On 09/28/2011 09:44 AM, Luiz Capitulino

Re: [Qemu-devel] [FYI] Soft feature freeze for 1.0 is 10/15 (three weeks away)

2011-09-29 Thread Alexander Graf
Am 29.09.2011 um 21:28 schrieb Blue Swirl blauwir...@gmail.com: On Wed, Sep 28, 2011 at 9:21 PM, Alexander Graf ag...@suse.de wrote: On 27.09.2011, at 21:19, Blue Swirl wrote: On Tue, Sep 27, 2011 at 4:44 PM, Avi Kivity a...@redhat.com wrote: On 09/27/2011 07:39 PM, Blue Swirl wrote:

Re: [Qemu-devel] [PATCH] Remove line buffering from log file

2011-09-29 Thread Stefan Weil
Am 29.09.2011 22:11, schrieb Blue Swirl: On Thu, Sep 29, 2011 at 7:57 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 29 September 2011 06:03, Peter Chubb peter.ch...@nicta.com.au wrote: Stefan That's the reason why line buffering is needed today. I Stefan enable log file output to see

Re: [Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to libbackdoor.a

2011-09-29 Thread Lluís Vilanova
Blue Swirl writes: 2011/9/29 Lluís Vilanova vilan...@ac.upc.edu: +static uint64_t control_io_read(void *opaque, target_phys_addr_t addr, unsigned size) +{ +    State *s = opaque; + +    uint64_t res = ldq_p(s-size); +    uint8_t *resb = (uint8_t*)res; +    return resb[addr %

Re: [Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to libbackdoor.a

2011-09-29 Thread Frans de Boer
On 09/29/2011 11:49 PM, Lluís Vilanova wrote: Blue Swirl writes: 2011/9/29 Lluís Vilanovavilan...@ac.upc.edu: +static uint64_t control_io_read(void *opaque, target_phys_addr_t addr, unsigned size) +{ +State *s = opaque; + +uint64_t res = ldq_p(s-size); +uint8_t *resb =

  1   2   >