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

arm64: Add feature bit to check for nested virtualization #105

Closed
wants to merge 1 commit into from

Conversation

tylerfanelli
Copy link

@tylerfanelli tylerfanelli commented May 9, 2024

Add the KVM_ARM_VCPU_HAS_EL2 feature bit, which checks for nested virtualization support.

Add the KVM_ARM_VCPU_HAS_EL2 feature bit, which checks for nested
virtualization support.

Signed-off-by: Tyler Fanelli <[email protected]>
@roypat
Copy link
Contributor

roypat commented May 10, 2024

Hi @tylerfanelli,
these files are autogenerated by bindgen, so manual modifications to them are a bit of a maintenance burden :(
Currently the bindings are generated from 6.2 headers, which did not include KVM_ARM_VCPU_HAS_EL2 yet. The proper way forward here would probably be to regenerate bindings from a newer kernel version, similar to what #92 is doing (discussion there was to wait until 6.9 is released and then regenerate bindings from 6.9). If you really only need this one constant, it might be easier to wait for #92 and for the meantime define the constant locally in your code

@tylerfanelli
Copy link
Author

@roypat Thanks, I wasn't aware of that. Will do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants