Matt Bilker
953b9c6b92
cargo: upgrade dependencies
...
- Drop support for Rust 1.48 as Proxmox 8 uses Debian 12 as its base.
2024-03-19 07:20:50 +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
Matthew Bilker and GitHub
cad308eceb
Merge pull request #33 from polloloco/master
2024-03-04 12:47:42 -05: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
Matt Bilker and GitHub
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
Matt Bilker and GitHub
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
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 and GitHub
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
Matt Bilker
aa56da6917
cargo: version 2.3.1
2022-10-13 07:48:56 +00:00
Matt Bilker and GitHub
fddf049830
Merge pull request #19 from tonymanou/bool_coercion
...
Fix boolean value coercion
2022-10-13 03:41:02 -04:00
Matt Bilker
6e54853c9f
cargo: version 2.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
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
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 and GitHub
7490f5bfbc
Merge pull request #9 from kharbranth/master
...
Update migration ioctl variable name
2022-05-05 21:26:12 -04:00
Matt Bilker and GitHub
c6002f455e
Merge pull request #8 from kharbranth/master
...
Add support for unlocking migration support on vGPUs
2022-05-05 21:16:08 -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
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 and GitHub
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
Matt Bilker
c5a3c83854
cargo: version 2.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 and GitHub
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
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
2021-10-09 12:42:22 +00:00
Matt Bilker
4404cf2ada
Updated README for profile override changes
2021-10-09 12:42:21 +00:00
Matt Bilker
8921beccfd
Add per-mdev override support
2021-10-09 12:13:05 +00:00
Matt Bilker
b9a16c426e
Add individual profile override support
2021-10-09 12:13:04 +00:00
Matt Bilker
80e3397a44
Add test to ensure struct sizes are correct
2021-10-09 12:13:04 +00:00
Matt Bilker
2a9a81290b
Add UUID and start call decoding
2021-10-09 12:13:04 +00:00
Matt Bilker
28a699a184
Add helper for pretty printing data
2021-10-09 10:35:07 +00:00
Matt Bilker
2f21bb8d9d
OP_READ_DEV_TYPE value is 32-bit, not 64-bit
...
- `unknown_4` in the request structure seems to be the size of the pointee.
2021-10-09 10:29:17 +00:00
Matt Bilker
f214277a42
cargo: version 1.0.0
2021-10-09 10:24:50 +00:00
Matt Bilker
87df1c35e5
Add README.md
2021-09-17 09:31:08 +00:00
Matt Bilker
e121e65859
Move main macro body one indentation level out
2021-09-17 09:14:54 +00:00
Matt Bilker
4a73f9376d
Initial commit
2021-09-17 08:33:12 +00:00