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
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
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
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
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
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 ->
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:
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
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
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 ->
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
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
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
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 ->
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
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
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
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
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 |
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
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
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
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
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
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
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
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 +
>
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
> ++
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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.
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:
>
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 ->
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
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:
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
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/
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
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
. 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
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
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/
, 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
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
.
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
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
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_
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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_
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
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
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
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
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
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
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
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 -&
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
_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
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
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
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
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
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
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
201 - 300 of 4501 matches
Mail list logo