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

vTPM : fix arm issue by selecting correct dev name based on arch #4251

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

shjala
Copy link
Member

@shjala shjala commented Sep 13, 2024

The vTPM device name is different on ARM and x86. This patch fixes the the issue by selecting the correct device name based on the architecture.

Thanks to @rene for bringing it to my attention.

@shjala shjala self-assigned this Sep 13, 2024
@shjala shjala added the bug Something isn't working label Sep 13, 2024
@shjala shjala changed the title vTPM : fix arm issue by correct dev name based on arch vTPM : fix arm issue by selecting correct dev name based on arch Sep 13, 2024
pkg/pillar/hypervisor/kvm.go Outdated Show resolved Hide resolved
Copy link
Member

@OhmSpectator OhmSpectator left a comment

Choose a reason for hiding this comment

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

Looks good

The vTPM device name is different on ARM and x86. This patch fixes the
the issue by selecting the correct device name based on the architecture.

Signed-off-by: Shahriyar Jalayeri <shahriyar@zededa.com>
@OhmSpectator
Copy link
Member

By the way, do we have a test that could detect the error?

@shjala
Copy link
Member Author

shjala commented Sep 13, 2024

By the way, do we have a test that could detect the error?

If we had eden arm runners, yes, the vTPM test would have failed.

@rene
Copy link
Contributor

rene commented Sep 13, 2024

By the way, do we have a test that could detect the error?

Talked to @uncleDecart , unfortunately currently we don't have ARM host runners performing Eden tests.... 😢

@OhmSpectator
Copy link
Member

By the way, do we have a test that could detect the error?

Talked to @uncleDecart , unfortunately currently we don't have ARM host runners performing Eden tests.... 😢

So, we still do not have access to the GitHub ARM runners? https://github.blog/news-insights/product-news/arm64-on-github-actions-powering-faster-more-efficient-build-systems/

@OhmSpectator OhmSpectator merged commit f1d311e into lf-edge:master Sep 13, 2024
40 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants