Skip to content

Commit

Permalink
cap: Skip compiling SetGuestDebug for RISC-V at the moment
Browse files Browse the repository at this point in the history
RISC-V currently doesn't support KVM_CAP_SET_GUEST_DEBUG.

Signed-off-by: Tan En De <[email protected]>
  • Loading branch information
endeneer authored and andreeaflorescu committed Oct 11, 2023
1 parent 98362b1 commit 22559d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ pub enum Cap {
Iommu = KVM_CAP_IOMMU,
DestroyMemoryRegionWorks = KVM_CAP_DESTROY_MEMORY_REGION_WORKS,
UserNmi = KVM_CAP_USER_NMI,
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "arm",
target_arch = "aarch64",
target_arch = "s390"
))]
SetGuestDebug = KVM_CAP_SET_GUEST_DEBUG,
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
ReinjectControl = KVM_CAP_REINJECT_CONTROL,
Expand Down

0 comments on commit 22559d2

Please sign in to comment.