Skip to content

Commit 7dda0d0

Browse files
endeneerandreeaflorescu
authored andcommitted
vm: Conditional compilation for test_set_gsi_routing
set_gsi_routing is guarded with conditional compilation, so guard test_set_gsi_routing the same way. Signed-off-by: Tan En De <[email protected]>
1 parent 8bddeff commit 7dda0d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ioctls/vm.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,6 +2137,12 @@ mod tests {
21372137
}
21382138

21392139
#[test]
2140+
#[cfg(any(
2141+
target_arch = "x86",
2142+
target_arch = "x86_64",
2143+
target_arch = "arm",
2144+
target_arch = "aarch64"
2145+
))]
21402146
fn test_set_gsi_routing() {
21412147
let kvm = Kvm::new().unwrap();
21422148
let vm = kvm.create_vm().unwrap();

0 commit comments

Comments
 (0)