Skip to content

Instantly share code, notes, and snippets.

@r-rmcgibbo
Created April 7, 2021 03:30
Show Gist options
  • Save r-rmcgibbo/05cb92f4691a418ca3fb81f2c03bda4e to your computer and use it in GitHub Desktop.
Save r-rmcgibbo/05cb92f4691a418ca3fb81f2c03bda4e to your computer and use it in GitHub Desktop.
system: x86_64-linux | build_time: 5 minutes | https://github.com/NixOS/nixpkgs/pull/118700
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
/build/chromiumos/platform /build
unpacking source archive /nix/store/bghv13l5bc42fvpdqb922m9030raqb0a-crosvm-8b8c01e
/build
/build/chromiumos/third_party /build
unpacking source archive /nix/store/f7pfm1nadqgh74r3g3sxrr3ijlzbv7gf-adhd-f361d5b
/build
Executing cargoSetupPostUnpackHook
unpacking source archive /nix/store/llcka5xp6plv495i549pm5gh2j9xjxas-crosvm-81.12871.0.0-rc1-vendor.tar.gz
Finished cargoSetupPostUnpackHook
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/0r9lw39afgsqcjngf0b0dbzam5x7bddj-default-seccomp-policy-dir.diff
patching file src/crosvm.rs
Hunk #1 succeeded at 200 with fuzz 1 (offset 59 lines).
Executing cargoSetupPostPatchHook
Validating consistency between /build/chromiumos/platform/crosvm//Cargo.lock and /build/crosvm-81.12871.0.0-rc1-vendor.tar.gz/Cargo.lock
Finished cargoSetupPostPatchHook
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing cargoBuildHook
++ env CC_x86_64-unknown-linux-gnu=/nix/store/gdg97kdw8k7nqg704g4gm3cn8280bmgr-gcc-wrapper-10.2.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/gdg97kdw8k7nqg704g4gm3cn8280bmgr-gcc-wrapper-10.2.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/gdg97kdw8k7nqg704g4gm3cn8280bmgr-gcc-wrapper-10.2.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/gdg97kdw8k7nqg704g4gm3cn8280bmgr-gcc-wrapper-10.2.0/bin/c++ cargo build -j 2 --target x86_64-unknown-linux-gnu --frozen --release
Compiling proc-macro2 v0.4.21
Compiling unicode-xid v0.1.0
Compiling libc v0.2.44
Compiling assertions v0.1.0 (/build/chromiumos/platform/crosvm/assertions)
Compiling sync v0.1.0 (/build/chromiumos/platform/crosvm/sync)
Compiling syscall_defines v0.1.0 (/build/chromiumos/platform/crosvm/syscall_defines)
Compiling bitflags v1.1.0
Compiling audio_streams v0.1.0 (/build/chromiumos/third_party/adhd/audio_streams)
Compiling cc v1.0.25
Compiling rand_ish v0.1.0 (/build/chromiumos/platform/crosvm/rand_ish)
Compiling data_model v0.1.0 (/build/chromiumos/platform/crosvm/data_model)
Compiling cras-sys v0.1.0 (/build/chromiumos/third_party/adhd/cras/client/cras-sys)
Compiling quote v0.6.10
Compiling x86_64 v0.1.0 (/build/chromiumos/platform/crosvm/x86_64)
Compiling tempfile v3.0.7 (/build/chromiumos/platform/crosvm/tempfile)
Compiling kernel_cmdline v0.1.0 (/build/chromiumos/platform/crosvm/kernel_cmdline)
Compiling syn v0.15.26
Compiling poll_token_derive v0.1.0 (/build/chromiumos/platform/crosvm/sys_util/poll_token_derive)
Compiling msg_on_socket_derive v0.1.0 (/build/chromiumos/platform/crosvm/msg_socket/msg_on_socket_derive)
Compiling remain v0.1.2
Compiling wire_format_derive v0.1.0 (/build/chromiumos/platform/crosvm/p9/wire_format_derive)
Compiling bit_field_derive v0.1.0 (/build/chromiumos/platform/crosvm/bit_field/bit_field_derive)
Compiling enumn v0.1.0 (/build/chromiumos/platform/crosvm/enumn)
Compiling sys_util v0.1.0 (/build/chromiumos/platform/crosvm/sys_util)
Compiling p9 v0.1.0 (/build/chromiumos/platform/crosvm/p9)
Compiling msg_socket v0.1.0 (/build/chromiumos/platform/crosvm/msg_socket)
Compiling net_sys v0.1.0 (/build/chromiumos/platform/crosvm/net_sys)
Compiling kvm_sys v0.1.0 (/build/chromiumos/platform/crosvm/kvm_sys)
Compiling usb_sys v0.1.0 (/build/chromiumos/platform/crosvm/usb_sys)
Compiling virtio_sys v0.1.0 (/build/chromiumos/platform/crosvm/virtio_sys)
Compiling disk v0.1.0 (/build/chromiumos/platform/crosvm/disk)
Compiling vfio_sys v0.1.0 (/build/chromiumos/platform/crosvm/vfio_sys)
Compiling linux_input_sys v0.1.0 (/build/chromiumos/platform/crosvm/linux_input_sys)
Compiling kernel_loader v0.1.0 (/build/chromiumos/platform/crosvm/kernel_loader)
Compiling libcras v0.1.0 (/build/chromiumos/third_party/adhd/cras/client/libcras)
Compiling bit_field v0.1.0 (/build/chromiumos/platform/crosvm/bit_field)
Compiling net_util v0.1.0 (/build/chromiumos/platform/crosvm/net_util)
Compiling io_jail v0.1.0 (/build/chromiumos/platform/crosvm/io_jail)
Compiling resources v0.1.0 (/build/chromiumos/platform/crosvm/resources)
Compiling usb_util v0.1.0 (/build/chromiumos/platform/crosvm/usb_util)
Compiling kvm v0.1.0 (/build/chromiumos/platform/crosvm/kvm)
Compiling vhost v0.1.0 (/build/chromiumos/platform/crosvm/vhost)
Compiling vm_control v0.1.0 (/build/chromiumos/platform/crosvm/vm_control)
Compiling devices v0.1.0 (/build/chromiumos/platform/crosvm/devices)
warning: unnecessary parentheses around block return value
--> devices/src/pit.rs:694:17
|
694 | (dur_ns * FREQUENCY_HZ / NANOS_PER_SEC)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:15:33
|
15 | pub const INPUT_PROP_CNT: u16 = (INPUT_PROP_MAX + 1);
| ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:641:26
|
641 | pub const KEY_CNT: u16 = (KEY_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:654:26
|
654 | pub const REL_CNT: u16 = (REL_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:702:26
|
702 | pub const ABS_CNT: u16 = (ABS_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:711:26
|
711 | pub const MSC_CNT: u16 = (MSC_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:725:26
|
725 | pub const LED_CNT: u16 = (LED_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:730:26
|
730 | pub const REP_CNT: u16 = (REP_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/fs/server.rs:22:30
|
22 | const MAX_BUFFER_SIZE: u32 = (1 << 20);
| ^^^^^^^^^ help: remove these parentheses
warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead
--> devices/src/virtio/fs/passthrough.rs:714:18
|
714 | .compare_and_swap(refcount, new_count, Ordering::Release)
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
Compiling arch v0.1.0 (/build/chromiumos/platform/crosvm/arch)
warning: unnecessary parentheses around block return value
--> x86_64/src/gdt.rs:11:5
|
11 | / ((((base as u64) & 0xff000000u64) << (56 - 24))
12 | | | (((flags as u64) & 0x0000f0ffu64) << 40)
13 | | | (((limit as u64) & 0x000f0000u64) << (48 - 16))
14 | | | (((base as u64) & 0x00ffffffu64) << 16)
15 | | | ((limit as u64) & 0x0000ffffu64))
| |___________________________________________^
|
= note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
|
11 | (((base as u64) & 0xff000000u64) << (56 - 24))
12 | | (((flags as u64) & 0x0000f0ffu64) << 40)
13 | | (((limit as u64) & 0x000f0000u64) << (48 - 16))
14 | | (((base as u64) & 0x00ffffffu64) << 16)
15 | | ((limit as u64) & 0x0000ffffu64)
|
warning: unnecessary parentheses around block return value
--> x86_64/src/gdt.rs:19:5
|
19 | / ((((entry) & 0xFF00000000000000) >> 32)
20 | | | (((entry) & 0x000000FF00000000) >> 16)
21 | | | (((entry) & 0x00000000FFFF0000) >> 16))
| |_________________________________________________^
|
help: remove these parentheses
|
19 | (((entry) & 0xFF00000000000000) >> 32)
20 | | (((entry) & 0x000000FF00000000) >> 16)
21 | | (((entry) & 0x00000000FFFF0000) >> 16)
|
warning: unnecessary parentheses around block return value
--> x86_64/src/interrupts.rs:60:5
|
60 | (((reg) & !0x700) | ((mode) << 8))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> x86_64/src/lib.rs:161:33
|
161 | const MEM_32BIT_GAP_SIZE: u64 = (768 << 20);
| ^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> x86_64/src/lib.rs:162:37
|
162 | const FIRST_ADDR_PAST_32BITS: u64 = (1 << 32);
| ^^^^^^^^^ help: remove these parentheses
warning: 5 warnings emitted
Compiling crosvm v0.1.0 (/build/chromiumos/platform/crosvm)
warning: unnecessary parentheses around assigned value
--> src/linux.rs:1603:25
|
1603 | const ONE_GB: u64 = (1 << 30);
| ^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: 1 warning emitted
warning: 10 warnings emitted
Finished release [optimized] target(s) in 2m 59s
Executing cargoInstallPostBuildHook
Finished cargoInstallPostBuildHook
Finished cargoBuildHook
@nix { "action": "setPhase", "phase": "checkPhase" }
running tests
Executing cargoCheckHook
++ cargo test -j 2 --release --target x86_64-unknown-linux-gnu --frozen -- --test-threads=2
Compiling assertions v0.1.0 (/build/chromiumos/platform/crosvm/assertions)
Compiling sync v0.1.0 (/build/chromiumos/platform/crosvm/sync)
Compiling syscall_defines v0.1.0 (/build/chromiumos/platform/crosvm/syscall_defines)
Compiling audio_streams v0.1.0 (/build/chromiumos/third_party/adhd/audio_streams)
Compiling rand_ish v0.1.0 (/build/chromiumos/platform/crosvm/rand_ish)
Compiling data_model v0.1.0 (/build/chromiumos/platform/crosvm/data_model)
Compiling libc v0.2.44
Compiling bitflags v1.1.0
Compiling cras-sys v0.1.0 (/build/chromiumos/third_party/adhd/cras/client/cras-sys)
Compiling tempfile v3.0.7 (/build/chromiumos/platform/crosvm/tempfile)
Compiling kernel_cmdline v0.1.0 (/build/chromiumos/platform/crosvm/kernel_cmdline)
Compiling sys_util v0.1.0 (/build/chromiumos/platform/crosvm/sys_util)
Compiling bit_field v0.1.0 (/build/chromiumos/platform/crosvm/bit_field)
Compiling p9 v0.1.0 (/build/chromiumos/platform/crosvm/p9)
Compiling msg_socket v0.1.0 (/build/chromiumos/platform/crosvm/msg_socket)
Compiling net_sys v0.1.0 (/build/chromiumos/platform/crosvm/net_sys)
Compiling kvm_sys v0.1.0 (/build/chromiumos/platform/crosvm/kvm_sys)
Compiling usb_sys v0.1.0 (/build/chromiumos/platform/crosvm/usb_sys)
Compiling virtio_sys v0.1.0 (/build/chromiumos/platform/crosvm/virtio_sys)
Compiling vfio_sys v0.1.0 (/build/chromiumos/platform/crosvm/vfio_sys)
Compiling disk v0.1.0 (/build/chromiumos/platform/crosvm/disk)
Compiling linux_input_sys v0.1.0 (/build/chromiumos/platform/crosvm/linux_input_sys)
Compiling kernel_loader v0.1.0 (/build/chromiumos/platform/crosvm/kernel_loader)
Compiling libcras v0.1.0 (/build/chromiumos/third_party/adhd/cras/client/libcras)
Compiling resources v0.1.0 (/build/chromiumos/platform/crosvm/resources)
Compiling net_util v0.1.0 (/build/chromiumos/platform/crosvm/net_util)
Compiling io_jail v0.1.0 (/build/chromiumos/platform/crosvm/io_jail)
Compiling kvm v0.1.0 (/build/chromiumos/platform/crosvm/kvm)
Compiling usb_util v0.1.0 (/build/chromiumos/platform/crosvm/usb_util)
Compiling vhost v0.1.0 (/build/chromiumos/platform/crosvm/vhost)
Compiling vm_control v0.1.0 (/build/chromiumos/platform/crosvm/vm_control)
warning: unnecessary parentheses around block return value
--> devices/src/pit.rs:694:17
|
694 | (dur_ns * FREQUENCY_HZ / NANOS_PER_SEC)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:15:33
|
15 | pub const INPUT_PROP_CNT: u16 = (INPUT_PROP_MAX + 1);
| ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:641:26
|
641 | pub const KEY_CNT: u16 = (KEY_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:654:26
|
654 | pub const REL_CNT: u16 = (REL_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:702:26
|
702 | pub const ABS_CNT: u16 = (ABS_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:711:26
|
711 | pub const MSC_CNT: u16 = (MSC_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:725:26
|
725 | pub const LED_CNT: u16 = (LED_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:730:26
|
730 | pub const REP_CNT: u16 = (REP_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/fs/server.rs:22:30
|
22 | const MAX_BUFFER_SIZE: u32 = (1 << 20);
| ^^^^^^^^^ help: remove these parentheses
warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead
--> devices/src/virtio/fs/passthrough.rs:714:18
|
714 | .compare_and_swap(refcount, new_count, Ordering::Release)
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: 10 warnings emitted
Compiling devices v0.1.0 (/build/chromiumos/platform/crosvm/devices)
warning: unnecessary parentheses around block return value
--> devices/src/pit.rs:694:17
|
694 | (dur_ns * FREQUENCY_HZ / NANOS_PER_SEC)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:15:33
|
15 | pub const INPUT_PROP_CNT: u16 = (INPUT_PROP_MAX + 1);
| ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:641:26
|
641 | pub const KEY_CNT: u16 = (KEY_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:654:26
|
654 | pub const REL_CNT: u16 = (REL_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:702:26
|
702 | pub const ABS_CNT: u16 = (ABS_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:711:26
|
711 | pub const MSC_CNT: u16 = (MSC_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:725:26
|
725 | pub const LED_CNT: u16 = (LED_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:730:26
|
730 | pub const REP_CNT: u16 = (REP_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/fs/server.rs:22:30
|
22 | const MAX_BUFFER_SIZE: u32 = (1 << 20);
| ^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around block return value
--> x86_64/src/gdt.rs:11:5
|
11 | / ((((base as u64) & 0xff000000u64) << (56 - 24))
12 | | | (((flags as u64) & 0x0000f0ffu64) << 40)
13 | | | (((limit as u64) & 0x000f0000u64) << (48 - 16))
14 | | | (((base as u64) & 0x00ffffffu64) << 16)
15 | | | ((limit as u64) & 0x0000ffffu64))
| |___________________________________________^
|
= note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
|
11 | (((base as u64) & 0xff000000u64) << (56 - 24))
12 | | (((flags as u64) & 0x0000f0ffu64) << 40)
13 | | (((limit as u64) & 0x000f0000u64) << (48 - 16))
14 | | (((base as u64) & 0x00ffffffu64) << 16)
15 | | ((limit as u64) & 0x0000ffffu64)
|
warning: unnecessary parentheses around block return value
--> x86_64/src/gdt.rs:19:5
|
19 | / ((((entry) & 0xFF00000000000000) >> 32)
20 | | | (((entry) & 0x000000FF00000000) >> 16)
21 | | | (((entry) & 0x00000000FFFF0000) >> 16))
| |_________________________________________________^
|
help: remove these parentheses
|
19 | (((entry) & 0xFF00000000000000) >> 32)
20 | | (((entry) & 0x000000FF00000000) >> 16)
21 | | (((entry) & 0x00000000FFFF0000) >> 16)
|
warning: unnecessary parentheses around block return value
--> x86_64/src/interrupts.rs:60:5
|
60 | (((reg) & !0x700) | ((mode) << 8))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> x86_64/src/lib.rs:161:33
|
161 | const MEM_32BIT_GAP_SIZE: u64 = (768 << 20);
| ^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> x86_64/src/lib.rs:162:37
|
162 | const FIRST_ADDR_PAST_32BITS: u64 = (1 << 32);
| ^^^^^^^^^ help: remove these parentheses
warning: 5 warnings emitted
warning: unnecessary parentheses around assigned value
--> src/linux.rs:1603:25
|
1603 | const ONE_GB: u64 = (1 << 30);
| ^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: 1 warning emitted
warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead
--> devices/src/virtio/fs/passthrough.rs:714:18
|
714 | .compare_and_swap(refcount, new_count, Ordering::Release)
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
Compiling arch v0.1.0 (/build/chromiumos/platform/crosvm/arch)
Compiling x86_64 v0.1.0 (/build/chromiumos/platform/crosvm/x86_64)
warning: unnecessary parentheses around block return value
--> x86_64/src/gdt.rs:11:5
|
11 | / ((((base as u64) & 0xff000000u64) << (56 - 24))
12 | | | (((flags as u64) & 0x0000f0ffu64) << 40)
13 | | | (((limit as u64) & 0x000f0000u64) << (48 - 16))
14 | | | (((base as u64) & 0x00ffffffu64) << 16)
15 | | | ((limit as u64) & 0x0000ffffu64))
| |___________________________________________^
|
= note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
|
11 | (((base as u64) & 0xff000000u64) << (56 - 24))
12 | | (((flags as u64) & 0x0000f0ffu64) << 40)
13 | | (((limit as u64) & 0x000f0000u64) << (48 - 16))
14 | | (((base as u64) & 0x00ffffffu64) << 16)
15 | | ((limit as u64) & 0x0000ffffu64)
|
warning: unnecessary parentheses around block return value
--> x86_64/src/gdt.rs:19:5
|
19 | / ((((entry) & 0xFF00000000000000) >> 32)
20 | | | (((entry) & 0x000000FF00000000) >> 16)
21 | | | (((entry) & 0x00000000FFFF0000) >> 16))
| |_________________________________________________^
|
help: remove these parentheses
|
19 | (((entry) & 0xFF00000000000000) >> 32)
20 | | (((entry) & 0x000000FF00000000) >> 16)
21 | | (((entry) & 0x00000000FFFF0000) >> 16)
|
warning: unnecessary parentheses around block return value
--> x86_64/src/interrupts.rs:60:5
|
60 | (((reg) & !0x700) | ((mode) << 8))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> x86_64/src/lib.rs:161:33
|
161 | const MEM_32BIT_GAP_SIZE: u64 = (768 << 20);
| ^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> x86_64/src/lib.rs:162:37
|
162 | const FIRST_ADDR_PAST_32BITS: u64 = (1 << 32);
| ^^^^^^^^^ help: remove these parentheses
warning: 5 warnings emitted
Compiling crosvm v0.1.0 (/build/chromiumos/platform/crosvm)
warning: unnecessary parentheses around assigned value
--> src/linux.rs:1603:25
|
1603 | const ONE_GB: u64 = (1 << 30);
| ^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: 1 warning emitted
warning: 10 warnings emitted
warning: unnecessary parentheses around assigned value
--> src/linux.rs:1603:25
|
1603 | const ONE_GB: u64 = (1 << 30);
| ^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: value assigned to `gpu_value` is never read
--> src/argument.rs:516:41
|
516 | ... gpu_value = Some("2D".to_string());
| ^^^^^^^^^
|
= note: `#[warn(unused_assignments)]` on by default
= help: maybe it is overwritten before being read?
warning: value assigned to `gpu_value` is never read
--> src/argument.rs:519:41
|
519 | ... gpu_value = Some("3D".to_string());
| ^^^^^^^^^
|
= help: maybe it is overwritten before being read?
warning: 3 warnings emitted
Finished release [optimized] target(s) in 2m 42s
Running target/x86_64-unknown-linux-gnu/release/deps/crosvm-c7d488c437b87881
running 4 tests
test argument::tests::mixed_args ... ok
test argument::tests::flag_or_value ... ok
test argument::tests::name_value_pair ... ok
test argument::tests::request_help ... ok
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running target/x86_64-unknown-linux-gnu/release/deps/crosvm-079669c049e2a00b
running 23 tests
test tests::parse_cpu_set_list ... ok
test tests::parse_cpu_set_extra_comma ... ok
test tests::parse_cpu_set_negative ... ok
test tests::parse_cpu_set_open_range ... ok
test tests::parse_cpu_set_range ... ok
test tests::parse_cpu_set_repeated ... ok
test tests::parse_cpu_set_reverse_range ... ok
test tests::parse_cpu_set_single ... ok
test tests::parse_plugin_gid_map_invalid ... ok
test tests::parse_plugin_gid_map_valid ... ok
test tests::parse_plugin_gid_map_valid_shorthand ... ok
test tests::parse_plugin_mount_invalid ... ok
test tests::parse_plugin_mount_valid ... ok
test tests::parse_plugin_mount_valid_shorthand ... ok
test tests::parse_serial_invalid_num_lower ... ok
test tests::parse_serial_invalid_num_string ... ok
test tests::parse_serial_invalid_num_upper ... ok
test tests::parse_serial_invalid_option ... ok
test tests::parse_serial_invalid_two_stdin ... ok
test tests::parse_serial_invalid_type ... ok
test tests::parse_serial_vaild ... ok
test tests::parse_serial_valid_no_num ... ok
test tests::parse_cpu_set_list_of_ranges ... ok
test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running target/x86_64-unknown-linux-gnu/release/deps/boot-fa0c469f5648068d
running 1 test
test boot ... FAILED
failures:
---- boot stdout ----
using kernel binary from enviroment `/nix/store/f0f7rzir4d6kblqwnkqin69zgipzrdwq-linux-5.10.27/bzImage`
thread 'boot' panicked at 'failed to run linux: BuildVm(CreateKvm(Error(2)))', tests/boot.rs:240:7
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
boot
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
error: test failed, to rerun pass '--test boot'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment