Hi,
On [09-10-2024 14:01], Jakub Jermář wrote:
> Hi,
>
> On 10/9/24 12:50 PM, Mohamed Dawod wrote:
> > Hello,
> > I was reading this tutorial <https://github.com/kernkonzept/manifest/
> > wiki/NVMeWithLinux> about using NVMe server with Linux guest and it
> > works fine. Now I'm trying to apply the same tutorial but for arm64
> > instead of AMD64/X86_64.
> >
> > As expected, it didn't work because arm64 device tree blob/source
> > doesn't contain the same *PCI* bus with the attached *virtio_disk*
> > device node.
> > Instead, virt-arm_virt-64.dts file contains only 2 VMM virtual devices
> > for ARM guests : *virtio_uart* and *virtio_net*.
>
> I think there are two issues:
>
> 1. the missing virtio_disk node and
You can also use a device tree overlay if you do not want to modify the
existing files:
$ cat vio_block.dts
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target-path = "/l4vmm";
__overlay__ {
virtio_disk@12000 {
compatible = "virtio,mmio";
reg = <0x12000 0x200>;
interrupts = <0 125 4>;
l4vmm,vdev = "proxy";
l4vmm,virtiocap = "qdrv";
status = "okay";
};
};
};
};
Just provide the compiled overlay using the '-d' option together with the main
FDT. (Make sure to _not_ have a whitespace between the option and the
filename - there is a known bug).
Best,
Matthias.
> 2. the missing PCI bus
>
> As for the missing virtio_disk node, you can try to add it manually,
> something like this might work:
>
> virtio_disk@3000 {
>
> compatible = "virtio,mmio";
>
> reg = <0x30000 0x200>;
>
> interrupts = <0 124 4>;
>
> l4vmm,vdev = "proxy";
>
> l4vmm,virtiocap = "qdrv";
>
> };
>
> As for the missing PCI bus, in our internal tests we provide io with
> access to the QEMU ECAM MMIO device so that it can in turn discover the
> nvme device on the PCI bus and in turn serve it to nvme-drv on a vbus.
> Depending on your setup, you need to do something similar to achieve the
> same goal.
>
> Best regards,
> Jakub
> _______________________________________________
> l4-hackers mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
--
Get started with L4Re in 3 days - register now for our workshop in October!
Visit https://www.kernkonzept.com/workshop-getting-started-with-l4re to learn
more.
--
Matthias Lange phone: +49 (0) 351-41 888 614
Customer Engineer Specialist web: https://www.kernkonzept.com
Kernkonzept GmbH
Buchenstraße 16b
01097 Dresden
Geschäftsführer: Dr.-Ing. Michael Hohmuth
Registergericht: Amtsgericht Dresden
Handelsregister: HRB 31129
You might not be working when I am and that's ok! Please make sure to only
reply when it suits you. Mails can wait.
_______________________________________________
l4-hackers mailing list -- [email protected]
To unsubscribe send an email to [email protected]