Skip to content

Conversation

@afbjorklund
Copy link
Member

Avoids annoying warning about detection failed

Avoids annoying warning about detection failed

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
@AkihiroSuda AkihiroSuda added this to the v0.11.3 milestone Jul 22, 2022
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

)

func detectAESAcceleration() bool {
return cpuid.HasFeature(cpuid.AES)
Copy link
Member

Choose a reason for hiding this comment

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

I guess we can use this on macOS and Linux too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Possibly, not sure if it needs to check for OS "support" too ?

It might also be available in go: https://pkg.go.dev/internal/cpu

Copy link
Member Author

@afbjorklund afbjorklund Jul 22, 2022

Choose a reason for hiding this comment

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

Also I don't know how things work on Windows arm64, so left it.

@AkihiroSuda AkihiroSuda merged commit 7ca410c into lima-vm:master Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants