Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-07-05 Thread Baptiste Reynal
On Tue, Jul 5, 2016 at 3:49 AM, Hailiang Zhang wrote: > On 2016/7/4 20:22, Baptiste Reynal wrote: >> >> On Thu, Jan 7, 2016 at 1:19 PM, zhanghailiang >> wrote: >>> >>> For now, we still didn't support live memory snapshot, we have discussed >>&

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-07-04 Thread Baptiste Reynal
On Thu, Jan 7, 2016 at 1:19 PM, zhanghailiang wrote: > For now, we still didn't support live memory snapshot, we have discussed > a scheme which based on userfaultfd long time ago. > You can find the discussion by the follow link: > https://lists.nongnu.org/archive/html/qemu-devel/2014-11/msg01779

Re: [Qemu-devel] [PATCH 1/1] backend: multi-client-socket

2016-04-08 Thread Baptiste Reynal
I wasn't aware of this new framework when I started the development of this socket. For sure I'll have a deeper look and see what can be shared for the next version. On Thu, Mar 31, 2016 at 11:08 AM, Stefan Hajnoczi wrote: > On Fri, Mar 18, 2016 at 10:12:46AM +0100, Baptiste

Re: [Qemu-devel] [RFC v2 0/6] QEMU shared-memory backend

2016-04-08 Thread Baptiste Reynal
On Thu, Apr 7, 2016 at 6:27 PM, Markus Armbruster wrote: > Baptiste Reynal writes: > >> On Tue, Mar 22, 2016 at 3:14 PM, Markus Armbruster wrote: >>> >>> Copying Paolo, author of memory-backend-file. >>> >>> Baptiste Reynal writes: >>&

Re: [Qemu-devel] [RFC v2 0/6] QEMU shared-memory backend

2016-04-08 Thread Baptiste Reynal
On Wed, Apr 6, 2016 at 3:47 PM, Igor Mammedov wrote: > On Wed, 6 Apr 2016 09:57:57 +0100 > Stefan Hajnoczi wrote: > >> On Tue, Apr 05, 2016 at 02:00:40PM +0200, Baptiste Reynal wrote: >> > On Thu, Mar 31, 2016 at 11:14 AM, Stefan Hajnoczi >> > wrote: >> &

Re: [Qemu-devel] [RFC v2 4/6] hw/misc: sdm virtio device

2016-04-05 Thread Baptiste Reynal
On Thu, Mar 31, 2016 at 11:12 AM, Stefan Hajnoczi wrote: > On Fri, Mar 18, 2016 at 10:13:03AM +0100, Baptiste Reynal wrote: >> This is the virtio implementation for an SDM device. >> >> Parameters are: >> comm=[sdm_communication_id] specifies the communication ch

Re: [Qemu-devel] [RFC v2 0/6] QEMU shared-memory backend

2016-04-05 Thread Baptiste Reynal
On Thu, Mar 31, 2016 at 11:14 AM, Stefan Hajnoczi wrote: > > On Fri, Mar 18, 2016 at 10:13:52AM +0100, Baptiste Reynal wrote: > > A new memory backend, the shared memory backend, based on > > the file memory backend. > > > > This new backend allows a master QE

[Qemu-devel] [RFC 4/4] hw/misc: sdm signal nboot

2016-03-24 Thread Baptiste Reynal
This patch introduces a new signal for SDM device, which triggers the boot of a machine using a network memory. Signed-off-by: Baptiste Reynal --- hw/misc/Makefile.objs | 1 + hw/misc/sdm-signal-nboot.c | 62 ++ include/hw/misc/sdm

[Qemu-devel] [RFC 2/4] backend: shared memory over network backend

2016-03-24 Thread Baptiste Reynal
is meant to be coherent with the dma_alloc_coherent allocator. Signed-off-by: Baptiste Reynal --- backends/Makefile.objs | 2 +- backends/hostmem-network.c | 301 +++ include/sysemu/hostmem-network.h | 79 ++ 3 files changed, 381

[Qemu-devel] [RFC 0/4] QEMU shared-memory over network

2016-03-24 Thread Baptiste Reynal
./sdm-test -b 0 1 zImage slave.dtb zImage and slave.dtb are available on branch demo_slaves_sdm. This patch serie depends on: - [RFC v2 0/6] SDM Interface - [RFC v2 1/1] backend: multi-client-socket This work has been sponsored by Huawei Technologies Duesseldorf GmbH. Baptiste Reynal (

[Qemu-devel] [RFC 3/4] migration: extend shared migration type

2016-03-24 Thread Baptiste Reynal
shared migration now supports shared or network memory. Signed-off-by: Baptiste Reynal --- migration/shared.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/migration/shared.c b/migration/shared.c index 1371a71..eb13eb9 100644 --- a/migration/shared.c

[Qemu-devel] [RFC 1/4] backend: multi-client-socket

2016-03-24 Thread Baptiste Reynal
is kept for backward compatibility - multi_socket_send_and_block_to function added, to send a message and wait for the answer Signed-off-by: Baptiste Reynal --- backends/multi-socket.c | 420 ++-- include/qemu/multi-socket.h | 57 +- 2 files

Re: [Qemu-devel] [RFC v2 0/6] QEMU shared-memory backend

2016-03-22 Thread Baptiste Reynal
On Tue, Mar 22, 2016 at 3:14 PM, Markus Armbruster wrote: > > Copying Paolo, author of memory-backend-file. > > Baptiste Reynal writes: > > > A new memory backend, the shared memory backend, based on > > the file memory backend. > > > > This new backend a

[Qemu-devel] [RFC v2 2/6] hw/misc: sdm platform device

2016-03-20 Thread Baptiste Reynal
len-signals=[signals_number] - specifies the number of signals signals[x]=[signal_id] - add a signal to the device, with the ID x Signed-off-by: Baptiste Reynal --- hw/misc/Makefile.objs | 1 + hw/misc/sdm-platform.c | 236 + include/hw

[Qemu-devel] [RFC v2 3/6] hw/arm: sysbus-fdt

2016-03-20 Thread Baptiste Reynal
Added node creation for dynamically instantiated sysbus SDM device. Support added for all ARM machines modeling dynamic sysbus devices instantiation. Signed-off-by: Christian Pinto Signed-off-by: Baptiste Reynal --- hw/arm/sysbus-fdt.c | 62

[Qemu-devel] [RFC v2 0/6] SDM Interface

2016-03-20 Thread Baptiste Reynal
t application: ./sdm-test -s 0 0 0x0 0x0 0x0 This patch serie is a follow-up to "[RFC PATCH 0/8] Towards an Heterogeneous QEMU": https://lists.gnu.org/archive/html/qemu-devel/2015-10/msg00171.html This work has been sponsored by Huawei Technologies Duesseldorf GmbH. Baptiste Reynal (6):

[Qemu-devel] [PATCH 1/1] backend: multi-client-socket

2016-03-19 Thread Baptiste Reynal
ned-off-by: Baptiste Reynal --- backends/Makefile.objs | 2 + backends/multi-socket.c | 355 include/qemu/multi-socket.h | 124 3 files changed, 481 insertions(+) create mode 100644 backends/multi-socket.c create mode 100644 in

[Qemu-devel] [RFC v2 3/6] hw/misc: sdm signal shboot

2016-03-19 Thread Baptiste Reynal
This patch introduces a new signal for SDM device, which triggers the boot of a machine using a shared memory. Signed-off-by: Baptiste Reynal --- hw/misc/Makefile.objs | 1 + hw/misc/sdm-signal-shboot.c | 62 + include/hw/misc/sdm

[Qemu-devel] [RFC v2 6/6] hw/misc: sdm communication socket

2016-03-19 Thread Baptiste Reynal
This is the socket implementation of an SDM communication channel. A master device can communicate with a slave over a socket. Parameters: socket=[socket_id] - specifies the multi-client socket This patch depends on "[RFC v2 1/1] backend: multi-client-socket" Signed-off-by: Bapti

[Qemu-devel] [RFC v2 2/6] migration: add shared migration type

2016-03-19 Thread Baptiste Reynal
A QEMU instance can now wait for the instantiation of the memory by the master while shared-memory backend is used. Use: -incoming "shared:" Signed-off-by: Baptiste Reynal --- backends/hostmem-shared.c | 6 ++ include/migration/migration.h | 2 ++ migration/Makefile.objs

[Qemu-devel] [RFC v2 1/6] backend: shared memory backend

2016-03-19 Thread Baptiste Reynal
the total shared memory. Signed-off-by: Baptiste Reynal --- backends/Makefile.objs | 2 +- backends/hostmem-shared.c | 192 include/sysemu/hostmem-shared.h | 66 ++ 3 files changed, 259 insertions(+), 1 deletion(-) create mode

[Qemu-devel] [RFC v2 5/6] hw/misc: sdm communication local

2016-03-19 Thread Baptiste Reynal
This patch introduces local implementation for SDM devices. It allows a master to communicate with a slave on the same QEMU instance. Instantiation: -object sdm-communication-local,id= Signed-off-by: Baptiste Reynal --- hw/misc/Makefile.objs | 1 + hw/misc/sdm

[Qemu-devel] [RFC v2 0/6] QEMU shared-memory backend

2016-03-19 Thread Baptiste Reynal
tch serie depends on: - [RFC v2 0/6] SDM Interface - [RFC v2 1/1] backend: multi-client-socket This work has been sponsored by Huawei Technologies Duesseldorf GmbH. Baptiste Reynal (3): backend: shared memory backend migration: add shared migration type hw/misc: sdm signal shboot Christian Pinto

[Qemu-devel] [RFC v2 6/6] qemu: numa

2016-03-19 Thread Baptiste Reynal
From: Christian Pinto This patch modifies the behavior of memory_region_allocate_system_memory, when the new shared memory backend is used from a slave qemu instance. In such case there is not yet a valid pointer for the memory region pointed by the backend (it will be innitilized later when rece

[Qemu-devel] [RFC v2 1/6] hw/misc: sdm interface

2016-03-18 Thread Baptiste Reynal
: Baptiste Reynal --- default-configs/arm-softmmu.mak | 1 + hw/misc/Makefile.objs | 4 +++ hw/misc/sdm-communication.c | 55 +++ hw/misc/sdm-device.c| 66 + hw/misc/sdm-signal.c

[Qemu-devel] [RFC v2 4/6] qemu: slave machine flag

2016-03-18 Thread Baptiste Reynal
From: Christian Pinto This patch adds a new machine flag, to configure qemu as a slave instance. Usage -machine -slave=[on|off] (default=off) Signed-off-by: Christian Pinto --- hw/core/machine.c | 27 +++ include/hw/boards.h | 2 ++ qemu-options.hx | 5 -

[Qemu-devel] [RFC v2 5/6] hw/arm: boot

2016-03-18 Thread Baptiste Reynal
From: Christian Pinto This patch modifies the boot process of an ARM machine in otrder to check whether if it is a slave, by checking the slave machine flag. When the slave flag is on, no kernel, dtb or initrd are loaded into memory. The boot address of each core is set to the start address of t

[Qemu-devel] [RFC v2 4/6] hw/misc: sdm virtio device

2016-03-18 Thread Baptiste Reynal
=[signals_number] - specifies the number of signals signals[x]=[signal_id] - add a signal to the device, with the ID x Signed-off-by: Christian Pinto Signed-off-by: Baptiste Reynal --- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-sdm.c | 262

Re: [Qemu-devel] [RFC 0/6] vSMMU initialization

2015-07-15 Thread Baptiste Reynal
On Tue, Jul 14, 2015 at 1:04 PM, Will Deacon wrote: > On Tue, Jul 14, 2015 at 03:21:03AM +0100, Varun Sethi wrote: >> Hi Will, > > Hi Varun, > >> > On Fri, Jun 12, 2015 at 03:20:04PM +0100, Baptiste Reynal wrote: >> > > The ARM SMMU has support for 2-

[Qemu-devel] [RFC 3/6] hw/core/platform-bus: add base_address field

2015-06-12 Thread Baptiste Reynal
Add base_address field to platform_bus structure and initialize it. As the platform devices addresses are relative to the platform bus, we need it to get the absolute address of a device. Signed-off-by: Baptiste Reynal --- hw/arm/virt.c | 4 include/hw/platform-bus.h | 2 ++ 2

[Qemu-devel] [RFC 2/6] hw/core/platform-bus: initialization notifier

2015-06-12 Thread Baptiste Reynal
required for some device initialization (e.g. the vSMMU base address needs to be set on the KVM device). Signed-off-by: Baptiste Reynal --- hw/core/platform-bus.c| 13 + include/hw/platform-bus.h | 1 + 2 files changed, 14 insertions(+) diff --git a/hw/core/platform-bus.c b/hw/core

[Qemu-devel] [RFC 1/6] headers sync

2015-06-12 Thread Baptiste Reynal
Signed-off-by: Baptiste Reynal --- linux-headers/linux/kvm.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index fad9e5c..d48d7b1 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -1003,6

[Qemu-devel] [RFC 6/6] hw/arm/sysbus-fdt: add smmu masters in device tree

2015-06-12 Thread Baptiste Reynal
This patch adds a function to bind a device as an SMMU master in the device tree. Currently, only one device is supported. A device can be set as SMMU master by using the "x-iommu" argument on the command line: -device pl330,x-iommu=true Signed-off-by: Baptiste Reynal --- hw/arm/sy

[Qemu-devel] [RFC 5/6] hw/arm/sysbus-fdt: enable vsmmu dynamic instantiation

2015-06-12 Thread Baptiste Reynal
This patch adds the device tree node creation for the vSMMU. Signed-off-by: Baptiste Reynal --- hw/arm/sysbus-fdt.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/hw/arm/sysbus-fdt.c b/hw/arm/sysbus-fdt.c index 3038b94..67f4425 100644 --- a/hw

[Qemu-devel] [RFC 4/6] hw/vfio: vsmmu device

2015-06-12 Thread Baptiste Reynal
This patches introduces support for ARM virtual SMMU, enabling two stages address translation. The vSMMU device can be instantiated from the command line using following option: -device vsmmu,x-group=1 Signed-off-by: Baptiste Reynal --- hw/vfio/Makefile.objs | 1 + hw/vfio/common.c

[Qemu-devel] [RFC 0/6] vSMMU initialization

2015-06-12 Thread Baptiste Reynal
: - Interrupts are not handled for now - Only one device can be bound to the vSMMU I'm open to any comments or suggestions. Baptiste Reynal (6): headers sync hw/core/platform-bus: initialization notifier hw/core/platform-bus: add base_address field hw/vfio: vsmmu device hw/arm/sysbus-fdt: e

Re: [Qemu-devel] [PATCH v15 00/10] KVM platform device passthrough

2015-05-11 Thread Baptiste Reynal
Hi Eric, I rebased amba patches on this serie. Everything is working fine with the PL330 device. Regards, Baptiste On Wed, May 6, 2015 at 8:37 AM, Eric Auger wrote: > Dear All, > > Please ignore the previous void message. For unknown reason the reply > systematically ignores the content of the

Re: [Qemu-devel] [PATCH v11 0/4] machvirt dynamic sysbus device instantiation

2015-04-24 Thread Baptiste Reynal
pendency and overall acceptance is not guaranteed. > > Best Regards > > Eric > > > On 04/23/2015 05:05 PM, Baptiste Reynal wrote: >> Hi Eric, >> >> Is there anything still blocking this patch ? Can I get the status ? >> >> Thanks, >> Baptiste >

Re: [Qemu-devel] [PATCH v11 0/4] machvirt dynamic sysbus device instantiation

2015-04-23 Thread Baptiste Reynal
Hi Eric, Is there anything still blocking this patch ? Can I get the status ? Thanks, Baptiste On Wed, Mar 4, 2015 at 5:18 PM, Eric Auger wrote: > This patch series enables machvirt to dynamically instantiate sysbus > devices from command line (using -device option). > > All those sysbus devic

[Qemu-devel] [RFC PATCH v2 3/4] hw/arm/sysbus-fdt: vfio device property for interrupts

2015-02-11 Thread Baptiste Reynal
Use the VFIO device property API to retrieve interrupt information (type and flags) during device node creation. Signed-off-by: Baptiste Reynal --- v1 -> v2: check irq_prop->data size add some comments --- hw/arm/sysbus-fdt.c | 23 +-- 1 file changed, 17 insertions

[Qemu-devel] [RFC PATCH v2 2/4] hw/vfio/common.c : vfio_get_dev_property

2015-02-11 Thread Baptiste Reynal
Add a function to handle ioctl VFIO_DEVICE_GET_DEV_PROPERTY to retrieve properties from a VFIO device. Signed-off-by: Baptiste Reynal --- v1 -> v2: fix property->length initialization --- hw/vfio/common.c | 32 include/hw/vfio/vfio-common.

[Qemu-devel] [RFC PATCH v2 4/4] hw/arm/sysbus-fdt: arm, pl330 vfio device property

2015-02-11 Thread Baptiste Reynal
Adapt arm,pl330 function to use the vfio device property API. Clock apb-pclk is the default if a clock is needed by the device. Three optional parameters are taken into account : - #dma-cells - #dma-channels - #dma-requests Signed-off-by: Baptiste Reynal --- v1 -> v2: add some comments f

[Qemu-devel] [RFC PATCH v2 0/4] VFIO platform: Use device properties API

2015-02-11 Thread Baptiste Reynal
since v1: - various fixes - code clarification (some comments added) Baptiste Reynal (4): linux-headers update hw/vfio/common.c : vfio_get_dev_property hw/arm/sysbus-fdt: vfio device property for interrupts hw/arm/sysbus-fdt: arm,pl330 vfio device property hw/arm/sysbus-fdt.c | 134

[Qemu-devel] [RFC PATCH v2 1/4] linux-headers update

2015-02-11 Thread Baptiste Reynal
Add VFIO device property constants Signed-off-by: Baptiste Reynal --- linux-headers/linux/vfio.h | 25 + 1 file changed, 25 insertions(+) diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h index 58f549c..1d16c12 100644 --- a/linux-headers/linux/vfio.h

[Qemu-devel] [RFC PATCH v3 3/3] hw/vfio: add pl330 device support

2015-02-11 Thread Baptiste Reynal
Create a meta-device for PL330 DMA. Add add_arm_pl330_fdt_node function, with multiple compatible string and clocks support. Signed-off-by: Baptiste Reynal --- v2 -> v3: got to fail in case of apb_pclk missing free nodename in fail case --- hw/arm/sysbus-fdt.c |

[Qemu-devel] [RFC PATCH v3 2/3] hw/vfio: amba device support

2015-02-11 Thread Baptiste Reynal
Add VFIO_DEVICE_TYPE_AMBA. Differentiate amba and platform devices according to compatible string. Signed-off-by: Baptiste Reynal --- v2 -> v3: add amba flag check in vfio_populate_device --- hw/vfio/platform.c| 20 +++- include/hw/vfio/vfio-common.h | 1 + 2 fi

[Qemu-devel] [RFC PATCH v3 1/3] hw/vfio/sysbus-fdt: helper routines to create fdt nodes

2015-02-11 Thread Baptiste Reynal
Creates set_interrupts_fdt_node and set_regions_fdt_node for code reusability. Signed-off-by: Baptiste Reynal --- v2 -> v3: handle intermediate ret values in set_regions_fdt_node and set_interrupts_fdt_node --- hw/arm/sysbus-fdt.c | 129

[Qemu-devel] [RFC PATCH v3 0/3] VFIO support for AMBA devices

2015-02-11 Thread Baptiste Reynal
-append "earlyprintk console=ttyAMA0" \ -kernel zImage -nographic Then run DMA test: mount -t debugfs none /sys/kernel/debug echo 1 > /sys/kernel/debug/vosys_dmatest/start Baptiste Reynal (3): hw/vfio/sysbus-fdt: helper routines to create fdt nodes hw/vfio: amba device suppo

[Qemu-devel] [RFC PATCH 2/4] hw/vfio/common.c : vfio_get_dev_property

2015-01-12 Thread Baptiste Reynal
Add a function to handle ioctl VFIO_DEVICE_GET_DEV_PROPERTY to retrieve properties from a VFIO device. Signed-off-by: Baptiste Reynal --- hw/vfio/common.c | 33 + include/hw/vfio/vfio-common.h | 2 ++ 2 files changed, 35 insertions(+) diff --git a

[Qemu-devel] [RFC PATCH 4/4] hw/arm/sysbus-fdt: arm, pl330 vfio device property

2015-01-12 Thread Baptiste Reynal
Adapt arm,pl330 function to use the vfio device property API. Clock apb-pclk is the default if a clock is needed by the device. Three optional parameters are taken into account : - #dma-cells - #dma-channels - #dma-requests Signed-off-by: Baptiste Reynal --- hw/arm/sysbus-fdt.c | 120

[Qemu-devel] [RFC PATCH 1/4] linux-headers update

2015-01-12 Thread Baptiste Reynal
Add VFIO device property constants Signed-off-by: Baptiste Reynal --- linux-headers/linux/vfio.h | 25 + 1 file changed, 25 insertions(+) diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h index 0f21aa6..0c5f578 100644 --- a/linux-headers/linux/vfio.h

[Qemu-devel] [RFC PATCH 3/4] hw/arm/sysbus-fdt: vfio device property for interrupts

2015-01-12 Thread Baptiste Reynal
Use the VFIO device property API to retrieve interrupt information (type and flags) during device node creation. Signed-off-by: Baptiste Reynal --- hw/arm/sysbus-fdt.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/hw/arm/sysbus-fdt.c b/hw/arm

[Qemu-devel] [RFC PATCH 0/4] VFIO platform: Use device properties API

2015-01-12 Thread Baptiste Reynal
and flags). Regarding the clock, any primecell device requiring a clock is attached to apb-pclk. DMA pl330 is used as an example. For this reason the last patch (3/3, arm,pl330 vfio device property) relies on the following patch series: [RFC PATCH v2 0/3] VFIO support for AMBA devices. Baptiste

[Qemu-devel] [RFC PATCH v2 1/3] hw/vfio/sysbus-fdt: refactoring

2014-12-22 Thread Baptiste Reynal
Creates set_interrupts_fdt_node and set_regions_fdt_node for code reusability. Signed-off-by: Baptiste Reynal --- hw/arm/sysbus-fdt.c | 102 +--- 1 file changed, 73 insertions(+), 29 deletions(-) diff --git a/hw/arm/sysbus-fdt.c b/hw/arm/sysbus

[Qemu-devel] [RFC PATCH v2 3/3] hw/vfio: add pl330 device support

2014-12-22 Thread Baptiste Reynal
Create a meta-device for PL330 DMA. Add add_arm_pl330_fdt_node function, with multiple compatible string and clocks support. Signed-off-by: Baptiste Reynal --- hw/arm/sysbus-fdt.c | 84 hw/vfio/Makefile.objs| 1 + hw/vfio/pl330.c

[Qemu-devel] [RFC PATCH v2 2/3] hw/vfio: amba device support

2014-12-22 Thread Baptiste Reynal
Add VFIO_DEVICE_TYPE_AMBA. Differentiate amba and platform devices according to compatible string. Signed-off-by: Baptiste Reynal --- hw/vfio/platform.c| 15 --- include/hw/vfio/vfio-common.h | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hw/vfio

[Qemu-devel] [RFC PATCH v2 0/3] [RFC PATCH 0/3] VFIO support for AMBA devices

2014-12-22 Thread Baptiste Reynal
nt -t debugfs none /sys/kernel/debug echo 1 > /sys/kernel/debug/vosys_dmatest/start Results can be checked using dmesg. Changes since v1: - Remove add_generic_fdt_node - Refactor add_calxeda_midway_xgmac_fdt_node for code reuse - Add add_arm_pl330_fdt_node Baptiste Reynal (3): hw/vfio/sysbus

Re: [Qemu-devel] [RFC PATCH 1/3] hw/vfio/sysbus-fdt: generic add_generic_fdt_node

2014-12-17 Thread Baptiste Reynal
On Wed, Dec 17, 2014 at 2:32 PM, Eric Auger wrote: > > On 12/17/2014 11:09 AM, Baptiste Reynal wrote: > > Modify add_calxeda_midway_xgmac_fdt_node to make it more generic. > > Add multiple compatible strings support. > Hi Baptiste, > > Although I understand you may

[Qemu-devel] [RFC PATCH 3/3] hw/vfio: add pl330 device support

2014-12-17 Thread Baptiste Reynal
Create a meta-device for PL330 DMA. Signed-off-by: Baptiste Reynal --- hw/arm/sysbus-fdt.c | 2 ++ hw/vfio/Makefile.objs| 1 + hw/vfio/pl330.c | 41 + include/hw/vfio/vfio-pl330.h | 26 ++ 4 files

[Qemu-devel] [RFC PATCH 0/3] VFIO support for AMBA devices

2014-12-17 Thread Baptiste Reynal
bug echo 1 > /sys/kernel/debug/vosys_dmatest/start Results can be checked using dmesg. Baptiste Reynal (3): hw/vfio/sysbus-fdt: generic add_generic_fdt_node hw/vfio: amba device support hw/vfio: add pl330 device support hw/arm/sysbus-fdt.c | 34 +- h

[Qemu-devel] [RFC PATCH 1/3] hw/vfio/sysbus-fdt: generic add_generic_fdt_node

2014-12-17 Thread Baptiste Reynal
Modify add_calxeda_midway_xgmac_fdt_node to make it more generic. Add multiple compatible strings support. Signed-off-by: Baptiste Reynal --- hw/arm/sysbus-fdt.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/hw/arm/sysbus-fdt.c b/hw/arm/sysbus-fdt.c

[Qemu-devel] [RFC PATCH 2/3] hw/vfio: amba device support

2014-12-17 Thread Baptiste Reynal
Add VFIO_DEVICE_TYPE_AMBA. Differentiate amba and platform devices according to compatible string. If the device is amba, clocks description is added in the fd. Signed-off-by: Baptiste Reynal --- hw/arm/sysbus-fdt.c | 11 +++ hw/vfio/platform.c| 15