Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Jun 22, 2023

Pull Request Overview

These capsules do not actually provide virtualized digest resources, and I think it's better to not give the impression that we support virtualized digest resources when we do not currently.

Testing Strategy

n/a

TODO or Help Wanted

Thoughts? Obviously another option is to re-write the virtualizers, but someone needs to be willing to do that.

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

lschuermann
lschuermann previously approved these changes Jun 23, 2023
Copy link
Member

@lschuermann lschuermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can always resurrect these from git.

@hudson-ayers
Copy link
Contributor

Wait, so like...what do these do now?

@bradjc
Copy link
Contributor Author

bradjc commented Jun 26, 2023

Wait, so like...what do these do now?

Nothing, really. They insert a little code when a HIL function is called, but for the most part the code isn't used. This is because the callbacks are not handled by these capsules, but instead passed directly to the upper layer.

alevy
alevy previously approved these changes Jul 5, 2023
lschuermann
lschuermann previously approved these changes Jul 5, 2023
hudson-ayers
hudson-ayers previously approved these changes Jul 10, 2023
@hudson-ayers
Copy link
Contributor

This still breaks CI

@bradjc
Copy link
Contributor Author

bradjc commented Jul 11, 2023

Yeah if there is consensus to doing this then I can remove their uses.

@hudson-ayers
Copy link
Contributor

I am on board

phil-levis
phil-levis previously approved these changes Jul 14, 2023
bradjc added 2 commits July 17, 2023 10:30
This means choosing between SHA and HMAC (I assume only SHA worked
before). I decided to keep HMAC, rather arbitrarily.
@bradjc bradjc dismissed stale reviews from phil-levis, hudson-ayers, lschuermann, and alevy via 57d6496 July 17, 2023 14:31
@github-actions github-actions bot added WG-OpenTitan In the purview of the OpenTitan working group. component labels Jul 17, 2023
@bradjc
Copy link
Contributor Author

bradjc commented Jul 17, 2023

I removed the uses of the virtualizers from the components and OT.

The digest virtualizer was being used to make both SHA and HMAC available. That wasn't working, but now I had to pick just one.

For future us, on code reviews, we need to check that set_client() (or setup()) is being called at the end of finalize() in components. We really should make that mandatory, or require some explanation as to why it isn't being called. That would have been the easy giveaway that something wasn't quite right here.

@ppannuto ppannuto added this pull request to the merge queue Jul 17, 2023
Merged via the queue into master with commit 70b2b28 Jul 17, 2023
@ppannuto ppannuto deleted the remove-non-virtualizers branch July 17, 2023 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component WG-OpenTitan In the purview of the OpenTitan working group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants