Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move part of PciIds from AttestationCA back to Utils #796

Merged
merged 13 commits into from
Jul 22, 2024

Conversation

iadgovuser58
Copy link
Collaborator

@iadgovuser58 iadgovuser58 commented Jul 1, 2024

Closes #757

The class PciIds is in AttestationCA. However, a few functions in PciIds are needed to process SPDM event log structures defined in the PFP (specifically DEVICE_SECURITY_EVENT_DATA_PCI_CONTEXT), and the event log classes are in Utils. PciIds class cannot be accessed from Utils without creating a circular dependency.

  1. renamed AttestationCA pciids to AcaPciIds
  2. created a Utils PciIds and moved the DB object, the vendor id and device id translate functions in AcaPciIds into Utils PciIds
  3. updated DeviceSecurityEventDataPciContext to use PciIds to report Vendor and Device IDs
  4. update Utils PciIds to also translate classcode, and update DeviceSecurityEventDataPciContext to use this feature

@iadgovuser58 iadgovuser58 added the enhancement New feature or request label Jul 1, 2024
@iadgovuser58 iadgovuser58 self-assigned this Jul 1, 2024
@iadgovuser29 iadgovuser29 merged commit 315d3a2 into main Jul 22, 2024
6 checks passed
chubtub pushed a commit that referenced this pull request Jul 26, 2024
* update pciids to acapciids throughout code

* add pciids to utils and update classes that use it

* moved the 4 vendor/device translate functions to the utils pciids

* added pciids translations to SPDM Device Context file

* cleaning up imports

* cleaning up comments

* cleaned up a few checkstyle warnings

* working to get class code

* update output message in main

* working on class code

* fixes/minor changes

* fixed check of class code list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants