Re: [Qemu-devel] [RFC v2 1/4] hw/arm/virt: Allow multiple agents to modify dt

2015-01-06 Thread Eric Auger
On 01/05/2015 05:14 PM, alvise rigo wrote: > Hi, > > On Mon, Jan 5, 2015 at 4:36 PM, Peter Maydell > wrote: >> On 24 November 2014 at 11:47, Claudio Fontana >> wrote: >>> On 21.11.2014 19:07, Alvise Rigo wrote: Keep a global list with all the functions that need to modify the device t

Re: [Qemu-devel] [RFC v2 1/4] hw/arm/virt: Allow multiple agents to modify dt

2015-01-06 Thread Eric Auger
On 01/06/2015 10:51 AM, Peter Maydell wrote: > On 6 January 2015 at 09:18, Eric Auger wrote: >> Besides the PCI aspects, the dt generation problem that is addressed >> here is identical to the one related to VFIO platform device dt node >> generation that also needs to happ

Re: [Qemu-devel] [PATCH v8 1/3] hw/arm/sysbus-fdt: helpers for platform bus nodes addition

2015-01-07 Thread Eric Auger
Hi Peter, On 01/06/2015 07:40 PM, Peter Maydell wrote: > On 5 January 2015 at 16:14, Eric Auger wrote: >> This new C module will be used by ARM machine files to generate >> platform bus node and their dynamic sysbus device tree nodes. >> >> Dynamic sysbus device node ad

Re: [Qemu-devel] [PATCH v8 3/3] hw/arm/virt: add dynamic sysbus device support

2015-01-07 Thread Eric Auger
Hi Peter, On 01/06/2015 07:57 PM, Peter Maydell wrote: > On 5 January 2015 at 16:14, Eric Auger wrote: >> Allows sysbus devices to be instantiated from command line by >> using -device option. Machvirt creates a platform bus at init. >> The dynamic sysbus devices are attached

[Qemu-devel] [PATCH v9 0/4] machvirt dynamic sysbus device instantiation

2015-01-14 Thread Eric Auger
e node generation no more in sysbus device but in dyn_sysbus_devtree - VFIO region shrinked to 4MB and relocated in machvirt to avoid PCI shrink (dynamic vfio-mmio support might come latter) - platform_bus_base removed from PlatformDevtreeData Eric Auger (4): hw/arm/sysbus-fdt: help

[Qemu-devel] [PATCH v9 3/4] hw/arm/virt: add dynamic sysbus device support

2015-01-14 Thread Eric Auger
sysbus devices. Indeed dynamic sysbus devices are created after machine init. machvirt also registers a notifier that will build the device tree nodes for the platform bus and its children dynamic sysbus devices. Signed-off-by: Alexander Graf Signed-off-by: Eric Auger --- v8 ->

[Qemu-devel] [PATCH v9 1/4] hw/arm/sysbus-fdt: helpers for platform bus nodes addition

2015-01-14 Thread Eric Auger
be called by ARM machine files that support platform bus and their dynamic sysbus. Addition of dynamic sysbus nodes is done only if the user did not provide any dtb. Signed-off-by: Alexander Graf Signed-off-by: Eric Auger Reviewed-by: Shannon Zhao Reviewed-by: Alexander Graf --- v8 -> v9:

[Qemu-devel] [PATCH v9 2/4] hw/arm/boot: arm_load_kernel implemented as a machine init done notifier

2015-01-14 Thread Eric Auger
sysbus device nodes are integrated in the dtb. Signed-off-by: Eric Auger Reviewed-by: Shannon Zhao Reviewed-by: Alexander Graf --- v8 -> v9: - fix compilation with arm-linux-user - reorder fields in ArmLoadKernelNotifier and use DO_UPCAST v7 -> v8: - Add Reviewed-by from Alex & Shanno

[Qemu-devel] [PATCH v9 4/4] hw/arm/virt: change indentation in a15memmap

2015-01-14 Thread Eric Auger
Re-indent in a15memmap after VIRT_PLATFORM_BUS introduction Signed-off-by: Eric Auger --- hw/arm/virt.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 66cd553..9d65406 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c

[Qemu-devel] [PATCH v10 3/4] hw/arm/virt: add dynamic sysbus device support

2015-01-15 Thread Eric Auger
sysbus devices. Indeed dynamic sysbus devices are created after machine init. machvirt also registers a notifier that will build the device tree nodes for the platform bus and its children dynamic sysbus devices. Signed-off-by: Alexander Graf Signed-off-by: Eric Auger --- v8 ->

[Qemu-devel] [PATCH v10 0/4] machvirt dynamic sysbus device instantiation

2015-01-15 Thread Eric Auger
opyright in hw/arm/dyn_sysbus_devtree.c v1 -> v2: - device node generation no more in sysbus device but in dyn_sysbus_devtree - VFIO region shrinked to 4MB and relocated in machvirt to avoid PCI shrink (dynamic vfio-mmio support might come latter) - platform_bus_base removed from PlatformDevtreeDa

[Qemu-devel] [PATCH v10 2/4] hw/arm/boot: arm_load_kernel implemented as a machine init done notifier

2015-01-15 Thread Eric Auger
sysbus device nodes are integrated in the dtb. Signed-off-by: Eric Auger Reviewed-by: Shannon Zhao Reviewed-by: Alexander Graf --- v8 -> v9: - fix compilation with arm-linux-user - reorder fields in ArmLoadKernelNotifier and use DO_UPCAST v7 -> v8: - Add Reviewed-by from Alex & Shanno

