|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Question about xen and Rasp 4B
Glad to hear it works! IIRC, the swiotlb may become necessary when running guest if the guest memory ends up to be used for DMA transaction.It is necessary if you are using PV network or PV disk: memory shared by another domU could end up being used in a DMA transaction. For that, you need swiotlb-xen. Sounds bad :). Now that swiotlb is disabled what does it mean?I can see two reasons: 1) You have limited memory below the 30 bits mark. So Swiotlb and CMA may try to fight for the low memory. 2) We found a few conversion bugs in the swiotlb on RPI4 last year (IIRC the DMA and physical address may be different). I looked at the Linux branch you are using and they seem to all be there. So there might be another bug. I am not sure how to figure out where is the problem. Stefano, do you have a suggestion where to start? Thanks I will try this. And also can I pass the GPU to domU? Raspberry Pi 4 is limited HW and doesn't have IOMMU. I'm trying to create similar OS like QubesOS where GPU, Network, keyboard/mouse, ... are isolated to their own VMs.Without an IOMMU or any other HW mechamisns (e.g. MPU), it would not be safe to assign a DMA-capable device to a non-trusted VM. If you trust the VM where you assigned a device, then a possible approach would be to have the VM direct mapped (e.g. guest physical address == host physical address). Although, I can foreese some issues if you have multiple VMs requires memory below 30 bits (there seem to be limited amount)> If you don't trust the VM where you assigned a device, then your best option will be to expose a PV interface of the device and have your backend sanitizing the request and issuing it on behalf of the guest.FYI you could do that with the existing PVFB drivers that only support 2D graphics I'll keep that in my mind, thanks.
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |