Christopher Desiniotis
805db5afa8
Refactor how mdev's are represented internally in nvmdev.
...
The 'mdev' string now represents the absolute path to an
mdev device (/sys/bus/pci/devices/<addr>/<uuid>) instead
of the mdev_type directory for the mdev device
(/sys/bus/pci/devices/<addr>/mdev_supported_types/<mdev-type>).
This is more intuitive and will make it easier to get
more information about a particular mdev device -
like the driver or iommu_group it belongs to - which can
be found at /sys/bus/pci/devices/<addr>/<uuid>.
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2022-07-08 13:00:06 -07:00
Christopher Desiniotis
09edde0a0b
Detect driver bound to an NvidiaPCIDevice
...
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2022-07-08 08:46:02 -07:00
Christopher Desiniotis
e2d858daed
Use 'os' instead of 'ioutil' which is recommended starting with Go 1.16
...
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2022-07-07 13:43:11 -07:00
Zvonko Kaiser
c5ed06b032
Added function to retrieve the BAR sizes
2022-06-01 03:20:10 -07:00
Christopher Desiniotis
505f83b943
Add nvmdev package for mdev (vGPU) devices
2022-05-25 16:34:29 +00:00
zvonkok
9196546dcc
Add the status byte check
2022-02-16 10:45:15 +01:00
zvonkok
1f718a1568
Update the Open API to OpenRO and OpenRW
2022-02-16 10:44:32 +01:00
Zvonko Kaiser
2c175dcdbf
Fix the linting errors
2022-02-16 10:43:27 +01:00
Kevin Klues
4066c09810
Add test for NUMA node addition to nvpci
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-03-22 17:19:50 +00:00
Kevin Klues
5adc7bd87c
Add numa node as a standard field in the nvpci struct
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-03-22 17:18:38 +00:00
Kevin Klues
af7bde75a5
Update nvpci mock to be more generic and support more devices
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-03-22 17:18:35 +00:00
Kevin Klues
b7d96c7bf0
Move pkg/{bytes, mmio} underneath /pkg/nvpci
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-03-22 11:33:20 +00:00
Kevin Klues
6a0fd37ab6
Add pkg/nvpci as a direct port from mig-parted/pkg/nvpci
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-03-22 11:19:56 +00:00
Kevin Klues
613fd315f3
Add pkg/mmio as a direct port from mig-parted/internal/mmio
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-03-22 11:19:56 +00:00
Kevin Klues
98d311e418
Add pkg/bytes as a direct port from mig-parted/internal/bytes
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-03-22 11:19:56 +00:00