[Qemu-devel] [PATCH v10 4/4] hw/arm/virt: change indentation in a15memmap

2015-01-15 Thread Eric Auger
Re-indent in a15memmap after VIRT_PLATFORM_BUS introduction Signed-off-by: Eric Auger --- hw/arm/virt.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 66cd553..9d65406 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c

[Qemu-devel] [PATCH v10 1/4] hw/arm/sysbus-fdt: helpers for platform bus nodes addition

2015-01-15 Thread Eric Auger
be called by ARM machine files that support platform bus and their dynamic sysbus. Addition of dynamic sysbus nodes is done only if the user did not provide any dtb. Signed-off-by: Alexander Graf Signed-off-by: Eric Auger Reviewed-by: Shannon Zhao Reviewed-by: Alexander Graf --- v9 ->

[Qemu-devel] [RFC v2 0/2] explicit VGIC initialization in finalize function

2015-01-15 Thread Eric Auger
of vcpus and number of IRQs must be known at init time. Eric Auger (2): linux-headers: update KVM headers from KVM_DEV_ARM_VGIC_GRP_CTRL hw/intc/arm_gic: Initialize the vgic in the realize function hw/intc/arm_gic_kvm.c | 6 ++ linux-headers/asm-arm/kvm.h | 5 + linux-head

[Qemu-devel] [RFC v2 1/2] linux-headers: update KVM headers from KVM_DEV_ARM_VGIC_GRP_CTRL

2015-01-15 Thread Eric Auger
Add a new group/attribute in VGIC KVM device enabling to force vgic init: KVM_DEV_ARM_VGIC_GRP_CTRL/KVM_DEV_ARM_VGIC_CTRL_INIT Update according to headers found in http://git.linaro.org/people/eric.auger/linux.git branch irqfd_v6_integrated_official_release Signed-off-by: Eric Auger --- linux

[Qemu-devel] [RFC v2 2/2] hw/intc/arm_gic: Initialize the vgic in the realize function

2015-01-15 Thread Eric Auger
This patch forces vgic initialization in the vgic realize function. It uses a new group/attribute that allows such operation. This earlier initialization allows, for example, to setup VFIO signaling and irqfd after vgic initialization, on a reset notifier. Signed-off-by: Eric Auger --- hw/intc

[Qemu-devel] [PATCH v9 0/7] KVM platform device passthrough

2015-01-15 Thread Eric Auger
d be separately upstreamable in that order. - the 2 groups depend on [1], [2], [3]. - group2 depends on [4]. Dependency List: QEMU dependencies: [1] [PATCH v10] machvirt dynamic sysbus device instantiation Eric Auger Kernel Dependencies: [2] [PATCH v11 00/20] VFIO support for platform and AMBA dev

[Qemu-devel] [PATCH v9 4/7] hw/vfio/platform: add capability to start IRQ propagation

2015-01-15 Thread Eric Auger
Add a reset notify function that enables to start the propagation of interrupts to the guest. Signed-off-by: Eric Auger --- v8 -> v9: - handle failure in vfio_irq_starter --- hw/vfio/platform.c | 52 + include/hw/vfio/vfio-platform.h |

[Qemu-devel] [PATCH v9 1/7] linux-headers: update VFIO header for VFIO platform/AMBA drivers

2015-01-15 Thread Eric Auger
Update according to vfio.h header found in http://git.linaro.org/people/eric.auger/linux.git branch irqfd_v6_integrated_official_release Signed-off-by: Eric Auger --- v8 -> v9: - rewording of the commit message --- linux-headers/linux/vfio.h | 32 +++- 1 f

[Qemu-devel] [PATCH v9 2/7] hw/vfio/platform: vfio-platform skeleton

2015-01-15 Thread Eric Auger
Minimal VFIO platform implementation supporting register space user mapping but not IRQ assignment. Signed-off-by: Kim Phillips Signed-off-by: Eric Auger --- v8 -> v9: - irq management is moved into a separate patch to ease the review - VFIO_DEVICE_FLAGS_PLATFORM is checked

[Qemu-devel] [PATCH v9 7/7] hw/vfio/platform: add irqfd support

2015-01-15 Thread Eric Auger
for fast/slow path swap. Overall this brings significant performance improvements. it depends on host kernel KVM irqfd. Signed-off-by: Alvise Rigo Signed-off-by: Eric Auger --- v5 -> v6 - rely on kvm_irqfds_enabled() and kvm_resamplefds_enabled() - guard KVM code with #ifdef CONFIG_KVM

[Qemu-devel] [PATCH v9 3/7] hw/vfio/platform: add irq assignment

2015-01-15 Thread Eric Auger
This patch adds the code requested to assign interrupts to a guest. The interrupts are mediated through user handled eventfds only. The mechanics to start the IRQ handling is not yet there through. Signed-off-by: Eric Auger --- v8 -> v9: - free irq related resources in case of error

[Qemu-devel] [PATCH v9 5/7] hw/vfio: calxeda xgmac device

2015-01-15 Thread Eric Auger
The platform device class has become abstract. This patch introduces a calxeda xgmac device that can be be instantiated on command line using such option. -device vfio-calxeda-xgmac,host="fff51000.ethernet" Signed-off-by: Eric Auger --- v8 -> v9: - renamed calxeda_xgmac.c into ca

