1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
Commit graph

253 commits

Author SHA1 Message Date
c1f8d0fa80 stats: Indent histogram output
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-04-10 14:31:58 +02:00
3023ddaa3a Fix some typos and harmonize log output
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-04-10 14:31:58 +02:00
4b36073711 Use spaces for indention of CMake files
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 23:18:47 +01:00
a2abaa3cda Merge project files, scripts and CMake files of VILLASfpga
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 19:33:23 +01:00
Niklas Eiling
5f8272abfa kernel/vfio_device: add logging output when pciMsiDeInit is called
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
04ba5eb2cf kernel/pci: fix memory leak in Id()
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
5d3f170c40 add printGraph method to MemoryManager
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
4e6f5233da make DeviceList a singleton and expose the eventFd in Device
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
07cc1c96d8 add Niklas to copyright notices in vfio code
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
3a08e57516 fix exception strings getting lost because of rethrowing them
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
ad2619cba5 fix readHostBar throwing errors when BAR is correct
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
IgnoreWarnings
799183b0fb Load vfio modules at runtime.
Defines are replaced by constructor parameters. The default parameter makes the function backwards compatible.

Signed-off-by: IgnoreWarnings <pascal.bauer@rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Steffen Vogel
b195058d03 Fix cppcheck warnings
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
b359c2715d Fix formatting for VFIO changes
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
a5ab5ebc65 Fix VFIO logger names
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
7d10544d79 Apply clang-format changes
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
IgnoreWarnings
d73663bb01 Kernel module loading system and bug fixes of vfio (#110)
- feature: Header to specify which kernel modules (vfio support) to load
- Bug fixes: wrong errror messages, bugged region cap
- Quality of use improvements e.g. getter and str()

---------

Signed-off-by: IgnoreWarnings <pascal.bauer@rwth-aachen.de>
Signed-off-by: IgnoreWarnings <119685519+IgnoreWarnings@users.noreply.github.com>
Co-authored-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
5bfade1d66 Added missing mail addresses to SPDX copyright headers
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
02f06b607f Harmonize file descriptions and mail addresses
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
6c582cbf91 Make project REUSE compliant
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
fc89e0f0a9 Harmonize comment and code-style
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
ac67044222 Improve UUID handling
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
d4bcfd59f2 log: fix configuration of log formatter and level
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
dfc24cf534 use C++ instead of C comment style
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
2cc7c46d3a add CMake option to disable colored log output
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
822035df82 log: allow adding additional sinks
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
fe1385e2c6 pci: pass string var as const reference
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Steffen Vogel
fe95c246a3 pcie: use scanff instead of istringstream
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
ba63fc9ad7 pci: use PCI_BASE_ADDRESS_N macro
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 18:58:07 +01:00
cf855a9f46 pci: rename bar to barNum and re-add bar size to log
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 18:58:07 +01:00
248223259e use C++ STL for handling file IO
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 18:58:07 +01:00
1844d4fbfc code-style fixes
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 18:58:07 +01:00
Manuel Pitz
66d7643114 make compatible to fmt version 9.0.3
Signed-off-by: Manuel Pitz <manuel.pitz@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Steffen Vogel
009ad2225e vfio: fix compatability with older kernels (4.19) found on OPAL RT-Linux targets
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2024-02-29 18:58:07 +01:00
Niklas Eiling
f69a2a3db0 remove hardcoded pcie device id in pci.cpp
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
6fac4e583b vfio: rewrite BAR if it has the correct value
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
310136c7cf update Steffens mail address
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
c35bab4490 vfio: increase logging verbosity
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
e743b42c6f code cleanups
- Use C++ style comments
- Harmonize indentions
- Harmonize comment capitalization

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 18:58:07 +01:00
db23a3429f general code-style fixes
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 18:58:07 +01:00
3e0c6b772a use C++ style comments
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
dfd3a3be8d vfio: fix hot reset using the wron fd
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
498cc6d681 remove lib/kernel/vfio.cpp as it is not needed anymore
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
8cfa72136a improve vfio cleanup; fix potential segfault in graph/directed.hpp
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
20719d7d6c vfio: fix group not being set as attached
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
5b5ac8114b refactor vfio code. split into 3 files and remove friedship between classes
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
da6fdab06c kernel/vfio: improve cleanup
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2024-02-29 18:58:07 +01:00
Niklas Eiling
0ce0c517c0 kernel: fix unsafe use of readlink 2024-02-29 18:58:07 +01:00
8f178aacdb code style fixes 2024-02-29 18:58:07 +01:00
edf5d45ee2 update to Fedora to version 35 2024-02-29 18:58:07 +01:00