From c90c351c623a14e5cb545f9f829459509a1a90b5 Mon Sep 17 00:00:00 2001 From: Pascal Bauer Date: Thu, 13 Feb 2025 14:43:54 +0100 Subject: [PATCH] chore: clarify comments Signed-off-by: Pascal Bauer --- common/lib/kernel/devices/device_connection.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/lib/kernel/devices/device_connection.cpp b/common/lib/kernel/devices/device_connection.cpp index 24773321b..77f9e9427 100644 --- a/common/lib/kernel/devices/device_connection.cpp +++ b/common/lib/kernel/devices/device_connection.cpp @@ -21,16 +21,17 @@ DeviceConnection::DeviceConnection( std::shared_ptr vfio_device) : logger(villas::Log::get("DeviceConnection")), vfio_device(vfio_device) {}; -DeviceConnection DeviceConnection::from(const villas::kernel::devices::Device &device, - std::shared_ptr vfio_container) { +DeviceConnection DeviceConnection::from( + const villas::kernel::devices::Device &device, + std::shared_ptr vfio_container) { auto logger = villas::Log::get("Builder: DeviceConnection"); - // Bind to driver + // Bind the devicetree device to vfio driver LinuxDriver driver( std::filesystem::path("/sys/bus/platform/drivers/vfio-platform")); driver.attach(device); - // Attach group to container + // Attach vfio container to the iommu group const int iommu_group = device.iommu_group().value(); auto vfio_group = vfio_container->getOrAttachGroup(iommu_group); logger->debug("Device: {}, Iommu: {}", device.name(), iommu_group);