|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH RFC 00/23] Impelment virtio_mmio and pci ecam controller for arm64 kvm plat
To support virtio-* family device, we have 2 choices (virtio mmio, virtio pci)
on arm64 kvm plat. This patch series enable the support of virtio mmio. virtio
pci needs pci controller ECAM mode in arm64 Unikraft.
Previously, I proposed a separated series at [1], Julien had given some
comments including using fdt_get_address and refining the platform device
probing sequence. This series address them, but prevent changing too much
in original virtio mmio series.
Patch 1-5 implement the platform bus and virtio mmio skeleton.
Patch 8-9 implement the pci ecam skeleton
Patch 10-12 introduce the new probing interface for virtio mmio and pci
on arm.
Patch 7,13-16 lib/fdt or ofw/fdt changes
Patch 17-18 split the arch specific pci bus codes into different directory
Others are bug fixing or building system changes.
I set it as "RFC" since I haven't resolved all the compilation warnings or
checkpatch issues. Even single patch might not compilable. But I tested
the whole series, it works fine in both virtio mmio and virtio pci for
net device. The test case is a simple httpreply app.
test qemu cmdline:
- for virtio mmio
-device virtio-net-device,id=net1,netdev=hostnet1,mac=52:54:00:09:a4:38
- for virtio pci
-device
virtio-net-pci,id=net0,netdev=hostnet0,mac=52:54:00:09:a4:31,disable-modern=on
Jia He (23):
plat/virtio: Introduce several helpers for virtio ring
plat/platform: Introduce new platform bus
plat/virtio: Support virtio_cread/cwrite on arm64
plat/virtio: Add new virtio_mmio device/driver on arm64
build: Enable the platform bus and virtio_mmio device on arm64
plat/kvm: arm64: Fix arm64 memory layout for pcie ecam
plat/ofw: Export fdt_find_irq_parent_offset
plat/pci_ecam: Introduce pci/pci_ecam.h
plat/pci_ecam: Introduce pci ecam skeleton
lib/ukbus: Adjust default bus register priority
plat/platform_bus: Add probe/match nterface for platform devices
plat/virtio_mmio: Implement platform probe for virtio_mmio
plat/ofw: Support completed ranges mapping
lib/fdt: Fix fdt_address_cell and fdt_size_cell
plat/ofw: add fdt_node_offset_idx_by_compatible_list
plat/ofw: Add fdt_prop_read_bool
plat/pci_bus: Split specific code into arch directory
plat/pci_bus: arm64: Implement arch specific add/probe interfaces on
arm64
build: make KVM_PCI default enable on arm64
plat/pci_bus: change the type of pci_device.base from u16 to unsigned
long
build: Enable pci library on arm64
plat/virtio: Fix virtio net device mac negotiation
plat/virtio: Change the type of irq,base from u16 to u64 for arm64
lib/fdt/exportsyms.uk | 1 +
lib/fdt/fdt_addresses.c | 57 +-
lib/ukbus/include/uk/bus.h | 16 +-
plat/common/arm/pci_bus_arm64.c | 204 +++++++
plat/common/include/arm/arm64/cpu_defs.h | 3 +
plat/common/include/pci/pci_bus.h | 105 +++-
plat/common/include/pci/pci_ecam.h | 101 ++++
plat/common/include/platform_bus.h | 116 ++++
plat/common/pci_bus.c | 167 +-----
plat/common/pci_ecam.c | 524 ++++++++++++++++++
plat/common/platform_bus.c | 238 ++++++++
plat/common/x86/pci_bus_x86.c | 174 ++++++
plat/drivers/include/ofw/fdt.h | 63 +++
plat/drivers/include/virtio/virtio_config.h | 63 ++-
plat/drivers/include/virtio/virtio_mmio.h | 137 +++++
plat/drivers/include/virtio/virtqueue.h | 33 ++
plat/drivers/ofw/fdt.c | 81 ++-
plat/drivers/virtio/virtio_mmio.c | 567 ++++++++++++++++++++
plat/drivers/virtio/virtio_net.c | 12 +-
plat/drivers/virtio/virtio_pci.c | 6 +-
plat/drivers/virtio/virtio_ring.c | 32 ++
plat/kvm/Config.uk | 14 +-
plat/kvm/Makefile.uk | 29 +-
plat/kvm/arm/pagetable64.S | 22 +-
24 files changed, 2537 insertions(+), 228 deletions(-)
create mode 100644 plat/common/arm/pci_bus_arm64.c
create mode 100644 plat/common/include/pci/pci_ecam.h
create mode 100644 plat/common/include/platform_bus.h
create mode 100644 plat/common/pci_ecam.c
create mode 100644 plat/common/platform_bus.c
create mode 100644 plat/common/x86/pci_bus_x86.c
create mode 100644 plat/drivers/include/virtio/virtio_mmio.h
create mode 100644 plat/drivers/virtio/virtio_mmio.c
--
2.17.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |