Skip to content

Commit 22559d2

Browse files
endeneerandreeaflorescu
authored andcommitted
cap: Skip compiling SetGuestDebug for RISC-V at the moment
RISC-V currently doesn't support KVM_CAP_SET_GUEST_DEBUG. Signed-off-by: Tan En De <ende.tan@starfivetech.com>
1 parent 98362b1 commit 22559d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cap.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ pub enum Cap {
4141
Iommu = KVM_CAP_IOMMU,
4242
DestroyMemoryRegionWorks = KVM_CAP_DESTROY_MEMORY_REGION_WORKS,
4343
UserNmi = KVM_CAP_USER_NMI,
44+
#[cfg(any(
45+
target_arch = "x86",
46+
target_arch = "x86_64",
47+
target_arch = "arm",
48+
target_arch = "aarch64",
49+
target_arch = "s390"
50+
))]
4451
SetGuestDebug = KVM_CAP_SET_GUEST_DEBUG,
4552
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
4653
ReinjectControl = KVM_CAP_REINJECT_CONTROL,

0 commit comments

Comments
 (0)