Commit Graph

187 Commits

Author SHA1 Message Date
Dan Scott a97a872a28 Add check to ensure proper variable type
Signed-off-by: Dan Scott <dan.scott@intel.com>
2026-01-29 11:59:38 -08:00
William Leara e3b8d0d31c remove unused imports from hypercall.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara fa8319628f remove unused imports from vmbus.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara 9862660a95 remove unused imports from hypercall.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara cfb8980612 remove unused imports from smm_ptr.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
Nathaniel Mitchell e0acb2787c Move tools.vmm.common to library.intel.vmm_common
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:28:53 -08:00
Nathaniel Mitchell 1259e568de Change all HAL objects in cs.hals to be lowercase
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-12-09 13:49:37 -08:00
Sara Batllori d9a8265fc5 Remove MTAG prefix from module tags and add metadata tags
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2025-03-18 16:46:35 -07:00
Nathaniel Mitchell bea2860e8e Update device functions and port register.read*/write* functions
Updated the device.get_obj/objlist functions to match the other types e.g. "get_list_by_name" and "get_instance_by_name".

Updated register.read/read_field/write/write_field functions to first get the register objects, then read*/write* from there.

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-18 16:29:21 -07:00
Nathaniel Mitchell c8cfacd732 Move paging from hal to library
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-12 09:07:23 -07:00
Nathaniel Mitchell 74818ec960 Fix up more modules. Adl now matching legacy run
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-07 21:08:24 -08:00
Nathaniel Mitchell f0fb769d70 Move acpi_tables to library from hal
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-04 22:15:21 -08:00
Dan Scott 8336f59a20 Resolve minor issues with scan_image tool
Signed-off-by: Dan Scott <dan.scott@intel.com>
2025-02-18 10:37:43 -08:00
Sara Batllori c4be346ac0 Add util to decode tests' name/id
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2025-02-18 10:36:35 -08:00
Carles Pey 5bb68870a0 Refactor variable usage and statistics collection
Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2025-02-18 10:36:34 -08:00
Carles Pey 3452b21d78 Simplify the average calculation
Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2025-02-18 10:36:34 -08:00
Carles Pey 2a8403b61a Implement SMI detection using the standard deviation
Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2025-02-18 10:36:33 -08:00
BrentHoltsclaw 0165a61fec Dev/uefi hal (#2377)
* Add Win Cert types to uefi_fv and spi_uefi
* Move uefi search to library.uefi folder
* Move uefi_fv to library.uefi
* Move uefi_compression to library.uefi>
* Move uefi_common to library.uefi
* Move uefi_platform to library.uefi
* Move spi_uefi to library.uefi
* Add library.uefi.sleep_scripts file
* Move S3 functionality into sleep_state file
* Add varstore and variable files to library.uefi
* Fixup Flake8 suggestions
* Rename library uefi files to remove uefi_
* This change changes the filename of any file under the library.uefi to remove the uefi as part of the name.
* Fix Errors when testing changes

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-02-12 09:13:50 -08:00
Nathaniel Mitchell b53f1d86b0 Update portio HAL to import halbase and simplify api
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-12-16 14:40:15 -08:00
Nathaniel Mitchell aaaa9e58a2 Update hal references to use cs.hals
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-12-10 12:22:31 -08:00
Nathaniel Mitchell 53cb4720f2 More module updates
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-12-03 12:50:38 -08:00
Nathaniel Mitchell f7409804b4 HAL Update - Enable multitenant HALs
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-12-03 12:50:36 -08:00
Carles Pey 391f42370c Add SMI detection accuracy improvements
Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2024-10-21 16:38:00 -07:00
Nathaniel Mitchell 1f53481fc9 Update HT_UEFI_Rootkit blockedlist entry
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-09-24 16:37:45 -07:00
Frinzell, Aaron af4ea12204 Replace prints
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2024-08-28 10:04:33 -07:00
Plato Mavropoulos 84fd880899 Fixes to scan_image module 2024-08-27 16:40:07 -07:00
Dan Scott f19760c63c Replace print() with logger.log()
Signed-off-by: Dan Scott <dan.scott@intel.com>
2024-08-05 16:35:54 -07:00
Nathaniel Mitchell 1d3574043e Add try/except block when copying BARs in rogue_mmio_bar tool
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-07-30 14:16:23 -07:00
Carles Pey 9f84abac9c smm_ptr: Add SMI contention check to the scan mode
Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2024-07-16 16:39:41 -07:00
jun2zhou 59f9144750 Add TE test download prompt (#2183)
* Add TE test Poe version Shell.efi download prompt

Signed-off-by: Jason Zhou <jun2.zhou@intel.com>

---------

Signed-off-by: Jason Zhou <jun2.zhou@intel.com>
Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
Co-authored-by: dscott90 <dan.scott@intel.com>
2024-06-03 16:37:40 -07:00
Nathaniel Mitchell 27940020be Fix pcie_fuzz when trying to print devices
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-06-03 16:34:59 -07:00
Jason Zhou 976565e63d Remove bins from pub repo addessing the security scan warnning
Signed-off-by: Jason Zhou <jun2.zhou@intel.com>
2024-06-03 16:34:34 -07:00
Sae86 efccddd739 WIP: Add feature to automatically generate url for return codes
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-05-29 10:44:04 -07:00
Carles Pey 19e2553138 Add SMI enumeration mode to the smm_ptr module (#2141)
* Add SMI enumeration mode to the smm_ptr module

Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2024-05-29 10:19:42 -07:00
Sae86 2bc5b22216 Add feature to auto-generate/save return code IDs
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-04-22 16:36:02 -07:00
Sae86 7d728d987a Remove lines to set test result in is_supported in smm_code_chk and tools
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-04-02 16:40:45 -07:00
Dan Scott 0e8192cfd0 Move files to library folder 2024-03-22 14:26:59 -07:00
Dan Scott a933b1337d Update references to functions in new library files 2024-03-22 14:26:59 -07:00
Sae86 5f1b1d9743 Return code updates to scan_blocked, uefivar_fuzz and vmm.hypercallfuzz
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-02-12 16:38:07 -08:00
Sae86 cabe83d87f Return code updates to cet, reputation, s3script_modify and cpuid_fuzz
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-02-12 16:37:53 -08:00
brentholtsclaw 854ecfe0fd Add ability to parse padding section and raw section
change on line 276 from @platomav

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2023-12-11 08:48:48 -08:00
Nathaniel Mitchell 4c4d8a94ca Fix BaseModule call in vmm modules
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-10-31 16:36:13 -07:00
Sae86 4a8057d904 Update remaining SKIPPED results and references
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-10-17 16:36:31 -07:00
Sae86 715dfbb678 Fix res being referenced before assignment issue
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-10-16 16:37:40 -07:00
Sae86 2358adfd51 Add module that generates test IDs for return codes
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-10-09 16:37:28 -07:00
Sae86 c0a488a7c0 Revert "Add return codes support to cpuid_fuzz, ept_finder and hypercallfuzz (tools/vmm)"
This reverts commit 041da2f54485aaf56018df3bfd9e2478190aa680.

Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-29 09:01:13 -07:00
Sae86 a8530707e5 Add return codes support to cpuid_fuzz, ept_finder and hypercallfuzz (tools/vmm)
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-29 09:01:13 -07:00
Sae86 85a76f6475 Add return codes support to tools/vmm/hv
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-29 09:01:13 -07:00
Sae86 78834bd04b Add return codes support to cpuid_fuzz, ept_finder and hypercallfuzz (tools/vmm)
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-29 08:28:03 -07:00
Sae86 aaed42dde1 Add return codes support to cpuid_fuzz, ept_finder and hypercallfuzz (tools/vmm)
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-28 21:54:06 -07:00