Commit Graph

73 Commits

Author SHA1 Message Date
Matt Bilker
91d0101765 nvidia(ctrla081): move unknown section to end of parent struct
- This aligns `NVA081_CTRL_VGPU_CONFIG_GET_VGPU_TYPE_INFO_PARAMS` with how
  `NVA081_CTRL_CMD_VGPU_CONFIG_SET_INFO` uses the same
  `NVA081_CTRL_VGPU_CONFIG_INFO` structure.
2023-02-06 23:15:34 +00:00
Matt Bilker
46dee6336c nvidia(ctrla082): print whole signature if any byte is non-zero 2023-02-06 23:15:34 +00:00
Matt Bilker
6200b6b341 nvidia(ctrla081): print whole signature if any byte is non-zero 2023-02-06 23:15:28 +00:00
Matt Bilker
59660e42f8 Merge pull request #28 from polloloco/master
Fix bug where table keys were always parsed as a string
2023-01-15 22:18:20 -05:00
PolloLoco
686b7fb384 Apparently table keys are always strings... Fixed now 2023-01-16 00:06:02 +01:00
Matt Bilker
71ae908446 Merge pull request #27 from polloloco/master
Add [vm.<id>] section as syntactic sugar for proxmox users
2023-01-14 14:33:55 -05:00
PolloLoco
688747fc84 Formatting 2023-01-14 19:14:49 +01:00
PolloLoco
f139fa775c Enable 'proxmox' feature by default 2023-01-14 19:14:39 +01:00
PolloLoco
b5609cb219 Add syntactic sugar for proxmox users (behind proxmox feature flag) 2023-01-14 14:45:09 +01:00
Matt Bilker
3c35e581cf nvidia(ctrla082): rename some fields to match A081 2022-12-07 12:30:22 +00:00
Matt Bilker
3ce87825cd nvidia(ctrl0080gpu): add forgotten repr(C) 2022-12-07 12:18:49 +00:00
Matt Bilker
72abe3c927 nvidia: refactor everything out of the main class and use official naming and structs where possible 2022-12-07 12:16:25 +00:00
Matt Bilker
17d81e0dbd lib: small style change in test harness 2022-12-05 16:44:39 +00:00
Matt Bilker
e900173ea1 lib: fix vGPU config struct being too short under strict size checking 2022-12-05 16:42:53 +00:00
Matt Bilker
6fad6a3934 lib: fix NV2080_CTRL_CMD_BUS_GET_PCI_INFO handling for real
- I broke the handling in the last commit because the 0x10de is in the lower half of the integers
2022-12-05 16:41:19 +00:00
Matt Bilker
1eed7d216b lib: fix NV2080_CTRL_CMD_BUS_GET_PCI_INFO handling
- I broke the handling in the last commit because of the 0x10de being ignored
2022-12-05 04:39:30 +00:00
Matt Bilker
556469352c lib: fix NV2080_CTRL_CMD_BUS_GET_PCI_INFO structure size
- The change to `check_size` broke this ioctl
2022-12-05 04:19:18 +00:00
Matt Bilker
1841077f87 lib: remove explicit lifetimes where unnecessary 2022-12-05 02:18:27 +00:00
Matt Bilker
a24d5209eb Merge pull request #22 from polloloco/fix-profile-overrides-on-r525
Fix profile overrides on R525 vgpu driver
2022-12-04 20:58:16 -05:00
PolloLoco
1dc58764d6 Add new VgpuConfig struct used in vgpu 15.0 (520.60.12) 2022-12-04 09:46:22 +01:00
Matt Bilker
aa56da6917 cargo: version 2.3.1 v2.3.1 2022-10-13 07:48:56 +00:00
Matt Bilker
fddf049830 Merge pull request #19 from tonymanou/bool_coercion
Fix boolean value coercion
2022-10-13 03:41:02 -04:00
tonymanou
5baf345f19 lib: fix boolean value coercion 2022-10-13 09:04:41 +02:00
Matt Bilker
6e54853c9f cargo: version 2.3.0 v2.3.0 2022-09-21 04:37:20 +00:00
Matt Bilker
ccf1744821 format: fix compatibility with Rust 1.48 2022-09-21 04:36:54 +00:00
Matt Bilker
2f18efb8e5 lib: trim trailing NUL bytes from the signature field 2022-09-21 04:35:44 +00:00
Matt Bilker
087a5c8713 lib: rework the configuration macros to make them more succinct
- Surprisingly, this ended up having more lines of code, but in my
  opinion the the code is cleaner.
2022-08-25 10:40:09 +00:00
Matt Bilker
1878829903 lib: limit boolean values to 0 or 1 2022-08-24 19:35:47 +00:00
Matt Bilker
25fca3d807 lib: check params size for safety 2022-08-24 12:33:43 +00:00
Matt Bilker
ba51d63cf2 lib: noticed the QEMU PID was in the start request 2022-08-24 12:33:19 +00:00
Matt Bilker
b5578c8d69 lib: derive many field names from Arc's mdev GPU project 2022-08-24 12:32:37 +00:00
Matt Bilker
55c0324484 lib: incorporate info from NVIDIA's open source driver 2022-08-24 11:55:22 +00:00
Matt Bilker
1e2d502c2c src: add SPDX license headers to remaining files 2022-08-23 20:12:50 +00:00
Matt Bilker
6deede6a65 cargo: version 2.2.0 v2.2.0 2022-05-25 19:25:15 +00:00
Matt Bilker
a89c5897ea cargo: downgrade parking_lot to stay compatible with Rust 1.48 2022-05-25 19:24:55 +00:00
Matt Bilker
3858f2cde3 cargo: version 2.1.0 v2.1.0 2022-05-08 17:21:00 +00:00
Matt Bilker
a1cc1fe0ce cargo: update dependencies 2022-05-08 17:20:44 +00:00
Matt Bilker
4db1644c09 lib: fix profile override to not require the custom deserialization fields 2022-05-08 06:47:09 +00:00
Matt Bilker
cf56585fbb lib: rename mig_enabled to migration_enabled to further reduce confusion 2022-05-08 06:41:37 +00:00
Matt Bilker
2628d4e160 lib: move test code to submodule 2022-05-08 04:48:23 +00:00
Matt Bilker
87339f96b5 rustfmt 2022-05-08 04:48:12 +00:00
Matt Bilker
375386e67c human_number: add parser for human-readable sizes 2022-05-08 04:47:43 +00:00
Matt Bilker
7490f5bfbc Merge pull request #9 from kharbranth/master
Update migration ioctl variable name
2022-05-05 21:26:12 -04:00
kharbranth
205abb1c6e Update migration ioctl variable name
The name "MIG" creates confusion with NVIDIA's Multi-Instance GPU (MIG)
technology, thus a rename from "MIG" to "MIGRATION" is prudent.

Signed-off-by: kharbranth <cityofkharbranth@protonmail.com>
2022-05-05 21:22:26 -04:00
Matt Bilker
c6002f455e Merge pull request #8 from kharbranth/master
Add support for unlocking migration support on vGPUs
2022-05-05 21:16:08 -04:00
kharbranth
a6d067f559 Add documentation for unlocking VM migration/snapshotting
Signed-off-by: kharbranth <cityofkharbranth@protonmail.com>
2022-05-05 21:07:19 -04:00
kharbranth
826e7b246e Allow unlocking VM migration/snapshot support
This also requires NV_KVM_MIGRATION_UAPI to be set to 1 when building
the `nvidia-vgpu-vfio` kernel module, hence why unlocking this feature
is only conditionally enabled, since not everyone will want it.

Signed-off-by: kharbranth <cityofkharbranth@protonmail.com>
2022-05-05 20:57:48 -04:00
Matt Bilker
fa31a73ef5 lib: add basic Safety section 2022-04-12 07:41:03 +00:00
Matt Bilker
35d51635c8 cargo: version 2.0.2 v2.0.2 2022-03-10 23:22:59 +00:00
Matt Bilker
581e457289 lib: support Rust 1.41 as MSRV 2022-03-10 23:22:26 +00:00