[Qemu-devel] [PATCH v9 6/7] hw/arm/sysbus-fdt: enable vfio-calxeda-xgmac dynamic instantiation

2015-01-15 Thread Eric Auger
vfio-calxeda-xgmac now can be instantiated using the -device option. The node creation function generates a very basic dt node composed of the compat, reg and interrupts properties Signed-off-by: Eric Auger --- v8 -> v9: - properly free resources in case of errors

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

2015-01-15 Thread Eric Auger
Hi Baptiste, On 12/22/2014 05:23 PM, Baptiste Reynal wrote: > 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 inser

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

2015-01-15 Thread Eric Auger
Baptiste, On 12/22/2014 05:23 PM, Baptiste Reynal wrote: > 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 + >

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

2015-01-15 Thread Eric Auger
On 12/22/2014 05:23 PM, Baptiste Reynal wrote: > 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 > ++

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

2015-01-15 Thread Eric Auger
Hi Baptiste On 01/12/2015 02:21 PM, Baptiste Reynal wrote: > 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 ins

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

2015-01-15 Thread Eric Auger
Hi Baptiste, On 01/12/2015 02:21 PM, Baptiste Reynal wrote: > 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-reques

Re: [Qemu-devel] [PATCH] vfio: fix wrong initialize vfio_group_list

2015-01-22 Thread Eric Auger
Hi Chen, thanks for correcting this mistake I introduced when moving code from pci to common. Best Regards Eric On 01/22/2015 04:50 AM, Chen Fan wrote: > Signed-off-by: Chen Fan > --- > hw/vfio/common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/vfio/common.c

Re: [Qemu-devel] [RFC PATCH 0/2] virtio-mmio: add irqfd support for vhost-net based on virtio-mmio

2014-11-05 Thread Eric Auger
On 10/27/2014 12:23 PM, Li Liu wrote: > > > On 2014/10/27 17:37, Peter Maydell wrote: >> On 25 October 2014 09:24, john.liuli wrote: >>> To get the interrupt reason to support such VIRTIO_NET_F_STATUS >>> features I add a new register offset VIRTIO_MMIO_ISRMEM which >>> will help to establish a

Re: [Qemu-devel] [PATCH v7 09/16] hw/vfio/platform: add vfio-platform support

2014-11-05 Thread Eric Auger
On 11/05/2014 11:29 AM, Alexander Graf wrote: > > > On 31.10.14 15:05, Eric Auger wrote: >> Minimal VFIO platform implementation supporting >> - register space user mapping, >> - IRQ assignment based on eventfds handled on qemu side. >> >> irqfd kernel a

Re: [Qemu-devel] [PATCH v7 12/16] hw/arm/sysbus-fdt: enable vfio-calxeda-xgmac dynamic instantiation

2014-11-05 Thread Eric Auger
On 11/05/2014 11:59 AM, Alexander Graf wrote: > > > On 31.10.14 15:05, Eric Auger wrote: >> vfio-calxeda-xgmac now can be instantiated using the -device option. >> The node creation function generates a very basic dt node composed >> of the compat, reg and interrupts

Re: [Qemu-devel] [PATCH v7 03/16] hw/vfio/pci: introduce VFIODevice

2014-11-06 Thread Eric Auger
On 11/05/2014 06:35 PM, Alex Williamson wrote: > Hi Eric, > > On Fri, 2014-10-31 at 14:05 +0000, Eric Auger wrote: >> Introduce the VFIODevice struct that is going to be shared by >> VFIOPCIDevice and VFIOPlatformDevice. >> >> Additional fields will b

Re: [Qemu-devel] [PATCH v7 12/16] hw/arm/sysbus-fdt: enable vfio-calxeda-xgmac dynamic instantiation

2014-11-06 Thread Eric Auger
On 11/05/2014 11:23 PM, Alexander Graf wrote: > > > On 05.11.14 13:31, Eric Auger wrote: >> On 11/05/2014 11:59 AM, Alexander Graf wrote: >>> >>> >>> On 31.10.14 15:05, Eric Auger wrote: >>>> vfio-calxeda-xgmac now can be instantiated usi

Re: [Qemu-devel] dynamic sysbus instantiation and load_dtb implementation

2014-11-13 Thread Eric Auger
On 11/13/2014 05:02 AM, David Gibson wrote: > On Fri, Oct 24, 2014 at 02:38:39PM +0200, David Gibson wrote: >> On Thu, Oct 23, 2014 at 01:26:08PM +0200, Alexander Graf wrote: >>> >>> >>> On 23.10.14 13:24, Peter Maydell wrote: On 23 October 2014 12:23, Alexander Graf wrote: > On 23.10.14

Re: [Qemu-devel] [PATCH v7 09/16] hw/vfio/platform: add vfio-platform support

2014-11-26 Thread Eric Auger
On 11/05/2014 11:29 AM, Alexander Graf wrote: > > > On 31.10.14 15:05, Eric Auger wrote: >> Minimal VFIO platform implementation supporting >> - register space user mapping, >> - IRQ assignment based on eventfds handled on qemu side. >> >> irqfd kernel a

Re: [Qemu-devel] [PATCH v7 09/16] hw/vfio/platform: add vfio-platform support

2014-11-26 Thread Eric Auger
On 11/26/2014 11:24 AM, Alexander Graf wrote: > > > On 26.11.14 10:45, Eric Auger wrote: >> On 11/05/2014 11:29 AM, Alexander Graf wrote: >>> >>> >>> On 31.10.14 15:05, Eric Auger wrote: >>>> Minimal VFIO platform implementation sup

Re: [Qemu-devel] [PATCH v7 09/16] hw/vfio/platform: add vfio-platform support

2014-11-26 Thread Eric Auger
On 11/26/2014 12:20 PM, Alexander Graf wrote: > > > On 26.11.14 11:48, Eric Auger wrote: >> On 11/26/2014 11:24 AM, Alexander Graf wrote: >>> >>> >>> On 26.11.14 10:45, Eric Auger wrote: >>>> On 11/05/2014 11:29 AM, Alexander Graf wrote:

Re: [Qemu-devel] [PATCH v4 1/6] hw/arm/boot: load_dtb becomes non static arm_load_dtb

2014-11-27 Thread Eric Auger
On 11/27/2014 10:00 AM, Shannon Zhao wrote: > Hi Eric, > > On 2014/10/31 21:53, Eric Auger wrote: >> load_dtb is renamed into arm_load_dtb and becomes non static. >> it will be used by machvirt for dynamic instantiation of >> platform devices >> >> Signed

Re: [Qemu-devel] [PATCH v4 1/6] hw/arm/boot: load_dtb becomes non static arm_load_dtb

2014-11-27 Thread Eric Auger
On 11/27/2014 11:17 AM, Shannon Zhao wrote: > On 2014/11/27 17:19, Eric Auger wrote: >> On 11/27/2014 10:00 AM, Shannon Zhao wrote: >>> Hi Eric, >>> >>> On 2014/10/31 21:53, Eric Auger wrote: >>>> load_dtb is renamed into arm_load_dtb and becomes

Re: [Qemu-devel] [PATCH v4 5/6] hw/arm/sysbus-fdt: helpers for platform bus nodes addition

2014-11-27 Thread Eric Auger
On 11/27/2014 01:07 PM, Shannon Zhao wrote: > On 2014/10/31 21:53, Eric Auger wrote: >> This new C module will be used by ARM machine files to generate >> platform bus node and their dynamic sysbus device tree nodes. >> >> Dynamic sysbus device node addition is don

Re: [Qemu-devel] [PATCH v4 5/6] hw/arm/sysbus-fdt: helpers for platform bus nodes addition

2014-11-27 Thread Eric Auger
On 11/27/2014 01:56 PM, Shannon Zhao wrote: > On 2014/11/27 20:25, Eric Auger wrote: >> On 11/27/2014 01:07 PM, Shannon Zhao wrote: >>> On 2014/10/31 21:53, Eric Auger wrote: >>>> This new C module will be used by ARM machine files to generate >>>> platfor

Re: [Qemu-devel] [PATCH v7 09/16] hw/vfio/platform: add vfio-platform support

2014-11-27 Thread Eric Auger
On 11/26/2014 03:46 PM, Eric Auger wrote: > On 11/26/2014 12:20 PM, Alexander Graf wrote: >> >> >> On 26.11.14 11:48, Eric Auger wrote: >>> On 11/26/2014 11:24 AM, Alexander Graf wrote: >>>> >>>> >>>> On 26.11.14 10:45, Er

Re: [Qemu-devel] [PATCH v7 09/16] hw/vfio/platform: add vfio-platform support

2014-11-27 Thread Eric Auger
On 11/27/2014 03:35 PM, Alexander Graf wrote: > > > On 27.11.14 15:05, Eric Auger wrote: >> On 11/26/2014 03:46 PM, Eric Auger wrote: >>> On 11/26/2014 12:20 PM, Alexander Graf wrote: >>>> >>>> >>>> On 26.11.14 11:48, Eric Aug

Re: [Qemu-devel] [PATCH v7 09/16] hw/vfio/platform: add vfio-platform support

2014-11-27 Thread Eric Auger
On 11/27/2014 04:55 PM, Alexander Graf wrote: > > > On 27.11.14 16:28, Alexander Graf wrote: >> >> >> On 27.11.14 16:14, Eric Auger wrote: >>> On 11/27/2014 03:35 PM, Alexander Graf wrote: >>>> >>>> >>>> On 27.11.14

Re: [Qemu-devel] [PATCH v7 09/16] hw/vfio/platform: add vfio-platform support

2014-11-27 Thread Eric Auger
On 11/27/2014 06:24 PM, Alexander Graf wrote: > > > On 27.11.14 18:13, Eric Auger wrote: >> On 11/27/2014 04:55 PM, Alexander Graf wrote: >>> >>> >>> On 27.11.14 16:28, Alexander Graf wrote: >>>> >>>> >>>> On 27.11.

Re: [Qemu-devel] [PATCH v7 09/16] hw/vfio/platform: add vfio-platform support

2014-11-27 Thread Eric Auger
On 11/27/2014 06:51 PM, Alexander Graf wrote: > > > On 27.11.14 18:34, Eric Auger wrote: >> On 11/27/2014 06:24 PM, Alexander Graf wrote: >>> >>> >>> On 27.11.14 18:13, Eric Auger wrote: >>>> On 11/27/2014 04:55 PM, Alexander Graf wrote: >

[Qemu-devel] [PATCH v5 6/6] hw/arm/virt: add dynamic sysbus device support

2014-11-30 Thread Eric Auger
sysbus devices. Indeed dynamic sysbus devices are created after machine init. machvirt also registers a notifier that will build the device tree nodes for the platform bus and its children dynamic sysbus devices. Signed-off-by: Alexander Graf Signed-off-by: Eric Auger --- v4 ->

