[Qemu-devel] [PATCH 0/2][SPARC] Improve sparc Trap

2011-05-17 Thread Julien Grall
Hi, I' m glad to submit my first patches to the QEMU-devel list. This set of patches improves SPARC handling of trap and the shutdown capability on trap 0. Regards, Fabien Chouteau (1) :    Improve sparc handling of ta Julien Grall (1) :    Fix TA0_SHUTDOWN feature target-sparc/helper.h

[Qemu-devel] [PATCH 1/2][SPARC] Improve sparc handling of ta

2011-05-17 Thread Julien Grall
Improve sparc handling of ta Signed-off-by: Julien Grall julien.gr...@gmail.com ---  target-sparc/helper.h    |    1 +  target-sparc/op_helper.c |    6 ++  target-sparc/translate.c |    7 ---  3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/target-sparc/helper.h b/target

[Qemu-devel] [PATCH 2/2][SPARC] Fix TA0_Shutdown feature

2011-05-17 Thread Julien Grall
Fix TA0_SHUTDOWN feature Signed-off-by: Julien Grall julien.gr...@gmail.com --- target-sparc/op_helper.c | 13 +++-- target-sparc/translate.c |9 + 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index

Re: [Qemu-devel] [PATCH 2/2][SPARC] Fix TA0_Shutdown feature

2011-05-18 Thread Julien Grall
On Tue, May 17, 2011 at 9:57 PM, Blue Swirl blauwir...@gmail.com wrote: On Tue, May 17, 2011 at 6:32 PM, Julien Grall julien.gr...@gmail.com wrote: Fix TA0_SHUTDOWN feature But what would be the bug? We try to add RTEMS's support on leon platform for QEMU. RTEMS uses software trap 0

[Qemu-devel] [PATCH v2 2/2] [SPARC] Fix TA0_Shutdown feature

2011-05-27 Thread Julien Grall
Hello, Since the last patch, I have added a special helper for trap 0. It will be use when the TA0_Shutdown feature is enabled. Signed-off-by: Grall Julien julien.gr...@gmail.com --- target-sparc/helper.h|1 + target-sparc/op_helper.c | 14 ++ target-sparc/translate.c |

[Qemu-devel] [PATCH] xen-mapcache: don't unmap locked entry during mapcache invalidation

2012-03-15 Thread Julien Grall
When an IOREQ_TYPE_INVALIDATE is sent to QEMU, it invalidates all entry of the map cache even if it's locked. QEMU is not able to know that entry was invalidated, so when an IO access is requested a segfault occured. Signed-off-by: Julien Grall julien.gr...@citrix.com --- xen-mapcache.c |3

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

2012-03-22 Thread Julien Grall
that will be forward to server later. Signed-off-by: Julien Grall julien.gr...@citrix.com --- xen/arch/x86/hvm/Makefile |1 + xen/arch/x86/hvm/pci_emul.c | 147 +++ 2 files changed, 148 insertions(+), 0 deletions(-) create mode 100644 xen/arch/x86

[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 julien.gr...@citrix.com --- 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

[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 julien.gr...@citrix.com --- xen/arch/x86/hvm/hvm.c | 127 ++-- 1 files changed, 80 insertions

[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 julien.gr...@citrix.com --- xen/arch/x86/hvm/hvm.c

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

2012-03-22 Thread Julien Grall
which page it must use. We introduce a new kind a ioreq type IOREQ_TYPE_PCICONFIG which permit to forward easily PCI config space access. Signed-off-by: Julien Grall julien.gr...@citrix.com --- xen/include/asm-x86/hvm/domain.h | 24 +- xen/include/asm-x86/hvm/vcpu.h |4

[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 julien.gr...@citrix.com --- 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

[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 julien.gr...@citrix.com --- 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

[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 julien.gr...@citrix.com --- tools/libxl/libxl.h |4 ++-- tools/libxl/libxl_internal.h |1 + tools/libxl/libxl_types.idl | 11 +++ 3 files changed, 14 insertions

[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 julien.gr...@citrix.com --- tools/libxl/libxl_internal.h |9 + tools/libxl/libxl_qmp.c | 24 +--- 2 files changed, 18

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

2012-03-22 Thread Julien Grall
to implement multiple ioreq server on Xen and QEMU. Julien Grall (15): hvm: Modify interface to support multiple ioreq server hvm: Add functions to handle ioreq servers hvm-pci: Handle PCI config space in Xen hvm: Change initialization/destruction of an hvm hvm: Modify hvm_op hvm-io: IO

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

2012-03-22 Thread Julien Grall
, pci=00:4.0 Signed-off-by: Julien Grall julien.gr...@citrix.com --- tools/libxl/Makefile |2 +- tools/libxl/libxlu_dm.c | 202 ++ tools/libxl/libxlutil.h |5 + tools/libxl/xl_cmdimpl.c | 28 ++- 4 files changed, 235 insertions(+), 2

[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 julien.gr...@citrix.com --- tools/libxl/libxl.c |8 +- tools/libxl/libxl_create.c | 30 +- tools/libxl/libxl_dm.c | 225

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

2012-03-22 Thread Julien Grall
register all range. Indeed, the new ranges will be for PCI Bar. Signed-off-by: Julien Grall julien.gr...@citrix.com --- exec.c|9 ++ ioport.c | 17 xen-all.c | 83 + 3 files changed, 109 insertions(+), 0 deletions

[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 julien.gr...@citrix.com --- hw/pci.c

[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 julien.gr...@citrix.com --- tools/libxc/xc_domain.c | 140 +++ tools/libxc/xenctrl.h | 13 2 files changed, 153 insertions(+), 0 deletions(-) diff

[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 julien.gr...@citrix.com --- xen/arch/x86/hvm/hvm.c | 352 1 files changed, 352 insertions(+), 0 deletions(-) diff

[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 julien.gr...@citrix.com --- xen-all.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions

[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 julien.gr...@citrix.com --- hw/xen.h|1 + qemu-options.hx |2 ++ vl.c|8 3 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw

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

2012-03-22 Thread Julien Grall
to implement multiple ioreq server on Xen and QEMU. Julien Grall (6): option: Add -xen-dmid xen: Add functions to register PCI and IO in Xen memory: Add xen memory hook xen-pci: Register PCI in Xen xen-io: Handle the new ioreq type IOREQ_TYPE_PCI_CONFIG xen: handle qemu disaggregation

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

2012-03-22 Thread Julien Grall
the server. Moreover, all IO which are unhandleabled by Xen or by a server will be directly discard by Xen. Signed-off-by: Julien Grall julien.gr...@citrix.com --- xen/arch/x86/hvm/emulate.c| 56 + xen/arch/x86/hvm/hvm.c|5 ++- xen

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

2012-03-22 Thread Julien Grall
. Signed-off-by: Julien Grall julien.gr...@citrix.com --- xen/arch/x86/hvm/io.c | 85 - 1 files changed, 63 insertions(+), 22 deletions(-) diff --git a/xen/arch/x86/hvm/io.c b/xen/arch/x86/hvm/io.c index cd89ff6..d9df913 100644 --- a/xen/arch/x86

[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 julien.gr...@citrix.com --- xen-all.c | 62 ++-- 1 files changed, 59 insertions(+), 3

[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 julien.gr...@citrix.com --- tools

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

2012-03-23 Thread Julien Grall
On 03/23/2012 11:47 AM, Ian Campbell wrote: On Thu, 2012-03-22 at 15:59 +, Julien Grall wrote: This patch add a structure with contain all informations about a device model. Signed-off-by: Julien Gralljulien.gr...@citrix.com --- tools/libxl/libxl.h |4 ++-- tools/libxl

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

2012-03-23 Thread Julien Grall
On 03/22/2012 04:59 PM, Tim Deegan wrote: 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

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

2012-03-23 Thread Julien Grall
On 03/22/2012 05:44 PM, Jan Kiszka wrote: static void core_region_nop(MemoryListener *listener, diff --git a/ioport.c b/ioport.c index 78a3b89..073ed75 100644 --- a/ioport.c +++ b/ioport.c @@ -28,6 +28,7 @@ #include ioport.h #include trace.h #include memory.h +#include hw/xen.h

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

2012-03-26 Thread Julien Grall
On 03/26/2012 12:02 PM, Avi Kivity wrote: On 03/26/2012 01:01 PM, Stefano Stabellini wrote: On Sun, 25 Mar 2012, Avi Kivity wrote: On 03/23/2012 06:37 PM, Jan Kiszka wrote: On 2012-03-23 16:08, Julien Grall wrote: On 03/22/2012 05:44 PM, Jan Kiszka wrote

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

2012-03-26 Thread Julien Grall
On 03/23/2012 08:29 AM, Jan Beulich wrote: Is there a reasonably low enforced boundary on the number of devices? Otherwise, a linear lookup would seem overly simple to me. The maximum of bdf is 2^16 = 65536. Which kind of structure do you advice ? Array ? Hash Table ? Further, with how

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

2012-03-26 Thread Julien Grall
On 03/23/2012 08:18 AM, Jan Beulich wrote: +#define HVMOP_register_pcidev 24 +struct xen_hvm_register_pcidev { +domid_t domid;/* IN - domain to be serviced */ +servid_t id; /* IN - handle from HVMOP_register_ioreq_server */ +uint16_t bdf; /* IN - pci */

[Qemu-devel] [PATCH] Memory: unify ioport registration

2012-04-02 Thread Julien Grall
Replace register_ioport* by portio_list_*. All ioports registered by the previous functions don't call memory callback. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 22 +++--- hw/cirrus_vga.c | 31 ++- hw/pc.c

Re: [Qemu-devel] [PATCH] Memory: unify ioport registration

2012-04-03 Thread Julien Grall
On 04/03/2012 08:51 AM, Avi Kivity wrote: On 04/02/2012 05:37 PM, Julien Grall wrote: if (!inited) { inited = 1; @@ -2814,19 +2830,8 @@ static void cirrus_init_common(CirrusVGAState * s, int device_id, int is_pci, s-bustype = CIRRUS_BUSTYPE_ISA

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

2012-04-03 Thread Julien Grall
On 04/03/2012 02:31 PM, Ian Jackson wrote: Stefano Stabellini writes (Re: [Xen-devel] [XEN][RFC PATCH 14/15] xl-parsing: Parse the new option device_models): On Mon, 2 Apr 2012, Ian Jackson wrote: I don't think this is really a suitable interface. The PCI space in the guest is

[Qemu-devel] [PATCH] memory: check address space when a listener is registered

2012-04-04 Thread Julien Grall
This patch resolves a bug in memory listener registration. range_add callback was called on each section of the both address space (IO and memory space) even if it doesn't match the address space filter. Signed-off-by: Julien Grall julien.gr...@citrix.com --- memory.c |5 + 1 files

Re: [Qemu-devel] [PATCH] Memory: unify ioport registration

2012-04-04 Thread Julien Grall
On 04/03/2012 08:51 AM, Avi Kivity wrote: On 04/02/2012 05:37 PM, Julien Grall wrote: s = g_malloc0(sizeof(SerialState)); @@ -820,8 +828,9 @@ SerialState *serial_init(int base, qemu_irq irq, int baudbase, vmstate_register(NULL, base,vmstate_serial, s

[Qemu-devel] [PATCH V2 0/7] memory: unify ioport registration

2012-04-04 Thread Julien Grall
functions, add IO address space as argument. - Add isa_address_space_io function I may not to be aware about some new modifications (hw/dma.c and hw/apm.c), any advice on its will be welcome. Julien Grall (7): isa: add isa_address_space_io hw/acpi_piix4.c: replace register_ioport* hw

[Qemu-devel] [PATCH V2 2/7] hw/acpi_piix4.c: replace register_ioport*

2012-04-04 Thread Julien Grall
This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 76 +++ 1 files changed, 65 insertions(+), 11 deletions

[Qemu-devel] [PATCH V2 5/7] hw/pc.c: replace register_ioport*

2012-04-04 Thread Julien Grall
This patch replaces all register_ioport* with portio_* or isa_register_portio_list. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c | 37 +++-- 1 files changed, 23 insertions(+), 14 deletions

[Qemu-devel] [PATCH V2 1/7] isa: add isa_address_space_io

2012-04-04 Thread Julien Grall
This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/isa-bus.c |5 + hw/isa.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PATCH V2 6/7] hw/dma.c: replace register_ioport*

2012-04-04 Thread Julien Grall
This patch replaces all register_ioport* with isa_register_portio_list. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/dma.c | 55 +-- 1 files changed, 37 insertions(+), 18

[Qemu-devel] [PATCH V2 3/7] hw/cirrus_vga.c: replace register_ioport*

2012-04-04 Thread Julien Grall
This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/cirrus_vga.c | 38 ++ 1 files changed, 22 insertions(+), 16 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH V2 4/7] hw/serial.c: replace register_ioport*

2012-04-04 Thread Julien Grall
This patch replaces all register_ioport* with a MemoryRegion. It permits to use the new Memory stuff like listener. For more flexibility, the IO address space is passed as an argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.h |2 +- hw/serial.c |8 +--- 2

[Qemu-devel] [PATCH V2 7/7] hw/apm.c: replace register_ioport*

2012-04-04 Thread Julien Grall
This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added as an argument for apm_init, so we can register IO inside the pci IO address space. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4

[Qemu-devel] [PATCH V3 5/8] hw/pc.c: replace register_ioport*

2012-04-05 Thread Julien Grall
This patch replaces all register_ioport* with portio_* or isa_register_portio_list. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c | 58 +++--- 1 files changed, 43

[Qemu-devel] [PATCH V3 7/8] hw/apm.c: replace register_ioport*

2012-04-05 Thread Julien Grall
This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added as an argument for apm_init, so we can register IO inside the pci IO address space. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4

[Qemu-devel] [PATCH V3 8/8] smb: replace_register_ioport*

2012-04-05 Thread Julien Grall
This patch fix smb_ioport_* to be compliant with read/write memory callback. Moreover it replaces all register_ioport* which use theses functions by the new Memory API. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 16 ++-- hw/pm_smbus.c |7

[Qemu-devel] [PATCH V3 6/8] hw/dma.c: replace register_ioport*

2012-04-05 Thread Julien Grall
This patch replaces all register_ioport* be the new memory API functions. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/dma.c | 84 - 1 files changed, 60 insertions

[Qemu-devel] [PATCH V3 0/8] memory: unify ioport registration

2012-04-05 Thread Julien Grall
to be compliant with memory callback. Julien Grall (8): isa: add isa_address_space_io hw/acpi_piix4.c: replace register_ioport* hw/cirrus_vga.c: replace register_ioport* hw/serial.c: replace register_ioport* hw/pc.c: replace register_ioport* hw/dma.c: replace register_ioport* hw/apm.c: replace

[Qemu-devel] [PATCH V3 4/8] hw/serial.c: replace register_ioport*

2012-04-05 Thread Julien Grall
This patch replaces all register_ioport* with a MemoryRegion. It permits to use the new Memory stuff like listener. For more flexibility, the IO address space is passed as an argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/mips_mipssim.c |3 ++- hw/pc.h |2

[Qemu-devel] [PATCH V3 1/8] isa: add isa_address_space_io

2012-04-06 Thread Julien Grall
This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/isa-bus.c |5 + hw/isa.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git

Re: [Qemu-devel] [PATCH] memory: check address space when a listener is registered

2012-04-06 Thread Julien Grall
On 04/05/2012 11:10 AM, Avi Kivity wrote: On 04/04/2012 05:15 PM, Julien Grall wrote: This patch resolves a bug in memory listener registration. range_add callback was called on each section of the both address space (IO and memory space) even if it doesn't match the address space filter

[Qemu-devel] [PATCH V3 3/8] hw/cirrus_vga.c: replace register_ioport*

2012-04-06 Thread Julien Grall
This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/cirrus_vga.c | 38 ++ 1 files changed, 22 insertions(+), 16 deletions(-) diff --git a/hw

Re: [Qemu-devel] [PATCH V9 0/8] memory: unify ioport registration

2012-09-11 Thread Julien Grall
On 09/11/2012 10:25 AM, Avi Kivity wrote: On 09/11/2012 12:15 PM, Avi Kivity wrote: On 09/04/2012 06:13 PM, Julien Grall wrote: This is the nineth version of patch series about ioport registration. Some part of QEMU still use register_ioport* functions to register ioport

Re: [Qemu-devel] [PATCH] pc: Don't listen on debug ports by default

2012-09-11 Thread Julien Grall
On 09/11/2012 12:57 PM, Jan Kiszka wrote: On 2012-09-11 13:48, Jan Kiszka wrote: On 2012-09-11 13:27, Julien Grall wrote: On 09/11/2012 10:25 AM, Avi Kivity wrote: On 09/11/2012 12:15 PM, Avi Kivity wrote: On 09/04/2012 06:13 PM, Julien Grall wrote: This is the nineth version

[Qemu-devel] [PATCH V10 1/8] isa: add isa_address_space_io

2012-09-19 Thread Julien Grall
This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/isa-bus.c |9 + hw/isa.h |1 + 2 files changed, 10 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH V10 0/8] memory: unify ioport registration

2012-09-19 Thread Julien Grall
string in hw/dma.c; - Rebase on master as hw/pc.c and hw/cirrus_vga.c was modified. Julien Grall (8): isa: add isa_address_space_io hw/apm.c: replace register_ioport* smb: replace_register_ioport* hw/acpi_piix4.c: replace register_ioport* hw/cirrus_vga.c: replace register_ioport* hw

[Qemu-devel] [PATCH V10 6/8] hw/serial.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* with a MemoryRegion. It permits to use the new Memory stuff like listener. For more flexibility, the IO address space is passed as an argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/mips_mipssim.c |3 ++- hw/pc.h |2

[Qemu-devel] [PATCH V10 3/8] smb: replace_register_ioport*

2012-09-19 Thread Julien Grall
This patch fix smb_ioport_* to be compliant with read/write memory callback. Moreover it replaces all register_ioport* which use theses functions by the new Memory API. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 18 -- hw/pm_smbus.c |7

[Qemu-devel] [PATCH V10 8/8] hw/dma.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* be the new memory API functions. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/dma.c | 108 + 1 files changed, 72 insertions

[Qemu-devel] [PATCH V10 2/8] hw/apm.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added as an argument for apm_init, so we can register IO inside the pci IO address space. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4

[Qemu-devel] [PATCH V10 7/8] hw/pc.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* with portio_* or isa_register_portio_list. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c | 49 - 1 files changed, 40 insertions(+), 9

[Qemu-devel] [PATCH V10 4/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 154 +-- 1 files changed, 116 insertions(+), 38

[Qemu-devel] [PATCH V10 5/8] hw/cirrus_vga.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/cirrus_vga.c | 48 1 files changed, 28 insertions(+), 20 deletions(-) diff

[Qemu-devel] Qemu disaggregation in Xen environment

2012-02-28 Thread Julien Grall
Hello, In the current model, only one instance of qemu is running for each running HVM domain. We are looking at disaggregating qemu to have, for example, an instance to emulate only network controllers, another to emulate block devices, etc... Multiple instances of qemu would run for a

Re: [Qemu-devel] [Xen-devel] Qemu disaggregation in Xen environment

2012-03-12 Thread Julien Grall
On 03/05/2012 10:06 PM, Ian Campbell wrote: I'm not aware of any code existing to do this. There's a bunch of interesting stuff to do on the Xen side to make this stuff work. Firstly you would need to add support to the hypervisor for dispatching I/O requests to multiple qemu instances (via

[Qemu-devel] [PATCH V3 2/8] hw/acpi_piix4.c: replace register_ioport*

2012-04-06 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 112 +- 1 files changed, 93 insertions(+), 19

[Qemu-devel] [PATCH V4 3/8] hw/cirrus_vga.c: replace register_ioport*

2012-04-12 Thread Julien Grall
This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/cirrus_vga.c | 38 ++ 1 files changed, 22 insertions(+), 16 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH V4 7/8] hw/apm.c: replace register_ioport*

2012-04-12 Thread Julien Grall
This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added as an argument for apm_init, so we can register IO inside the pci IO address space. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4

[Qemu-devel] [PATCH V4 5/8] hw/pc.c: replace register_ioport*

2012-04-12 Thread Julien Grall
This patch replaces all register_ioport* with portio_* or isa_register_portio_list. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c | 58 +++--- 1 files changed, 43

[Qemu-devel] [PATCH V4 1/8] isa: add isa_address_space_io

2012-04-12 Thread Julien Grall
This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/isa-bus.c |5 + hw/isa.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PATCH V4 6/8] hw/dma.c: replace register_ioport*

2012-04-12 Thread Julien Grall
This patch replaces all register_ioport* be the new memory API functions. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/dma.c | 108 + 1 files changed, 72 insertions

[Qemu-devel] [PATCH V4 2/8] hw/acpi_piix4.c: replace register_ioport*

2012-04-12 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 150 +-- 1 files changed, 112 insertions(+), 38

[Qemu-devel] [PATCH V4 0/8] memory: unify ioport registration

2012-04-12 Thread Julien Grall
prototype to be compliant with memory callback. Modifications between V3 and V4: - Fix compilation in hw/dma.c - Fix address conversion (hw/dma.c, hw/acpi_piix4.c) with MemorySection. Indeed the new version use offset from MemorySection start instead of 0. Julien Grall (8): isa: add

[Qemu-devel] [PATCH V4 4/8] hw/serial.c: replace register_ioport*

2012-04-12 Thread Julien Grall
This patch replaces all register_ioport* with a MemoryRegion. It permits to use the new Memory stuff like listener. For more flexibility, the IO address space is passed as an argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/mips_mipssim.c |3 ++- hw/pc.h |2

[Qemu-devel] [PATCH V4 8/8] smb: replace_register_ioport*

2012-04-12 Thread Julien Grall
This patch fix smb_ioport_* to be compliant with read/write memory callback. Moreover it replaces all register_ioport* which use theses functions by the new Memory API. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 16 ++-- hw/pm_smbus.c |7

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

2012-04-12 Thread Julien Grall
On 03/23/2012 11:33 AM, Ian Campbell wrote: On Thu, 2012-03-22 at 15:59 +, Julien Grall wrote: 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

[Qemu-devel] [PATCH V5 0/8] memory: unifiy ioport registration

2012-08-22 Thread Julien Grall
version use offset from MemorySection start instead of 0. Modifications between V4 and V4: - Rebase on qemu upstream. - Forget some ioport_register_* in acpi_piix4.c. - Register 0x3b0 - 0x3df range for cirrus instead of ioport by ioport. Julien Grall (8): isa: add isa_address_space_io

[Qemu-devel] [PATCH V5 1/8] isa: add isa_address_space_io

2012-08-22 Thread Julien Grall
This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/isa-bus.c |5 + hw/isa.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PATCH V5 6/8] hw/dma.c: replace register_ioport*

2012-08-22 Thread Julien Grall
This patch replaces all register_ioport* be the new memory API functions. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/dma.c | 108 + 1 files changed, 72 insertions

[Qemu-devel] [PATCH V5 2/8] hw/acpi_piix4.c: replace register_ioport*

2012-08-22 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 160 ++ 1 files changed, 124 insertions(+), 36

[Qemu-devel] [PATCH V5 8/8] smb: replace_register_ioport*

2012-08-22 Thread Julien Grall
This patch fix smb_ioport_* to be compliant with read/write memory callback. Moreover it replaces all register_ioport* which use theses functions by the new Memory API. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pm_smbus.c |7 --- hw/pm_smbus.h |6 -- hw/vt82c686

[Qemu-devel] [PATCH V5 5/8] hw/pc.c: replace register_ioport*

2012-08-22 Thread Julien Grall
This patch replaces all register_ioport* with portio_* or isa_register_portio_list. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c | 58 +++--- 1 files changed, 43

[Qemu-devel] [QEMU][RFC V2 01/10] xen: add new machine options to support QEMU disaggregation in Xen environment

2012-08-22 Thread Julien Grall
xen hypercall. (Root bridge, south bridge, ...). - xen_emulate_ide (on/off): enable/disable emulation in QEMU. Signed-off-by: Julien Grall julien.gr...@citrix.com --- qemu-config.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/qemu-config.c b/qemu

[Qemu-devel] [QEMU][RFC V2 03/10] xen: add wrappers for new Xen disaggregation hypercalls

2012-08-22 Thread Julien Grall
QEMU disaggregation is not supported on old Xen versions. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/xen_common.h | 58 +++ 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/hw/xen_common.h b/hw/xen_common.h

[Qemu-devel] [QEMU][RFC V2 02/10] xen: modify QEMU status path in XenStore

2012-08-22 Thread Julien Grall
QEMU will now write its status in another XenStore path because multiple QEMU can run for a same domain. If xen_dmid machine option is not specified, it means that an old version of Xen is used, so status is written in the old path. Signed-off-by: Julien Grall julien.gr...@citrix.com --- xen

[Qemu-devel] [PATCH V5 4/8] hw/serial.c: replace register_ioport*

2012-08-22 Thread Julien Grall
This patch replaces all register_ioport* with a MemoryRegion. It permits to use the new Memory stuff like listener. For more flexibility, the IO address space is passed as an argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/mips_mipssim.c |3 ++- hw/pc.h |2

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

2012-08-22 Thread Julien Grall
This patch add 5 hypercalls to register server, io range and PCI. Signed-off-by: Julien Grall julien.gr...@citrix.com --- tools/libxc/xc_domain.c | 155 +++ tools/libxc/xenctrl.h | 21 ++ 2 files changed, 176 insertions(+), 0 deletions

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

2012-08-22 Thread Julien Grall
the server. Moreover, all IO which are unhandleabled by Xen or by a server will be directly discard inside Xen. Signed-off-by: Julien Grall julien.gr...@citrix.com --- xen/arch/x86/hvm/emulate.c| 56 + xen/arch/x86/hvm/hvm.c|5

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

2012-08-22 Thread Julien Grall
server. Signed-off-by: Julien Grall julien.gr...@citrix.com --- xen/arch/x86/hvm/io.c | 75 +--- 1 files changed, 58 insertions(+), 17 deletions(-) diff --git a/xen/arch/x86/hvm/io.c b/xen/arch/x86/hvm/io.c index b73a462..6e0160c 100644 --- a/xen/arch/x86

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

2012-08-22 Thread Julien Grall
This patch permits to allocate more special pages. Indeed, for multiple ioreq server, we need to have 2 shared pages by server. Signed-off-by: Julien Grall julien.gr...@citrix.com --- tools/libxc/xc_hvm_build_x86.c| 59 +++- tools/libxc/xenguest.h

[Qemu-devel] [PATCH V5 7/8] hw/apm.c: replace register_ioport*

2012-08-22 Thread Julien Grall
This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added as an argument for apm_init, so we can register IO inside the pci IO address space. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/apm.c

[Qemu-devel] [QEMU][RFC V2 07/10] xen: specify which device is part of default devices

2012-08-22 Thread Julien Grall
); xen_be_register(qdisk, xen_blkdev_ops); + +if (xen_emulate_default_dev) { +xen_be_register(console, xen_console_ops); +xen_be_register(vkbd, xen_kbdmouse_ops); +} xen_read_physmap(state); return 0; -- Julien Grall

[Qemu-devel] [QEMU][RFC V2 06/10] xen-pci: register PCI device in Xen and handle IOREQ_TYPE_PCI_CONFIG

2012-08-22 Thread Julien Grall
xen_piix3_set_irq(void *opaque, int irq_num, int level) { } +int xen_register_pcidev(PCIDevice *pci_dev) +{ +return 1; +} + void xen_piix_pci_write_config_client(uint32_t address, uint32_t val, int len) { } -- Julien Grall

[Qemu-devel] [QEMU][RFC V2 08/10] xen: audio is not a part of default devices

2012-08-22 Thread Julien Grall
Signed-off-by: Julien Grall julien.gr...@citrix.com --- arch_init.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch_init.c b/arch_init.c index 9b46bfc..1077b16 100644 --- a/arch_init.c +++ b/arch_init.c @@ -44,6 +44,7 @@ #include exec-memory.h #include hw

[Qemu-devel] [XEN][RFC PATCH V2 00/17] QEMU disaggregation in Xen environment

2012-08-22 Thread Julien Grall
buffered I/O shared page or not (It was an idea of Christian Limpach) I don't test all configurations. Comments, bug reports, ... are welcome. Julien Grall (17): hvm: Modify interface to support multiple ioreq server hvm: Add functions to handle ioreq servers hvm-pci: Handle PCI config space

  1   2   3   >