mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 14:38:47 +00:00
- Updated tools/post_reboot.sh to check kernel oops taint bit and stuck driver tasks instead of <86400s uptime - Level 7 hardware regression passed on 0000:b3:00.0 (module 37e6fa430835eee2b426019db3ad70eeb7a9e9070c09c84bd9b973cf56cbe529, 107 inventory words, 0 static mismatches, CUDA baseline verified before and after) - Updated .gitignore to exclude build archives (*.a, *.rlib), __pycache__, and raw trace dumps
20 lines
565 B
Rust
20 lines
565 B
Rust
#[path = "../../src/nvidia/kernel/hypervisor.rs"]
|
|
mod hypervisor;
|
|
|
|
fn main() {
|
|
let expected: u8 = std::env::args().nth(1).unwrap().parse().unwrap();
|
|
if expected == 8 {
|
|
assert_eq!(
|
|
hypervisor::BuildProduct::current(),
|
|
Err(hypervisor::UnresolvedBuildProduct)
|
|
);
|
|
return;
|
|
}
|
|
let product = hypervisor::BuildProduct::current().unwrap();
|
|
assert_eq!(
|
|
product.roles(),
|
|
[expected & 1 != 0, expected & 2 != 0, expected & 4 != 0]
|
|
);
|
|
assert_eq!(product.is_vgx_hyper(), expected != 0);
|
|
}
|