[Qemu-devel] [PATCH v5 5/6] hw/arm/sysbus-fdt: helpers for platform bus nodes addition

2014-11-30 Thread Eric Auger
be called by ARM machine files that support platform bus and their dynamic sysbus. Addition of dynamic sysbus nodes is done only if the user did not provide any dtb. Signed-off-by: Alexander Graf Signed-off-by: Eric Auger --- v4 -> v5: - change indentation in add_fdt_node_functions. A

[Qemu-devel] [PATCH v5 0/6] machvirt dynamic sysbus device instantiation

2014-11-30 Thread Eric Auger
es static - load_dtb renamed into arm_load_dtb - add copyright in hw/arm/dyn_sysbus_devtree.c Eric Auger (6): hw/arm/boot: load_dtb becomes non static arm_load_dtb hw/arm/boot: dtb start and limit moved in arm_boot_info hw/arm/boot: do not free VirtBoardInfo fdt in arm_load_dtb hw/arm:

[Qemu-devel] [PATCH v5 2/6] hw/arm/boot: dtb start and limit moved in arm_boot_info

2014-11-30 Thread Eric Auger
dtb is already loaded. Storing those parameters in arm_boot_info allows to avoid computing again dtb_start and dtb_load, as done in arm_load_kernel. Signed-off-by: Eric Auger --- hw/arm/boot.c| 38 +- include/hw/arm/arm.h | 5 +++-- 2 files changed, 24

[Qemu-devel] [PATCH v5 1/6] hw/arm/boot: load_dtb becomes non static arm_load_dtb

2014-11-30 Thread Eric Auger
load_dtb is renamed into arm_load_dtb and becomes non static. it will be used by machvirt for dynamic instantiation of platform devices Signed-off-by: Eric Auger --- v4 -> v5: s/load_dtb/arm_load_dtb in one comment v2 -> v3: load_dtb renamed into arm_load_dtb Conflicts: hw/arm/

[Qemu-devel] [PATCH v5 4/6] hw/arm: add a new modify_dtb_opaque field in arm_boot_info

2014-11-30 Thread Eric Auger
This field can be used by any modify_dtb() function to pass additional arguments requested to build the modified dtb. This is needed for creating the platform bus dynamic sysbus nodes. Signed-off-by: Eric Auger --- include/hw/arm/arm.h | 4 1 file changed, 4 insertions(+) diff --git a

[Qemu-devel] [PATCH v5 3/6] hw/arm/boot: do not free VirtBoardInfo fdt in arm_load_dtb

2014-11-30 Thread Eric Auger
destroyed, this is not possible. Signed-off-by: Eric Auger --- hw/arm/boot.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/arm/boot.c b/hw/arm/boot.c index 0398cd4..0f9cd2c 100644 --- a/hw/arm/boot.c +++ b/hw/arm/boot.c @@ -427,12 +427,16 @@ int arm_load_dtb(const

[Qemu-devel] [PATCH v8 05/19] hw/vfio/pci: add type, name and group fields in VFIODevice

2014-11-30 Thread Eric Auger
. Later on, the name will be used to simplify all traces. The group is simply moved from VFIOPCIDevice to VFIODevice. Signed-off-by: Eric Auger --- hw/vfio/pci.c | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index cd9ce4e

[Qemu-devel] [PATCH v8 02/19] hw/vfio/pci: Rename VFIODevice into VFIOPCIDevice

2014-11-30 Thread Eric Auger
This prepares for the introduction of VFIOPlatformDevice Signed-off-by: Eric Auger --- hw/vfio/pci.c | 210 +- 1 file changed, 106 insertions(+), 104 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 7e69415..0d7d4a0 100644

[Qemu-devel] [PATCH v8 01/19] vfio: move hw/misc/vfio.c to hw/vfio/pci.c Move vfio.h into include/hw/vfio

2014-11-30 Thread Eric Auger
From: Kim Phillips This is done in preparation for the addition of VFIO platform device support. Signed-off-by: Kim Phillips --- LICENSE | 2 +- MAINTAINERS | 2 +- hw/Makefile.objs | 1 + hw/misc/Makefile.objs| 1 - hw/

[Qemu-devel] [PATCH v8 04/19] hw/vfio/pci: introduce minimalist VFIODevice with fd

2014-11-30 Thread Eric Auger
, vfio_unmask_single_irqindex, vfio_disable_irqindex now take a VFIODevice handle as argument. Signed-off-by: Eric Auger --- hw/vfio/pci.c | 117 +++--- 1 file changed, 63 insertions(+), 54 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 387da1a

[Qemu-devel] [PATCH v8 11/19] hw/vfio: create common module

2014-11-30 Thread Eric Auger
A new common module is created. It implements all functions that have no device specificity (PCI, Platform). This patch only consists in move (no functional changes) Signed-off-by: Kim Phillips Signed-off-by: Eric Auger --- v7 -> v8: - integrate "Add skip_dump flag to ignore memor

[Qemu-devel] [PATCH v8 03/19] hw/vfio/pci: generalize mask/unmask to any IRQ index

2014-11-30 Thread Eric Auger
. Signed-off-by: Eric Auger --- hw/vfio/pci.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 0d7d4a0..387da1a 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -293,12 +293,12 @@ static void vfio_disable_irqindex

[Qemu-devel] [PATCH v8 06/19] hw/vfio/pci: handle reset at VFIODevice

2014-11-30 Thread Eric Auger
vfio_hot_reset_multi): they allow to implement type specific behavior. also reset_works and needs_reset VFIOPCIDevice fields are moved into VFIODevice. Signed-off-by: Eric Auger --- v8: compared to [PATCH v7 03/16] hw/vfio/pci: introduce VFIODevice, vfio_compute_needs_reset does not return a bool

[Qemu-devel] [PATCH v8 07/19] hw/vfio/pci: Introduce VFIORegion

2014-11-30 Thread Eric Auger
too. vfio_mmap_bar becomes vfio_map_region Signed-off-by: Eric Auger --- v7->v8: - integrate "Add skip_dump flag to ignore memory region during dump" v4->v5: - remove fd field from VFIORegion - change error_report format string in vfio_region_write/read - remove #ifdef DEBUG_

[Qemu-devel] [PATCH v8 08/19] hw/vfio/pci: split vfio_get_device

2014-11-30 Thread Eric Auger
egions, vfio_populate_interrupts and vfio_get_device. - correct misuse of errno - vfio_populate_regions always returns 0 - VFIODevice .name deallocation done in vfio_put_device instead of vfio_put_base_device - vfio_put_base_device done at vfio_get_device level. Signed-off-by: Eric Auger --- h

[Qemu-devel] [PATCH v8 16/19] hw/vfio/platform: Add irqfd support

2014-11-30 Thread Eric Auger
for fast/slow path swap. Overall this brings significant performance improvements. it depends on host kernel KVM irqfd. Signed-off-by: Alvise Rigo Signed-off-by: Eric Auger --- v5 -> v6 - rely on kvm_irqfds_enabled() and kvm_resamplefds_enabled() - guard KVM code with #ifdef CONFIG_KVM

[Qemu-devel] [PATCH v8 09/19] hw/vfio/pci: rename group_list into vfio_group_list

2014-11-30 Thread Eric Auger
better fit in the rest of the namespace Signed-off-by: Eric Auger --- hw/vfio/pci.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 60ff22b..d4a0e0f 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -282,7 +282,7

[Qemu-devel] [PATCH v8 10/19] hw/vfio/pci: use name field in format strings

2014-11-30 Thread Eric Auger
Signed-off-by: Eric Auger Conflicts: trace-events --- hw/vfio/pci.c | 213 -- trace-events | 109 -- 2 files changed, 116 insertions(+), 206 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c

[Qemu-devel] [PATCH v8 12/19] hw/vfio/platform: add vfio-platform support

2014-11-30 Thread Eric Auger
Minimal VFIO platform implementation supporting - register space user mapping, - IRQ assignment based on eventfds handled on qemu side. irqfd kernel acceleration comes in a subsequent patch. Signed-off-by: Kim Phillips Signed-off-by: Eric Auger --- v7 -> v8: - change proto

[Qemu-devel] [PATCH v8 14/19] hw/arm/virt: add support for VFIO devices

2014-11-30 Thread Eric Auger
connected to are identified and irqfd can be programmed. Binding happens in a machine init done notifier registered by the platform bus init. The IRQ start is done in a reset notifier. This patchs adds the registration of the IRQ start notifier in machvirt. Signed-off-by: Eric Auger --- v7

[Qemu-devel] [PATCH v8 18/19] hw/vfio/common: vfio_kvm_device_fd moved in the common header

2014-11-30 Thread Eric Auger
the device is now used in platform for forwarded IRQ setup Signed-off-by: Eric Auger --- hw/vfio/common.c | 3 ++- include/hw/vfio/vfio-common.h | 5 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 554467f..ba00ec9

[Qemu-devel] [PATCH v8 17/19] linux-headers: Update KVM headers from linux-next tag ToBeFilled

2014-11-30 Thread Eric Auger
Syncup KVM related linux headers from linux-next tree using scripts/update-linux-headers.sh. Integrate updated KVM-VFIO API related to forwarded IRQ Signed-off-by: Eric Auger --- linux-headers/linux/kvm.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/linux-headers/linux/kvm.h

[Qemu-devel] [PATCH v8 13/19] hw/vfio: calxeda xgmac device

2014-11-30 Thread Eric Auger
The platform device class has become abstract. This patch introduces a calxeda xgmac device that can be be instantiated on command line using such option. -device vfio-calxeda-xgmac,host="fff51000.ethernet" Signed-off-by: Eric Auger --- v7 -> v8: - add a comment in the header a

[Qemu-devel] [PATCH v8 15/19] hw/arm/sysbus-fdt: enable vfio-calxeda-xgmac dynamic instantiation

2014-11-30 Thread Eric Auger
vfio-calxeda-xgmac now can be instantiated using the -device option. The node creation function generates a very basic dt node composed of the compat, reg and interrupts properties Signed-off-by: Eric Auger --- v7 -> v8: - move the add_fdt_node_functions array declaration between the dev

[Qemu-devel] [PATCH v8 19/19] hw/vfio/platform: add forwarded irq support

2014-11-30 Thread Eric Auger
virtual IRQ, the corresponding physical IRQ is completed and the same physical IRQ can hit again. A new x-forward property enables to force forwarding off although enabled by the kernel. Signed-off-by: Eric Auger --- hw/vfio/platform.c | 52

[Qemu-devel] [PATCH v8 00/19] KVM platform device passthrough

2014-11-30 Thread Eric Auger
IRQ forwarding support Each group is independent and should be separately upstreamable. Dependency List: QEMU dependencies: [1] [PATCH v5] machvirt dynamic sysbus device instantiation Eric Auger [2] [PATCH v3 0/2] actual checks of KVM_CAP_IRQFD and KVM_CAP_IRQFD_RESAMPLE, Eric Auger

[Qemu-devel] [PATCH 1/2] linux-headers: Update KVM headers from linux-next tag ToBeFilled

2014-12-02 Thread Eric Auger
Syncup KVM related linux headers from linux-next tree using scripts/update-linux-headers.sh. Add a new group/attribute in VGIC KVM device enabling to force vgic init: KVM_DEV_ARM_VGIC_GRP_CTRL/KVM_DEV_ARM_VGIC_CTRL_INIT Signed-off-by: Eric Auger --- linux-headers/asm-arm/kvm.h | 2 ++ linux

[Qemu-devel] [PATCH 0/2] arm_gic: Initialize VGIC on machine init done

2014-12-02 Thread Eric Auger
platform signaling can be setup on reset handler, making sure the VGIC is ready, at that time, to accept injected virtual IRQs. Depends on the following kernel patch: - [PATCH] KVM: arm/arm64: vgic: add init entry to VGIC KVM device Tested on Calxeda Miday with VFIO platform use case Eric Auger (2

[Qemu-devel] [PATCH 2/2] hw/intc/arm_gic: Initialize the vgic on machine init done

2014-12-02 Thread Eric Auger
signaling after vgic initialization, on a reset notifier. Signed-off-by: Eric Auger --- hw/intc/arm_gic_kvm.c| 21 + include/hw/intc/arm_gic_common.h | 1 + 2 files changed, 22 insertions(+) diff --git a/hw/intc/arm_gic_kvm.c b/hw/intc/arm_gic_kvm.c index 5038885

Re: [Qemu-devel] [PATCH 1/2] linux-headers: Update KVM headers from linux-next tag ToBeFilled

2014-12-03 Thread Eric Auger
On 12/03/2014 11:49 AM, Christoffer Dall wrote: > On Tue, Dec 02, 2014 at 06:28:13PM +0000, Eric Auger wrote: >> Syncup KVM related linux headers from linux-next tree using >> scripts/update-linux-headers.sh. >> >> Add a new group/attribute in VGIC KVM device ena

Re: [Qemu-devel] [PATCH 1/2] linux-headers: Update KVM headers from linux-next tag ToBeFilled

2014-12-03 Thread Eric Auger
On 12/03/2014 12:03 PM, Christoffer Dall wrote: > On Wed, Dec 03, 2014 at 11:53:58AM +0100, Eric Auger wrote: >> On 12/03/2014 11:49 AM, Christoffer Dall wrote: >>> On Tue, Dec 02, 2014 at 06:28:13PM +, Eric Auger wrote: >>>> Syncup KVM related linux head

Re: [Qemu-devel] [PATCH v8 00/19] KVM platform device passthrough

2014-12-08 Thread Eric Auger
On 12/08/2014 06:04 PM, Alex Williamson wrote: > On Sun, 2014-11-30 at 18:35 +0000, Eric Auger wrote: >> This RFC series aims at enabling KVM platform device passthrough. >> It implements a VFIO platform device, derived from VFIO PCI device. >> >> The VFIO platfor

[Qemu-devel] [PATCH v6 0/3] machvirt dynamic sysbus device instantiation

2014-12-09 Thread Eric Auger
ut in dyn_sysbus_devtree - VFIO region shrinked to 4MB and relocated in machvirt to avoid PCI shrink (dynamic vfio-mmio support might come latter) - platform_bus_base removed from PlatformDevtreeData Eric Auger (3): hw/arm/sysbus-fdt: helpers for platform bus nodes addition hw/arm/boot: a

[Qemu-devel] [PATCH v6 1/3] hw/arm/sysbus-fdt: helpers for platform bus nodes addition

2014-12-09 Thread Eric Auger
be called by ARM machine files that support platform bus and their dynamic sysbus. Addition of dynamic sysbus nodes is done only if the user did not provide any dtb. Signed-off-by: Alexander Graf Signed-off-by: Eric Auger --- v5 -> v6: - add_all_platform_bus_fdt_nodes is not a modify_

Re: [Qemu-devel] [PATCH v5 6/6] hw/arm/virt: add dynamic sysbus device support

2014-12-09 Thread Eric Auger
On 12/05/2014 05:36 PM, Peter Maydell wrote: > On 30 November 2014 at 18:19, Eric Auger wrote: >> Allows sysbus devices to be instantiated from command line by >> using -device option. Machvirt creates a platform bus at init. >> The dynamic sysbus devices are attached to thi

[Qemu-devel] [PATCH v6 2/3] hw/arm/boot: arm_load_kernel implemented as a machine init done notifier

2014-12-09 Thread Eric Auger
sysbus device nodes are integrated in the dtb. Signed-off-by: Eric Auger --- v6: creation of this patch file --- hw/arm/boot.c| 14 +- include/hw/arm/arm.h | 28 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/hw/arm/boot.c b/hw/arm

[Qemu-devel] [PATCH v6 3/3] hw/arm/virt: add dynamic sysbus device support

2014-12-09 Thread Eric Auger
sysbus devices. Indeed dynamic sysbus devices are created after machine init. machvirt also registers a notifier that will build the device tree nodes for the platform bus and its children dynamic sysbus devices. Signed-off-by: Alexander Graf Signed-off-by: Eric Auger --- v5 -> v6: - Take i

Re: [Qemu-devel] [PATCH v5 1/6] hw/arm/boot: load_dtb becomes non static arm_load_dtb

2014-12-09 Thread Eric Auger
On 12/05/2014 07:16 PM, Peter Maydell wrote: > On 5 December 2014 at 16:38, Peter Maydell wrote: >> On 30 November 2014 at 18:19, Eric Auger wrote: >>> load_dtb is renamed into arm_load_dtb and becomes non static. >>> it will be used by machvirt for dynamic instantiat

Re: [Qemu-devel] [PATCH v5 5/6] hw/arm/sysbus-fdt: helpers for platform bus nodes addition

2014-12-09 Thread Eric Auger
On 12/05/2014 05:40 PM, Peter Maydell wrote: > On 30 November 2014 at 18:19, Eric Auger wrote: >> --- /dev/null >> +++ b/hw/arm/sysbus-fdt.c >> @@ -0,0 +1,180 @@ >> +/* >> + * ARM Platform Bus device tree generation helpers >> + * >> + * Copyright

Re: [Qemu-devel] [PATCH v6 3/3] hw/arm/virt: add dynamic sysbus device support

2014-12-16 Thread Eric Auger
On 12/16/2014 06:41 AM, Shannon Zhao wrote: > On 2014/12/9 18:29, Eric Auger wrote: >> Allows sysbus devices to be instantiated from command line by >> using -device option. Machvirt creates a platform bus at init. >> The dynamic sysbus devices are attached to this platform

Re: [Qemu-devel] [PATCH v6 1/3] hw/arm/sysbus-fdt: helpers for platform bus nodes addition

2014-12-16 Thread Eric Auger
On 12/16/2014 06:56 AM, Shannon Zhao wrote: > On 2014/12/9 18:29, Eric Auger wrote: >> This new C module will be used by ARM machine files to generate >> platform bus node and their dynamic sysbus device tree nodes. >> >> Dynamic sysbus device node addition is don

[Qemu-devel] [PATCH v7 1/3] hw/arm/sysbus-fdt: helpers for platform bus nodes addition

2014-12-16 Thread Eric Auger
be called by ARM machine files that support platform bus and their dynamic sysbus. Addition of dynamic sysbus nodes is done only if the user did not provide any dtb. Signed-off-by: Alexander Graf Signed-off-by: Eric Auger --- v6 -> v7: - revert indentation in add_fdt_node_functions v5 -&

[Qemu-devel] [PATCH v7 2/3] hw/arm/boot: arm_load_kernel implemented as a machine init done notifier

2014-12-16 Thread Eric Auger
sysbus device nodes are integrated in the dtb. Signed-off-by: Eric Auger --- v6: creation of this patch file --- hw/arm/boot.c| 14 +- include/hw/arm/arm.h | 28 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/hw/arm/boot.c b/hw/arm

[Qemu-devel] [PATCH v7 0/3] machvirt dynamic sysbus device instantiation

2014-12-16 Thread Eric Auger
_devtree - VFIO region shrinked to 4MB and relocated in machvirt to avoid PCI shrink (dynamic vfio-mmio support might come latter) - platform_bus_base removed from PlatformDevtreeData Eric Auger (3): hw/arm/sysbus-fdt: helpers for platform bus nodes addition hw/arm/boot: arm_load_kernel

[Qemu-devel] [PATCH v7 3/3] hw/arm/virt: add dynamic sysbus device support

2014-12-16 Thread Eric Auger
sysbus devices. Indeed dynamic sysbus devices are created after machine init. machvirt also registers a notifier that will build the device tree nodes for the platform bus and its children dynamic sysbus devices. Signed-off-by: Alexander Graf Signed-off-by: Eric Auger --- v6 -> v7: Take i

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

2014-12-17 Thread Eric Auger
On 12/17/2014 11:09 AM, Baptiste Reynal wrote: > The following series add VFIO support for AMBA devices. > > It introduces multiple compatible string support to deal with arm,primecell > compatible string. > > The VFIOPlatformDevice now checks for this string and performs amba specific > operatio

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

2014-12-17 Thread Eric Auger
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 be tempted to transform the Calxeda basic node creation function into something more generic, we

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

2014-12-17 Thread Eric Auger
On 12/17/2014 11:09 AM, Baptiste Reynal wrote: > 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

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

2014-12-17 Thread Eric Auger
On 12/17/2014 03:55 PM, Baptiste Reynal wrote: > > > On Wed, Dec 17, 2014 at 2:32 PM, Eric Auger <mailto:eric.au...@linaro.org>> wrote: > > On 12/17/2014 11:09 AM, Baptiste Reynal wrote: > > Modify add_calxeda_midway_xgmac_fdt_node to make it more

[Qemu-devel] [PATCH 2/2] arm_gicv2m: set kvm_gsi_direct_mapping and kvm_msi_via_irqfd_allowed

2015-04-09 Thread Eric Auger
After introduction of kvm_arch_msi_data_to_gsi, kvm_gsi_direct_mapping now can be set on ARM. Also kvm_msi_via_irqfd_allowed can be set, depending on kernel irqfd support, hence enabling VIRTIO-PCI with vhost back-end. Signed-off-by: Eric Auger --- hw/intc/arm_gicv2m.c | 2 ++ 1 file changed, 2

<    1   2   3   4   5   6   7   8   9   10   >