mirror of
https://github.com/mbilker/vgpu_unlock-rs.git
synced 2026-01-17 20:07:00 +01:00
lib: add PCI bus info mapping to allow custom spoofing
- Including spoofing Maxwell and Pascal cards to Turing for 19.x use
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
use serde::Deserialize;
|
||||
|
||||
struct Defaults;
|
||||
@@ -22,6 +24,8 @@ pub struct Config {
|
||||
pub unlock: bool,
|
||||
#[serde(default = "Defaults::unlock_migration")]
|
||||
pub unlock_migration: bool,
|
||||
#[serde(default)]
|
||||
pub pci_info_map: Option<HashMap<u32, u32>>,
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
@@ -30,6 +34,7 @@ impl Default for Config {
|
||||
Self {
|
||||
unlock: Defaults::unlock(),
|
||||
unlock_migration: Defaults::unlock_migration(),
|
||||
pci_info_map: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user