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
>>&
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
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
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:
>>&
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:
>> &
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
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
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
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
./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 (
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
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
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
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
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
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):
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
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
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
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
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
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
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
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
: 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
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 -
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
=[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
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-
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
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
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
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
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
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
:
- 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
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
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
>
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
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
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.
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
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
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
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 |
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
62 matches
Mail list logo