Matt Bilker
2728daec52
nvidia(ctrl0000vgpu): combine use statements in tests
2024-09-17 03:21:01 +00:00
vdheijden
f53fb6b3c1
lib: Add handling of NV0000_CTRL_CMD_VGPU_CREATE_DEVICE for 17.0 host driver ( #35 )
2024-09-16 23:18:56 -04:00
Matt Bilker
037b3feba7
utils: fix Proxmox format
...
- Closes #34
2024-07-29 10:15:23 +00:00
Matt Bilker
77508a97d9
nvidia(ctrla081): convert vgpu_extra_params to array of u32
2024-03-19 07:18:11 +00:00
Matt Bilker
e829f2bba6
format: support hex formatting slices of any type that can be converted to bytes
2024-03-19 07:17:19 +00:00
Matt Bilker
ce3c6bbe14
cargo: upgrade toml to 0.8.11
2024-03-19 06:35:13 +00:00
PolloLoco
d7bf3a1c04
WIP: Add support for 17.0 host driver while keeping backwards compat with 16.x
2024-02-28 22:18:14 +01:00
Matt Bilker
44d5bb32ec
nvidia(ctrla082): print extra data if any byte is non-zero
2023-02-07 05:50:09 +00:00
Matt Bilker
d91bbc5e60
nvidia(ctrla081): print extra data if any byte is non-zero
2023-02-07 05:49:56 +00:00
Matt Bilker
1492be813b
lib: pretty print RM request structure so numbers are prefixed with 0x
2023-02-06 23:15:34 +00:00
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
PolloLoco
686b7fb384
Apparently table keys are always strings... Fixed now
2023-01-16 00:06:02 +01:00
PolloLoco
688747fc84
Formatting
2023-01-14 19:14:49 +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
PolloLoco
1dc58764d6
Add new VgpuConfig struct used in vgpu 15.0 (520.60.12)
2022-12-04 09:46:22 +01:00
tonymanou
5baf345f19
lib: fix boolean value coercion
2022-10-13 09:04:41 +02: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
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
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
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
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
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
d89f4bcea9
lib: support Rust 1.48 as MSRV
2021-12-28 08:14:17 +00: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