Skip to content

Conversation

@ianm-nv
Copy link

@ianm-nv ianm-nv commented Dec 17, 2025

The query-cca-capabilities QMP command was using the hardcoded KVM_CAP_ARM_RME value (244), but on kernel 6.16 the capability number is 243. This caused the command to incorrectly report 'RME is not enabled in KVM' even when RME was available.

Extract the kernel version detection logic from rme_guest_init() into a shared kvm_arm_rme_get_cap() helper function and use it in both places to ensure consistent behavior.

Fixes: b5ae241 ('target/arm: Handle KVM_CAP_ARM_RME ABI change')

The query-cca-capabilities QMP command was using the hardcoded
KVM_CAP_ARM_RME value (244), but on kernel 6.16 the capability
number is 243. This caused the command to incorrectly report
'RME is not enabled in KVM' even when RME was available.

Extract the kernel version detection logic from rme_guest_init()
into a shared kvm_arm_rme_get_cap() helper function and use it
in both places to ensure consistent behavior.

Fixes: b5ae241 ('target/arm: Handle KVM_CAP_ARM_RME ABI change')
Signed-off-by: Ian May <ianm@nvidia.com>
@nvmochs nvmochs self-requested a review December 17, 2025 20:32
Copy link
Collaborator

@nvmochs nvmochs left a comment

Choose a reason for hiding this comment

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

Acked-by: Matthew R. Ochs <mochs@nvidia.com>

Copy link

@NathanChenNVIDIA NathanChenNVIDIA left a comment

Choose a reason for hiding this comment

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

Acked-by: Nathan Chen nathanc@nvidia.com

@nvmochs
Copy link
Collaborator

nvmochs commented Dec 17, 2025

Merged, closing MR.

@nvmochs nvmochs closed this Dec 17, 2025
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.

3 participants