Commit Graph

61 Commits

Author SHA1 Message Date
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
Matt Bilker
388e7c29d7 fix clippy warnings 2022-01-09 13:32:35 +00:00
Matt Bilker
856a9a8cb6 Merge pull request #3 from erin-allison/master
Fix issue where missing override file is improperly handled
2021-12-30 11:25:15 -05:00
Erin Allison
449f86e5f6 Fix issue where missing override file is improperly handled
Signed-off-by: Erin Allison <erin@eallison.us>
2021-12-30 10:22:08 -06:00
Matt Bilker
c5a3c83854 cargo: version 2.0.1 v2.0.1 2021-12-28 08:14:41 +00:00
Matt Bilker
d89f4bcea9 lib: support Rust 1.48 as MSRV 2021-12-28 08:14:17 +00:00
Matt Bilker
6541af70bb Merge pull request #2 from erin-allison/master
Allow VMs to be launched when no profile_override.toml is found.
2021-12-21 18:10:21 -05:00
Erin Allison
40abb4b7c9 Allow VMs to be launched when no profile_override.toml is found.
Fixes mbilker/vgpu_unlock-rs#1

Signed-off-by: Erin Allison <erin@eallison.us>
2021-12-17 10:53:13 -06:00
Matt Bilker
3ca0999210 lib: apply profile overrides only on successful status 2021-11-07 11:28:38 +00:00
Matt Bilker
8bb4f47c9b lib: fix requirement to specify dummy mdev field or dummy profile field 2021-11-01 03:44:13 +00:00
Matt Bilker
9164fa73d9 config: add global config with toggle to disable unlock for official vgpu cards 2021-10-17 23:46:05 +00:00
Matt Bilker
b969aed98a dump: export dump function 2021-10-17 21:40:30 +00:00
Matt Bilker
dd5c379c78 cargo: version 2.0.0 v2.0.0 2021-10-09 12:42:22 +00:00