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

vcpu: Fix Arm target_arch gate for set_guest_debug #200

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

MrXinWang
Copy link
Contributor

Summary of the PR

KVM_SET_GUEST_DEBUG supports arm64 architecture, but the correct
target_arch gate name in Rust should be aarch64 instead of arm64.
This commit does the fix for set_guest_debug() so that other
crates that depend on the kvm-ioctls crate can be benefited.

Signed-off-by: Henry Wang Henry.Wang@arm.com

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR are signed (with git commit -s), and the commit
    message has max 60 characters for the summary and max 75 characters for each
    description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • Any newly added unsafe code is properly documented.

@MrXinWang
Copy link
Contributor Author

/cc @michael2012z

src/ioctls/vcpu.rs Outdated Show resolved Hide resolved
liuw
liuw previously approved these changes Jun 29, 2022
Copy link
Member

@liuw liuw left a comment

Choose a reason for hiding this comment

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

LGTM

@MrXinWang
Copy link
Contributor Author

Hi @andreeaflorescu @lauralt, any comments for this one? To add a little bit more context, we found this issue when trying to enable the GDB debuggability for the guest VM.

andreeaflorescu
andreeaflorescu previously approved these changes Jul 4, 2022
lauralt
lauralt previously approved these changes Jul 4, 2022
src/ioctls/vcpu.rs Show resolved Hide resolved
KVM_SET_GUEST_DEBUG supports arm64 architecture, but the correct
target_arch gate name in Rust should be aarch64 instead of arm64.
This commit does the fix for set_guest_debug() so that other
crates that depend on the kvm-ioctls crate can be benefited.

Signed-off-by: Henry Wang <Henry.Wang@arm.com>
@andreeaflorescu andreeaflorescu merged commit 63f2f12 into rust-vmm:main Jul 4, 2022
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.

4 participants