On 13.12.2022 11:08, Viresh Kumar wrote:
This patch adds basic support for configuring and assisting generic Virtio backends, which could run in any domain.
An example of domain configuration for mmio based Virtio I2C device is: virtio = ["type=virtio,device22,transport=mmio"]
To make this work on Arm, allocate Virtio MMIO params (IRQ and memory region) and pass them to the backend and update guest device-tree to create a DT node for the Virtio devices.
Add special support for I2C and GPIO devices, which require the "compatible" DT property to be set, among other device specific properties. Support for generic virtio devices is also added, which just need a MMIO node but not any special DT properties, for such devices the user needs to pass "virtio,device" in the "type" string.
The parsing of generic virtio device configurations will be done in a separate commit.
Reviewed-by: Anthony PERARD anthony.perard@citrix.com Reviewed-by: Oleksandr Tyshchenko oleksandr_tyshchenko@epam.com Signed-off-by: Viresh Kumar viresh.kumar@linaro.org
Please can you arrange tags in time order, which would mean R-b past any S-o-b? I'll try to remember to swap them while committing, but in the future please save committers from needing to do so.
Jan