[Qemu-devel] [PATCH]booke: Use MMU API for creating initial mapping for secondary cpus

2012-03-22 Thread Bharat Bhushan
Initial Mapping creation for secondary CPU in SMP was missing new MMU API. Signed-off-by: Bharat Bhushan --- hw/ppce500_spin.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/ppce500_spin.c b/hw/ppce500_spin.c index 6b8a189..e8cf154 100644 --- a/hw/ppce500_spin.c +++

Re: [Qemu-devel] How To Boot Up Linux Kernel/Android on QEMU

2012-03-22 Thread 陳韋任
> Another question, how can I boot up Android on QEMU? IIRC, QEMU is lack of some hw support needed by Android platform, so the answer might be no. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-379

Re: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-03-22 Thread Liu, Jinsong
Eduardo Habkost wrote: > On Tue, Mar 20, 2012 at 12:53:57PM +, Liu, Jinsong wrote: >> Rik van Riel wrote: >>> On 03/09/2012 01:27 PM, Liu, Jinsong wrote: >>> As for 'tsc deadline' feature exposing, my patch (as attached) just obey qemu general cpuid exposing method, and also satisfie

Re: [Qemu-devel] [PATCH] virtio-spec: clarify ro/rw bits and updating rule of virtio-net status field

2012-03-22 Thread Jason Wang
On 03/22/2012 12:30 PM, Rusty Russell wrote: On Wed, 21 Mar 2012 08:37:46 +0200, "Michael S. Tsirkin" wrote: Ah. Right, we need to trap for host to clear the bit. OK, so let's make the bit RO, and add VIRTIO_NET_CTRL_ANNOUNCED to acknowledge that we've seen VIRTIO_NET_S_ANNOUNCE using the cont

Re: [Qemu-devel] [PATCH] Remove PCI class code from virtio balloon device

2012-03-22 Thread David Gibson
On Thu, Mar 22, 2012 at 01:53:33PM +0200, Michael S. Tsirkin wrote: > On Thu, Mar 22, 2012 at 08:09:27PM +1100, David Gibson wrote: > > diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c > > index a0fb7c1..1fd5768 100644 > > --- a/hw/virtio-pci.c > > +++ b/hw/virtio-pci.c > > @@ -790,6 +790,10 @@ stati

Re: [Qemu-devel] [0/13] RFC: Guest visible IOMMU

2012-03-22 Thread David Gibson
On Thu, Mar 22, 2012 at 02:50:25PM +0100, Wei Wang wrote: > On 03/22/2012 03:14 AM, David Gibson wrote: > >Here's another version of my series implementing the nevessary > >framework for emulation of guest-visible IOMMUs. I've incorporated > >the feedback from the last posting. I'm fairly confide

Re: [Qemu-devel] [PATCH 03/13] usb-xhci: Use PCI DMA helper functions

2012-03-22 Thread David Gibson
On Thu, Mar 22, 2012 at 11:00:57AM +0100, Gerd Hoffmann wrote: > Hi, > > > -#include "hw/qdev-addr.h" > > +//#include "hw/qdev-addr.h" > > Minor nit: Just zap it instead of leaving it in commented out. Oops, fixed. > Looks fine otherwise. > > Acked-by: Gerd Hoffmann > > cheers, > Gerd >

Re: [Qemu-devel] [PATCH V2 0/4] MIPS ASE DSP Support for Qemu

2012-03-22 Thread Jia Liu
On Thu, Mar 22, 2012 at 10:01 PM, Peter Maydell wrote: > On 22 March 2012 13:36, Jia Liu wrote: >> Jia Liu (4): >>  add MIPS DSP helpers define >>  add MIPS DSP helpers implement >>  add MIPS DSP translation >>  add MIPS DSP testcase > > You can't split these changes into patches like this. > Eve

Re: [Qemu-devel] [PATCH V2 0/4] MIPS ASE DSP Support for Qemu

2012-03-22 Thread Jia Liu
On Thu, Mar 22, 2012 at 10:03 PM, Peter Maydell wrote: > On 22 March 2012 13:36, Jia Liu wrote: >> This is the MIPS ASE DSP Support for Qemu. >> Jia Liu (4): >>  add MIPS DSP helpers define >>  add MIPS DSP helpers implement >>  add MIPS DSP translation >>  add MIPS DSP testcase > > Most of these

Re: [Qemu-devel] [PATCH V2 2/4] add MIPS DSP helpers implement

2012-03-22 Thread Jia Liu
On Thu, Mar 22, 2012 at 9:54 PM, Peter Maydell wrote: > On 22 March 2012 13:36, Jia Liu wrote: >> This is the helper implementation of MIPS ASE DSP. >> >> Signed-off-by: Jia Liu > > git am complains about this patch: > Applying: add MIPS DSP helpers implement > /home/petmay01/linaro/qemu-from-la

[Qemu-devel] [RFC PATCH 5/8] tracetool: Add support for the 'simple' backend

2012-03-22 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/backend/simple.py | 60 +++ 1 files changed, 60 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/backend/simple.py diff --git a/scripts/tracetool/backend/simple.py b/scripts/tracetool/backen

[Qemu-devel] [RFC PATCH 7/8] tracetool: Add support for the 'dtrace' backend

2012-03-22 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool.py| 31 ++ scripts/tracetool/__init__.py |8 +++ scripts/tracetool/backend/dtrace.py | 104 +++ scripts/tracetool/format/d.py | 20 +++ scripts/tracetool/format/sta

[Qemu-devel] [RFC PATCH 3/8] tracetool: Add module for the 'h' format

2012-03-22 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/format/h.py | 45 + 1 files changed, 45 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/format/h.py diff --git a/scripts/tracetool/format/h.py b/scripts/tracetool/format/h.py new fil

[Qemu-devel] [RFC PATCH 4/8] tracetool: Add support for the 'stderr' backend

2012-03-22 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/backend/stderr.py | 61 +++ 1 files changed, 61 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/backend/stderr.py diff --git a/scripts/tracetool/backend/stderr.py b/scripts/tracetool/backen

[Qemu-devel] [RFC PATCH 6/8] tracetool: Add support for the 'ust' backend

2012-03-22 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/backend/ust.py | 102 ++ 1 files changed, 102 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/backend/ust.py diff --git a/scripts/tracetool/backend/ust.py b/scripts/tracetool/backend/ust.

[Qemu-devel] [RFC PATCH 8/8] tracetool: Add MAINTAINERS info

2012-03-22 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- MAINTAINERS |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index f83d07c2..0e66dd8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -548,6 +548,8 @@ Tracing M: Stefan Hajnoczi S: Maintained F: trace/ +F: scrip

[Qemu-devel] [RFC PATCH 1/8] tracetool: Rewrite infrastructure as python modules

2012-03-22 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- Makefile.objs |6 Makefile.target | 13 - configure |4 scripts/tracetool | 648 - scripts/tracetool.py |

[Qemu-devel] [RFC PATCH 2/8] tracetool: Add module for the 'c' format

2012-03-22 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/format/c.py | 20 1 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/format/c.py diff --git a/scripts/tracetool/format/c.py b/scripts/tracetool/format/c.py new file mode 100644 index 0

[Qemu-devel] [RFC PATCH 0/8] Rewrite tracetool using python modules

2012-03-22 Thread Lluís Vilanova
A full rewrite of the tracetool script using per-format and per-backend modules, so that it's easier to read and extend it in the future. Signed-off-by: Lluís Vilanova --- NOTE: This series applies in current master, ignoring the "Rewrite tracetool using python" series. Lluís Vilanova (8):

[Qemu-devel] [PATCH 11/10] qmp: document strict parsing

2012-03-22 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- QMP/qmp-spec.txt | 20 +--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/QMP/qmp-spec.txt b/QMP/qmp-spec.txt index 9d30a8c..1ba916c 100644 --- a/QMP/qmp-spec.txt +++ b/QMP/qmp-spec.txt @@ -209,13 +209,27 @@ incompatible way are

[Qemu-devel] [PATCH v2 06/10] qapi: untangle next_list

2012-03-22 Thread Paolo Bonzini
Right now, the semantics of next_list are complicated. The caller must: * call start_list * call next_list for each element *including the first* * on the first call to next_list, the second argument should point to NULL and the result is the head of the list. On subsequent calls, the second a

Re: [Qemu-devel] [PATCH 06/10] qapi: simplify qmp_input_next_list

2012-03-22 Thread Anthony Liguori
On 03/22/2012 04:24 PM, Paolo Bonzini wrote: Il 22/03/2012 21:22, Anthony Liguori ha scritto: Signed-off-by: Paolo Bonzini I've been staring a this patch for the past 5 minutes and I can't figure out what's going on here. Maybe the code was too obscure to begin with. Could you enhance the c

Re: [Qemu-devel] [PATCH] virtio-spec: clarify ro/rw bits and updating rule of virtio-net status field

2012-03-22 Thread Rusty Russell
On Wed, 21 Mar 2012 08:37:46 +0200, "Michael S. Tsirkin" wrote: > Ah. Right, we need to trap for host to clear the bit. > OK, so let's make the bit RO, and add > VIRTIO_NET_CTRL_ANNOUNCED to acknowledge that we've > seen VIRTIO_NET_S_ANNOUNCE using the control VQ? Thanks, that's nice. Guest sho

Re: [Qemu-devel] [PATCH 06/10] qapi: simplify qmp_input_next_list

2012-03-22 Thread Paolo Bonzini
Il 22/03/2012 21:22, Anthony Liguori ha scritto: >> >> Signed-off-by: Paolo Bonzini > > I've been staring a this patch for the past 5 minutes and I can't figure > out what's going on here. > > Maybe the code was too obscure to begin with. Could you enhance the > commit message a bit with what's

Re: [Qemu-devel] [PATCH 10/10] qmp: parse commands in strict mode

2012-03-22 Thread Luiz Capitulino
On Thu, 22 Mar 2012 15:28:00 -0500 Anthony Liguori wrote: > On 03/22/2012 06:51 AM, Paolo Bonzini wrote: > > Signed-off-by: Paolo Bonzini > > Reviewed-off-by: Anthony Liguori > > Looks good overall. I think documentation is the only real issue. > > I assume this will go through Luiz's tree?

Re: [Qemu-devel] [PATCH 10/10] qmp: parse commands in strict mode

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: Signed-off-by: Paolo Bonzini Reviewed-off-by: Anthony Liguori Looks good overall. I think documentation is the only real issue. I assume this will go through Luiz's tree? Regards, Anthony Liguori --- scripts/qapi-commands.py |2 +- 1 f

Re: [Qemu-devel] [PATCH 09/10] qmp: add and use q type specifier

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: "O" is being used by the transaction and qom-set commands to mean "any QObject", but it really means "do not validate the argument list". Add a new specifier with the correct meaning. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regar

Re: [Qemu-devel] [PATCH 08/10] qapi: add strict mode to input visitor

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: While QMP in general is designed so that it is possible to ignore unknown arguments, in the case of the QMP server it is better to reject them to detect bad clients. In fact, we're already doing this at the top level in the argument checker. To exten

Re: [Qemu-devel] [PATCH 07/10] qapi: place outermost object on qiv stack

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: This is a slight change in the implementation of QMPInputVisitor that helps when adding strict mode. Const QObjects cannot be inc/decref-ed, and that's why QMPInputVisitor relies heavily on weak references to inner objects. I'm not removing the weak

Re: [Qemu-devel] [PATCH 06/10] qapi: simplify qmp_input_next_list

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: Tweak a bit the code so that there is cleaner separation between operation on the list and operation on the output. The next patch requires this change. Signed-off-by: Paolo Bonzini I've been staring a this patch for the past 5 minutes and I can't

Re: [Qemu-devel] [PATCH 05/10] qapi: allow freeing partially-allocated objects

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: Objects going through the dealloc visitor can be only partially allocated. Detect the situation and avoid a segfault. This also helps with the input visitor, when there are errors. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards

Re: [Qemu-devel] [PATCH 04/10] qapi: shortcut visits on errors

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: We can exit very soon if we enter a visitor with a preexisting error. This simplifies some cases because we will not have to deal with obj being non-NULL while *obj is NULL. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards, Antho

Re: [Qemu-devel] [PATCH 03/10] qapi: fix memory leak on error

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: QmpInputVisitor would leak the malloced struct if the stack was overflowed. This can be easily fixed using error_propagate. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards, Anthony Liguori --- qapi/qmp-input-visitor.c |

Re: [Qemu-devel] [PATCH 02/10] qapi: fail hard on stack imbalance

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: QmpOutputVisitor will segfault if an imbalanced end function is called. So we can abort in QmpInputVisitor too. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards, Anthony Liguori --- qapi/qmp-input-visitor.c |5 + 1

Re: [Qemu-devel] [PATCH 01/10] qapi: add a test case for type errors

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: There is no test case for parse errors, add one. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards, Anthony Liguori --- test-qmp-input-visitor.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) d

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-22 Thread Anthony Liguori
On 03/22/2012 12:14 PM, Eduardo Habkost wrote: On Thu, Mar 22, 2012 at 11:37:39AM -0500, Anthony Liguori wrote: On 03/22/2012 04:32 AM, Gleb Natapov wrote: On Tue, Mar 13, 2012 at 11:53:19AM -0300, Eduardo Habkost wrote: So, this problem is solved if the defaults are easily found on /usr/share

Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-22 Thread Anthony Liguori
On 03/22/2012 11:01 AM, Julien Grall wrote: QEMU will now register PCI in Xen. It will usefull to forward IO config space to the right QEMU. Before to register a PCI device, QEMU will check with XenStore if it is autorized to register the PCI associate to a given BDF. Signed-off-by: Julien Gral

[Qemu-devel] [XEN][RFC PATCH 10/15] xc: Add argument to allocate more special pages

2012-03-22 Thread Julien Grall
This patchs permits to allocate more special pages. Indeed, for multiple ioreq server, we need to have 2 shared pages by server. xc_hvm_build will take an argument which will indicate the number of special pages we want to allocate. Signed-off-by: Julien Grall --- tools/libxc/xc_hvm_build.c |

Re: [Qemu-devel] [PATCH 1/2] slirp: clean up conflicts with system headers

2012-03-22 Thread Paolo Bonzini
Il 22/03/2012 15:35, Jan Kiszka ha scritto: >> @@ -167,9 +164,6 @@ int inet_aton(const char *cp, struct in_addr *ia); >> #include "bootp.h" >> #include "tftp.h" >> >> -/* osdep.c */ >> -int qemu_socket(int domain, int type, int protocol); >> - >> #define ETH_ALEN 6 >> #define ETH_HLEN 14 >>

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH 00/15] QEMU disaggregation

2012-03-22 Thread Tim Deegan
Hi, At 15:59 + on 22 Mar (1332431961), Julien Grall wrote: > Julien Grall (15): > xc: Add the hypercall for multiple servers > xc: Add argument to allocate more special pages > xc: Fix python build Shouldn't something here update xc_domain_save/xc_domain_restore? Cheers, Tim.

[Qemu-devel] [QEMU][RFC PATCH 6/6] xen: handle qemu disaggregation

2012-03-22 Thread Julien Grall
* Register QEMU in Xen as server * Retrieve it's own shared pages * Check if the page is already mapping before to populate Signed-off-by: Julien Grall --- xen-all.c | 62 ++-- 1 files changed, 59 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [XEN][RFC PATCH 08/15] hvm-io: Handle server in buffered IO

2012-03-22 Thread Julien Grall
As for the normal IO, Xen browses the ranges to find which server is able to handle the IO. There is a special case for IOREQ_TYPE_TIMEOFFSET. Indeed, this IO must be send to all servers. For that we have introduce a new function hvm_buffered_io_send_to_server, which send an IO to a specify server.

[Qemu-devel] [XEN][RFC PATCH 06/15] hvm-io: IO refactoring with ioreq server

2012-03-22 Thread Julien Grall
This modify several parts of the IO handle. Each vcpu now contains a pointer to the current IO shared page. A default shared page has been created for IO handle by Xen. Each time that Xen receives an ioreq, it will use the default shared page and set the right shared page when it's able to know the

[Qemu-devel] [QEMU][RFC PATCH 0/6] QEMU disaggregation

2012-03-22 Thread Julien Grall
This patch series concerns QEMU. Another serie has already came for Xen. As we discussed on Xen/QEMU mailing list (http://marc.info/?l=qemu-devel&m=133042969527515), I have worked on multiple QEMU support for one domain. QEMU must registered all IO ranges (MMIO and PIO) and PCI that it's want's t

Re: [Qemu-devel] [PATCH] block: add the support to drain throttled requests

2012-03-22 Thread Chris Webb
Stefan Hajnoczi writes: > Yesterday I only posted an analysis of the bug but here are some > thoughts on how to move forward. Throttling itself is not the problem. > We've known that synchronous operations in the vcpu thread are a problem > long before throttling. This is just another reason to

[Qemu-devel] [QEMU][RFC PATCH 1/6] option: Add -xen-dmid

2012-03-22 Thread Julien Grall
With this option, QEMU knows it's ID and can retrieve it's configuration from XenStore. Signed-off-by: Julien Grall --- hw/xen.h|1 + qemu-options.hx |2 ++ vl.c|8 3 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/xen.h b/hw/xen.h index

[Qemu-devel] [QEMU][RFC PATCH 5/6] xen-io: Handle the new ioreq type IOREQ_TYPE_PCI_CONFIG

2012-03-22 Thread Julien Grall
This ioreq type is introduced to handle easily the access to the PCI config space. Indeed, all PCI config spaces are access by the same IO ports (cf8 -> cff). Signed-off-by: Julien Grall --- xen-all.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/xen-all.

[Qemu-devel] [PATCH 0/3] libcacard: handle no readers on startup

2012-03-22 Thread Alon Levy
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=802435 together with patches for coolkey. coolkey patches are at: git://people.freedesktop.org/~alon/coolkey bz806038.remove_fake Alon Levy (3): libcacard/vcard_emul_nss: don't stop thread when there are no slots libcacard/vcard_emul_nss: han

[Qemu-devel] [XEN][RFC PATCH 02/15] hvm: Add functions to handle ioreq servers

2012-03-22 Thread Julien Grall
This patchs add functions to help to : - create/destroy server - map/unmap IO range to a server Signed-off-by: Julien Grall --- xen/arch/x86/hvm/hvm.c | 352 1 files changed, 352 insertions(+), 0 deletions(-) diff --git a/xen/arch/x86/hvm/hv

[Qemu-devel] [XEN][RFC PATCH 09/15] xc: Add the hypercall for multiple servers

2012-03-22 Thread Julien Grall
This patch add 5 hypercalls to register server, io range and PCI. Signed-off-by: Julien Grall --- tools/libxc/xc_domain.c | 140 +++ tools/libxc/xenctrl.h | 13 2 files changed, 153 insertions(+), 0 deletions(-) diff --git a/tools/libxc/xc_d

[Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-22 Thread Julien Grall
QEMU will now register PCI in Xen. It will usefull to forward IO config space to the right QEMU. Before to register a PCI device, QEMU will check with XenStore if it is autorized to register the PCI associate to a given BDF. Signed-off-by: Julien Grall --- hw/pci.c |6 + xen-all.c |

[Qemu-devel] [QEMU][RFC PATCH 3/6] memory: Add xen memory hook

2012-03-22 Thread Julien Grall
QEMU will now register all memory range (PIO and MMIO) in Xen. We distinct two phases in memory registered : - initialization - running For all range registered during the initialization, QEMU will check with XenStore if it is authorized to use them. After the initialization, QEMU can register

[Qemu-devel] [XEN][RFC PATCH 15/15] xl: Launch and destroy all device models

2012-03-22 Thread Julien Grall
This patch permits to launch and destroy all device models. For the moment it's a fork of libxl__build_device* Signed-off-by: Julien Grall --- tools/libxl/libxl.c |8 +- tools/libxl/libxl_create.c | 30 +- tools/libxl/libxl_dm.c | 225 +

[Qemu-devel] [XEN][RFC PATCH 14/15] xl-parsing: Parse the new option device_models

2012-03-22 Thread Julien Grall
For the support of multiple ioreq server, we add a new option "device_models". It's an array of device model, for each device model, we need to specify which pci, IO range (MMIO, PIO) will be allow. For instance, if we want a QEMU which handle a specify PCI: name=net, path=/path/to/qemu-wrapper,

[Qemu-devel] [XEN][RFC PATCH 00/15] QEMU disaggregation

2012-03-22 Thread Julien Grall
This patch series concerns Xen. Another serie will come for QEMU. As we discussed on Xen/QEMU mailing list (http://marc.info/?l=qemu-devel&m=133042969527515), I have worked on multiple QEMU support for one domain. QEMU must registered all IO ranges (MMIO and PIO) and PCI that it's want's to use t

Re: [Qemu-devel] [0/13] RFC: Guest visible IOMMU

2012-03-22 Thread Wei Wang
On 03/22/2012 03:14 AM, David Gibson wrote: Here's another version of my series implementing the nevessary framework for emulation of guest-visible IOMMUs. I've incorporated the feedback from the last posting. I'm fairly confident that preliminary patches 1-3 are ready to go in, the rest might

[Qemu-devel] [XEN][RFC PATCH 13/15] xl-qmp: add device model id to qmp function

2012-03-22 Thread Julien Grall
With the support of multiple device, the qmp library needs to know which device model is currently used. Signed-off-by: Julien Grall --- tools/libxl/libxl_internal.h |9 + tools/libxl/libxl_qmp.c | 24 +--- 2 files changed, 18 insertions(+), 15 deletions(-)

[Qemu-devel] [XEN][RFC PATCH 12/15] xl: Add interface to handle multiple device models

2012-03-22 Thread Julien Grall
This patch add a structure with contain all informations about a device model. Signed-off-by: Julien Grall --- tools/libxl/libxl.h |4 ++-- tools/libxl/libxl_internal.h |1 + tools/libxl/libxl_types.idl | 11 +++ 3 files changed, 14 insertions(+), 2 deletions(-) diff

[Qemu-devel] [XEN][RFC PATCH 04/15] hvm: Change initialization/destruction of an hvm

2012-03-22 Thread Julien Grall
This patch modifies initialization and the destruction of an hvm Signed-off-by: Julien Grall --- xen/arch/x86/hvm/hvm.c | 33 ++--- 1 files changed, 10 insertions(+), 23 deletions(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index e7a8f18..1b3876

[Qemu-devel] [PATCH 2/3] libcacard/vcard_emul_nss: handle no readers at startup

2012-03-22 Thread Alon Levy
When starting with no readers, coolkey should show no slots (with RHBZ 806038 fixed). Fix initialization to launch the event handling thread for each module that isn't the internal module regardless of the number of slots detected for it at initialization time, since slot number may start as 0 and

[Qemu-devel] [PATCH 1/3] libcacard/vcard_emul_nss: don't stop thread when there are no slots

2012-03-22 Thread Alon Levy
Signed-off-by: Alon Levy --- libcacard/vcard_emul_nss.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libcacard/vcard_emul_nss.c b/libcacard/vcard_emul_nss.c index bdc3c79..7de5d5b 100644 --- a/libcacard/vcard_emul_nss.c +++ b/libcacard/vcard_emul_nss.c @@ -682,8 +682,19 @@ v

[Qemu-devel] [PATCH 3/3] libcacard/vcard_emul_nss: add warning for old coolkey

2012-03-22 Thread Alon Levy
Older coolkey versions (before the future fix of RHBZ 802435) have a fake card reader created if no reader is detected during module initialization. Warn libcacard users if the faulty coolkey is detected by checking for the fake reader name "E-Gate 0 0". Signed-off-by: Alon Levy --- libcacard/vc

[Qemu-devel] [XEN][RFC PATCH 11/15] xc: Fix python build

2012-03-22 Thread Julien Grall
Quickly fix for hvm_build in python. Signed-off-by: Julien Grall --- tools/python/xen/lowlevel/xc/xc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index 7c89756..eb004b6 100644 --- a/tools/pytho

[Qemu-devel] [XEN][RFC PATCH 01/15] hvm: Modify interface to support multiple ioreq server

2012-03-22 Thread Julien Grall
Add structure to handle ioreq server. It's server which can handle a range of IO (MMIO and/or PIO) and emulate a PCI. Each server as its own shared page to receive ioreq. So we have introduced to HVM PARAM to set/get the first and the last shared used for ioreq. With it's id, the server knows which

[Qemu-devel] [XEN][RFC PATCH 07/15] hvm-io: send invalidate map cache to each registered servers

2012-03-22 Thread Julien Grall
When an invalidate mapcache cache occurs, Xen need to send and IOREQ_TYPE_INVALIDATE to each server and wait that all IO is completed. We introduce a new function hvm_wait_on_io to wait until an IO is completed. Signed-off-by: Julien Grall --- xen/arch/x86/hvm/hvm.c | 41 ++

[Qemu-devel] [XEN][RFC PATCH 05/15] hvm: Modify hvm_op

2012-03-22 Thread Julien Grall
This patch remove useless hvm_param due to structure modification and bind the new hypercalls to handle ioreq servers and pci. Signed-off-by: Julien Grall --- xen/arch/x86/hvm/hvm.c | 127 ++-- 1 files changed, 80 insertions(+), 47 deletions(-) diff

[Qemu-devel] [QEMU][RFC PATCH 2/6] xen: Add functions to register PCI and IO in Xen

2012-03-22 Thread Julien Grall
Add interface for the new xen hypercalls Signed-off-by: Julien Grall --- hw/xen.h |3 +++ xen-all.c |2 ++ xen-stub.c | 13 + 3 files changed, 18 insertions(+), 0 deletions(-) diff --git a/hw/xen.h b/hw/xen.h index b056b13..a76616f 100644 --- a/hw/xen.h +++ b/hw/xen.h @

Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-22 Thread Jan Kiszka
On 2012-03-22 17:01, Julien Grall wrote: > QEMU will now register PCI in Xen. It will usefull to forward > IO config space to the right QEMU. > > Before to register a PCI device, QEMU will check with XenStore if it is > autorized to register the PCI associate to a given BDF. > > Signed-off-by: Ju

Re: [Qemu-devel] [QEMU][RFC PATCH 3/6] memory: Add xen memory hook

2012-03-22 Thread Jan Kiszka
On 2012-03-22 17:01, Julien Grall wrote: > QEMU will now register all memory range (PIO and MMIO) in Xen. > We distinct two phases in memory registered : > - initialization > - running > > For all range registered during the initialization, QEMU will > check with XenStore if it is authorized t

[Qemu-devel] [XEN][RFC PATCH 03/15] hvm-pci: Handle PCI config space in Xen

2012-03-22 Thread Julien Grall
Add function to register a bdf with a server. To handle cf8 -> cff we add an handler with register_portio_handle. When Xen reveice a pio for cf8, it's store the value inside the current vcpu until it receives a pio for cfc -> cff. In this case, it checks if the bdf is registered and forge the ioreq

Re: [Qemu-devel] [QEMU][RFC PATCH 1/6] option: Add -xen-dmid

2012-03-22 Thread Jan Kiszka
On 2012-03-22 17:01, Julien Grall wrote: > With this option, QEMU knows it's ID and can retrieve it's configuration > from XenStore. Isn't this better modeled as a (Xen) machine option? I'd like to avoid more "special" command line switch proliferation. Jan signature.asc Description: OpenPGP

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-22 Thread Eduardo Habkost
On Thu, Mar 22, 2012 at 11:37:39AM -0500, Anthony Liguori wrote: > On 03/22/2012 04:32 AM, Gleb Natapov wrote: > >On Tue, Mar 13, 2012 at 11:53:19AM -0300, Eduardo Habkost wrote: > >>So, this problem is solved if the defaults are easily found on > >>/usr/share. > >> > >What problem is solved and wh

Re: [Qemu-devel] Thoughts around dtrace linking...

2012-03-22 Thread Lee Essen
On 22/03/2012 16:28, Stefan Hajnoczi wrote: On Wed, Mar 21, 2012 at 1:01 PM, Andreas Färber wrote: Hi, Am 21.03.2012 11:45, schrieb Lee Essen: I've been trying to find a sensible way to solve the Solaris/Illumos dtrace requirement to pass all the objs to the dtrace command so that the resulta

[Qemu-devel] [PATCH 07/10] Do not use pa_simple PulseAudio API

2012-03-22 Thread Marc-André Lureau
Unfortunately, pa_simple is a limited API which doesn't let us retrieve the associated pa_stream. It is needed to control the volume of the stream. In v4: - add missing braces Signed-off-by: Marc-André Lureau --- audio/paaudio.c | 377 +-- 1

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-22 Thread Anthony Liguori
On 03/22/2012 04:32 AM, Gleb Natapov wrote: On Tue, Mar 13, 2012 at 11:53:19AM -0300, Eduardo Habkost wrote: So, trying to summarize what was discussed in the call: On Mon, Mar 12, 2012 at 10:08:10AM -0300, Eduardo Habkost wrote: Let's say we moved CPU definitions to /usr/share/qemu/cpu-models

Re: [Qemu-devel] Thoughts around dtrace linking...

2012-03-22 Thread Stefan Hajnoczi
On Wed, Mar 21, 2012 at 1:01 PM, Andreas Färber wrote: > Hi, > > Am 21.03.2012 11:45, schrieb Lee Essen: >> I've been trying to find a sensible way to solve the Solaris/Illumos >> dtrace requirement to pass all the objs to the dtrace command so that >> the resultant object file contains all the sy

[Qemu-devel] [PATCH 04/10] hw/ac97: the volume mask is not only 0x1f

2012-03-22 Thread Marc-André Lureau
It's a case by case (see Table 66. AC ‘97 Baseline Audio Register Map) Signed-off-by: Marc-André Lureau --- hw/ac97.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index f2804e6..f7866ed 100644 --- a/hw/ac97.c +++ b/hw/ac97.c @@ -118,7 +118,6 @@ e

[Qemu-devel] [PATCH 01/10] audio: add VOICE_VOLUME ctl

2012-03-22 Thread Marc-André Lureau
Add a new PCM control operation to update the stream volume on the audio backend. The argument given is a SWVoiceOut/SWVoiceIn. v4: - verified other backends didn't fail/assert on this new control they randomly return 0 or -1, but we ignore return value. Signed-off-by: Marc-André Lureau ---

[Qemu-devel] [PATCH 03/10] hw/ac97: remove USE_MIXER code

2012-03-22 Thread Marc-André Lureau
That code doesn't compile. The interesting bits for volume control are going to be rewritten in the following patch. Signed-off-by: Marc-André Lureau --- hw/ac97.c | 121 - 1 files changed, 0 insertions(+), 121 deletions(-) diff --git

[Qemu-devel] [PATCH 05/10] hw/ac97: add support for volume control

2012-03-22 Thread Marc-André Lureau
Combine output volume with Master and PCM registers values. Use default values in mixer_reset (). Set volume on post-load to update backend values. v4,v5: - fix some code style Signed-off-by: Marc-André Lureau --- hw/ac97.c | 81 + 1

[Qemu-devel] [PATCH 02/10] audio: don't apply volume effect if backend has VOICE_VOLUME_CAP

2012-03-22 Thread Marc-André Lureau
If the audio backend is capable of volume control, don't apply software volume (mixeng_volume ()), but instead, rely on backend volume control. This will allow guest to have full range volume control. Signed-off-by: Marc-André Lureau --- audio/audio.c |9 +++-- audio/audio_int.h

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-22 Thread Eduardo Habkost
On Thu, Mar 22, 2012 at 04:30:55PM +0200, Gleb Natapov wrote: > On Thu, Mar 22, 2012 at 10:31:21AM -0300, Eduardo Habkost wrote: > > On Thu, Mar 22, 2012 at 11:32:44AM +0200, Gleb Natapov wrote: > > > What does this mean? Will -nodefconfig disable loading of bios.bin, > > > option roms, keymaps? >

[Qemu-devel] [PATCH 06/10] audio/spice: add support for volume control

2012-03-22 Thread Marc-André Lureau
Use Spice server volume control API when available. Signed-off-by: Marc-André Lureau --- audio/spiceaudio.c | 41 + 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/audio/spiceaudio.c b/audio/spiceaudio.c index f972110..6f15591 100644 ---

Re: [Qemu-devel] [PATCH V2 4/7] qed: add bdrv_invalidate_cache to be called after incoming live migration

2012-03-22 Thread Stefan Hajnoczi
On Thu, Mar 22, 2012 at 2:17 PM, Paolo Bonzini wrote: > Il 22/03/2012 15:15, Benoît Canet ha scritto: >> >> I added this flag after seeing the following code in in bdrv_open_common. >> >>     /* >>      * Clear flags that are internal to the block layer before opening the >>      * image. >>      

[Qemu-devel] [PATCH 10/10] Enable mixemu by default, add runtime option

2012-03-22 Thread Marc-André Lureau
Without MIXEMU, volume control on the guest doesn't work (except when volume is applied by guest "emulation", in Win7 for example). Instead rely on backend volume support, or fallback on mixeng if backend doesn't support volume control, except if mixemu is disabled with QEMU_MIXEMU=0. Signed-off-

[Qemu-devel] [PATCH 09/10] Allow controlling volume with PulseAudio backend

2012-03-22 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- audio/paaudio.c | 99 --- 1 files changed, 94 insertions(+), 5 deletions(-) diff --git a/audio/paaudio.c b/audio/paaudio.c index 6f50c1c..e6708d0 100644 --- a/audio/paaudio.c +++ b/audio/paaudio.c @@ -677,

[Qemu-devel] [PATCH 08/10] configure: pa_simple is not needed anymore

2012-03-22 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- configure |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 8b4e3c1..907a655 100755 --- a/configure +++ b/configure @@ -1847,9 +1847,9 @@ for drv in $audio_drv_list; do ;; pa) -audio_drv_p

[Qemu-devel] [PATCH 00/10] apply volume on client side v5

2012-03-22 Thread Marc-André Lureau
Hi, This patch series implements client-side audio volume support. This reduces confusion of guest users when volume control is not effective (because mixemu is disabled or because client-side is muted and can't be unmuted by the guest..) Instead, the backend is responsible for applying volume

Re: [Qemu-devel] [PATCH] usb/vmstate: add parent dev path

2012-03-22 Thread Andreas Färber
Am 22.03.2012 15:37, schrieb Gerd Hoffmann: >>> +.driver = "USB", >>> +.property = "full-path", >>> +.value= "no", >> >> This touches on our "favorite" bit/bool topic again. While I agree that >> "no" makes sense for a property of that name, the current cod

[Qemu-devel] [PATCH] Small change to remove short 250us timeouts every other time through the wait loop.

2012-03-22 Thread Peter Portante
Basically, the main wait loop calls qemu_run_all_timers() unconditionally. The first thing this routine used to do is to see if a timer had been serviced, and then reset the loop timeout to the next deadline. However, the new deadlines had not been calculated at that point, as qemu_run_timers() ha

Re: [Qemu-devel] [PATCH] Whitespace clean up.

2012-03-22 Thread Andreas Färber
For one, while non-functional, this patch should probably be reviewed by the block maintainer to not interfere with already queued patches. Then the subject should indicate which part of code it touches, like "block: " or "block/raw-posix.c: ". If Kevin agrees to merge this patch I would suggest t

Re: [Qemu-devel] [PATCH] usb/vmstate: add parent dev path

2012-03-22 Thread Gerd Hoffmann
Hi, >> +.driver = "USB", >> +.property = "full-path", >> +.value= "no", > > This touches on our "favorite" bit/bool topic again. While I agree that > "no" makes sense for a property of that name, the current code still > expects "on" and "off". In parti

Re: [Qemu-devel] [PATCH 1/2] slirp: clean up conflicts with system headers

2012-03-22 Thread Jan Kiszka
On 2012-03-22 01:02, Paolo Bonzini wrote: > Right now, slirp/slirp.h cannot include some system headers and, > indirectly, qemu_socket.h. Clean this up, and remove a duplicate > prototype that was introduced because of that. > > > Signed-off-by: Paolo Bonzini > --- > slirp/slirp.h |8 +

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-22 Thread Gleb Natapov
On Thu, Mar 22, 2012 at 10:31:21AM -0300, Eduardo Habkost wrote: > On Thu, Mar 22, 2012 at 11:32:44AM +0200, Gleb Natapov wrote: > > On Tue, Mar 13, 2012 at 11:53:19AM -0300, Eduardo Habkost wrote: > > > So, trying to summarize what was discussed in the call: > > > > > > On Mon, Mar 12, 2012 at 10

Re: [Qemu-devel] [PATCH V2 4/7] qed: add bdrv_invalidate_cache to be called after incoming live migration

2012-03-22 Thread Paolo Bonzini
Il 22/03/2012 15:15, Benoît Canet ha scritto: > > I added this flag after seeing the following code in in bdrv_open_common. > > /* > * Clear flags that are internal to the block layer before opening the > * image. > */ > open_flags = flags & ~(BDRV_O_SNAPSHOT | BDRV_O_NO_BA

Re: [Qemu-devel] [PATCH V2 4/7] qed: add bdrv_invalidate_cache to be called after incoming live migration

2012-03-22 Thread Benoît Canet
>It's not clear to me why we need to introduce this field to stash >flags values. bs->open_flags already has this information. >Originally this was introduced in 06d9260ffa9 ("qcow2: implement >bdrv_invalidate_cache (v2)") for qcow2. I wonder if that field is >necessary when we already have bs->

Re: [Qemu-devel] [PATCH] fix '-cpu ?' Segfault

2012-03-22 Thread Eduardo Habkost
On Thu, Mar 22, 2012 at 02:46:48PM +0100, Andreas Färber wrote: > Am 22.03.2012 14:28, schrieb Stefan Berger: > > On 03/21/2012 08:33 AM, Eduardo Habkost wrote: > >> Fix stupid copy&paste mistake at commit > >> ecf40beae7dcbb057d4f115207f9d8276832a774: I moved code around but kept > >> "optarg" on

Re: [Qemu-devel] [PATCH V2 0/4] MIPS ASE DSP Support for Qemu

2012-03-22 Thread Peter Maydell
On 22 March 2012 13:36, Jia Liu wrote: > This is the MIPS ASE DSP Support for Qemu. > Jia Liu (4): >  add MIPS DSP helpers define >  add MIPS DSP helpers implement >  add MIPS DSP translation >  add MIPS DSP testcase Most of these patches generate lots of errors when run through scripts/checkpatc

Re: [Qemu-devel] [PATCH V2 0/4] MIPS ASE DSP Support for Qemu

2012-03-22 Thread Peter Maydell
On 22 March 2012 13:36, Jia Liu wrote: > Jia Liu (4): >  add MIPS DSP helpers define >  add MIPS DSP helpers implement >  add MIPS DSP translation >  add MIPS DSP testcase You can't split these changes into patches like this. Every patch needs to be complete of itself, and in particular it has to

Re: [Qemu-devel] [PATCH] usb/vmstate: add parent dev path

2012-03-22 Thread Andreas Färber
Am 22.03.2012 13:07, schrieb Gerd Hoffmann: > ... to make vmstate id string truely unique with multiple host > controllers, i.e. move from "1/usb-ptr" to ":00:01.3/1/usb-ptr" > (usb tabled connected to piix3 uhci). > > This obviously breaks migration. To handle this the usb bus > property "fu

  1   2   >