Mock Version: 5.2 Mock Version: 5.2 Mock Version: 5.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-kvm-ioctls.spec'], chrootPath='/var/lib/mock/f39-build-2380926-60457/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-kvm-ioctls.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1707350400 Wrote: /builddir/build/SRPMS/rust-kvm-ioctls-0.16.0-1.rv64.fc39.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-kvm-ioctls.spec'], chrootPath='/var/lib/mock/f39-build-2380926-60457/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-kvm-ioctls.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1707350400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.grhaka + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kvm-ioctls-0.16.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/kvm-ioctls-0.16.0.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd kvm-ioctls-0.16.0 + rm -rf /builddir/build/BUILD/kvm-ioctls-0.16.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/kvm-ioctls-0.16.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + set -euo pipefail + /usr/bin/mkdir -p target/rpm + /usr/bin/ln -s rpm target/release + /usr/bin/rm -rf .cargo/ + /usr/bin/mkdir -p .cargo + cat + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.oEP14R + umask 022 + cd /builddir/build/BUILD + cd kvm-ioctls-0.16.0 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-kvm-ioctls-0.16.0-1.rv64.fc39.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-kvm-ioctls.spec'], chrootPath='/var/lib/mock/f39-build-2380926-60457/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-kvm-ioctls.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1707350400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.KoLX2S + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kvm-ioctls-0.16.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/kvm-ioctls-0.16.0.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd kvm-ioctls-0.16.0 + rm -rf /builddir/build/BUILD/kvm-ioctls-0.16.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/kvm-ioctls-0.16.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + set -euo pipefail + /usr/bin/mkdir -p target/rpm + /usr/bin/ln -s rpm target/release + /usr/bin/rm -rf .cargo/ + /usr/bin/mkdir -p .cargo + cat + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.wxjphW + umask 022 + cd /builddir/build/BUILD + cd kvm-ioctls-0.16.0 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-kvm-ioctls-0.16.0-1.rv64.fc39.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-kvm-ioctls.spec'], chrootPath='/var/lib/mock/f39-build-2380926-60457/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-kvm-ioctls.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1707350400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.Za9Ap5 + umask 022 + cd /builddir/build/BUILD + cd kvm-ioctls-0.16.0 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.0IaMtt + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd kvm-ioctls-0.16.0 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo build -j64 -Z avoid-dev-deps --profile rpm Compiling libc v0.2.152 Compiling bitflags v1.3.2 Compiling kvm-ioctls v0.16.0 (/builddir/build/BUILD/kvm-ioctls-0.16.0) Compiling bitflags v2.4.1 Running `/usr/bin/rustc --crate-name build_script_build /usr/share/cargo/registry/libc-0.2.152/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=800b9a9fb574023d -C extra-filename=-800b9a9fb574023d --out-dir /builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/build/libc-800b9a9fb574023d -L dependency=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name bitflags --edition=2018 /usr/share/cargo/registry/bitflags-1.3.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' -C metadata=052f2961673cff32 -C extra-filename=-052f2961673cff32 --out-dir /builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name build_script_build --edition=2021 build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C metadata=4f749bcbbbf581e8 -C extra-filename=-4f749bcbbbf581e8 --out-dir /builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/build/kvm-ioctls-4f749bcbbbf581e8 -L dependency=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name bitflags --edition=2021 /usr/share/cargo/registry/bitflags-2.4.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 -C metadata=03140c220fd56372 -C extra-filename=-03140c220fd56372 --out-dir /builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/build/kvm-ioctls-4f749bcbbbf581e8/build-script-build` Running `/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/build/libc-800b9a9fb574023d/build-script-build` Running `/usr/bin/rustc --crate-name libc /usr/share/cargo/registry/libc-0.2.152/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=b1e001a1acba1049 -C extra-filename=-b1e001a1acba1049 --out-dir /builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_int128 --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor --cfg libc_non_exhaustive --cfg libc_long_array --cfg libc_ptr_addr_of --cfg libc_underscore_const_names --cfg libc_const_extern_fn` Compiling vmm-sys-util v0.12.1 Running `/usr/bin/rustc --crate-name vmm_sys_util --edition=2021 /usr/share/cargo/registry/vmm-sys-util-0.12.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 -C metadata=6811b6920da88132 -C extra-filename=-6811b6920da88132 --out-dir /builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps --extern bitflags=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps/libbitflags-052f2961673cff32.rmeta --extern libc=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps/liblibc-b1e001a1acba1049.rmeta --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Compiling kvm-bindings v0.7.0 Running `/usr/bin/rustc --crate-name kvm_bindings /usr/share/cargo/registry/kvm-bindings-0.7.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="fam-wrappers"' --cfg 'feature="vmm-sys-util"' -C metadata=e72ecfbc4252d6d6 -C extra-filename=-e72ecfbc4252d6d6 --out-dir /builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps --extern vmm_sys_util=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps/libvmm_sys_util-6811b6920da88132.rmeta --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name kvm_ioctls --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 -C metadata=d55cfbd22506a18d -C extra-filename=-d55cfbd22506a18d --out-dir /builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps --extern bitflags=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps/libbitflags-03140c220fd56372.rmeta --extern kvm_bindings=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps/libkvm_bindings-e72ecfbc4252d6d6.rmeta --extern libc=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps/liblibc-b1e001a1acba1049.rmeta --extern vmm_sys_util=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps/libvmm_sys_util-6811b6920da88132.rmeta -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` error[E0432]: unresolved imports `kvm_bindings::kvm_coalesced_mmio`, `kvm_bindings::kvm_coalesced_mmio_ring`, `kvm_bindings::kvm_run`, `kvm_bindings::KVM_COALESCED_MMIO_PAGE_OFFSET` --> src/ioctls/mod.rs:13:5 | 13 | kvm_coalesced_mmio, kvm_coalesced_mmio_ring, kvm_run, KVM_COALESCED_MMIO_PAGE_OFFSET, | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `KVM_COALESCED_MMIO_PAGE_OFFSET` in the root | | | | | | | no `kvm_run` in the root | | no `kvm_coalesced_mmio_ring` in the root | no `kvm_coalesced_mmio` in the root error[E0432]: unresolved import `kvm_bindings::kvm_device_attr` --> src/ioctls/device.rs:9:5 | 9 | use kvm_bindings::kvm_device_attr; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `kvm_device_attr` in the root error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:14:35 | 14 | ioctl_io_nr!(KVM_GET_API_VERSION, KVMIO, 0x00); | ^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:15:29 | 15 | ioctl_io_nr!(KVM_CREATE_VM, KVMIO, 0x01); | ^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:18:35 | 18 | ioctl_io_nr!(KVM_CHECK_EXTENSION, KVMIO, 0x03); | ^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:19:38 | 19 | ioctl_io_nr!(KVM_GET_VCPU_MMAP_SIZE, KVMIO, 0x04); | ^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:32:31 | 32 | ioctl_io_nr!(KVM_CREATE_VCPU, KVMIO, 0x41); | ^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:33:34 | 33 | ioctl_iow_nr!(KVM_GET_DIRTY_LOG, KVMIO, 0x42, kvm_dirty_log); | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_dirty_log` in this scope --> src/kvm_ioctls.rs:33:47 | 33 | ioctl_iow_nr!(KVM_GET_DIRTY_LOG, KVMIO, 0x42, kvm_dirty_log); | ^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:37:5 | 37 | KVMIO, | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_userspace_memory_region` in this scope --> src/kvm_ioctls.rs:39:5 | 39 | kvm_userspace_memory_region | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:67:5 | 67 | KVMIO, | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_coalesced_mmio_zone` in this scope --> src/kvm_ioctls.rs:69:5 | 69 | kvm_coalesced_mmio_zone | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:74:5 | 74 | KVMIO, | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_coalesced_mmio_zone` in this scope --> src/kvm_ioctls.rs:76:5 | 76 | kvm_coalesced_mmio_zone | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:99:30 | 99 | ioctl_iow_nr!(KVM_IOEVENTFD, KVMIO, 0x79, kvm_ioeventfd); | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_ioeventfd` in this scope --> src/kvm_ioctls.rs:99:43 | 99 | ioctl_iow_nr!(KVM_IOEVENTFD, KVMIO, 0x79, kvm_ioeventfd); | ^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:130:23 | 130 | ioctl_io_nr!(KVM_RUN, KVMIO, 0x80); | ^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:132:29 | 132 | ioctl_ior_nr!(KVM_GET_REGS, KVMIO, 0x81, kvm_regs); | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_regs` in this scope --> src/kvm_ioctls.rs:132:42 | 132 | ioctl_ior_nr!(KVM_GET_REGS, KVMIO, 0x81, kvm_regs); | ^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:134:29 | 134 | ioctl_iow_nr!(KVM_SET_REGS, KVMIO, 0x82, kvm_regs); | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_regs` in this scope --> src/kvm_ioctls.rs:134:42 | 134 | ioctl_iow_nr!(KVM_SET_REGS, KVMIO, 0x82, kvm_regs); | ^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:239:31 | 239 | ioctl_iow_nr!(KVM_ENABLE_CAP, KVMIO, 0xa3, kvm_enable_cap); | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_enable_cap` in this scope --> src/kvm_ioctls.rs:239:44 | 239 | ioctl_iow_nr!(KVM_ENABLE_CAP, KVMIO, 0xa3, kvm_enable_cap); | ^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:269:36 | 269 | ioctl_iow_nr!(KVM_SET_GUEST_DEBUG, KVMIO, 0x9b, kvm_guest_debug); | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_guest_debug` in this scope --> src/kvm_ioctls.rs:269:49 | 269 | ioctl_iow_nr!(KVM_SET_GUEST_DEBUG, KVMIO, 0x9b, kvm_guest_debug); | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:274:35 | 274 | ioctl_iowr_nr!(KVM_CREATE_DEVICE, KVMIO, 0xe0, kvm_create_device); | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_create_device` in this scope --> src/kvm_ioctls.rs:274:48 | 274 | ioctl_iowr_nr!(KVM_CREATE_DEVICE, KVMIO, 0xe0, kvm_create_device); | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:276:36 | 276 | ioctl_iow_nr!(KVM_SET_DEVICE_ATTR, KVMIO, 0xe1, kvm_device_attr); | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_device_attr` in this scope --> src/kvm_ioctls.rs:276:49 | 276 | ioctl_iow_nr!(KVM_SET_DEVICE_ATTR, KVMIO, 0xe1, kvm_device_attr); | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:278:36 | 278 | ioctl_iow_nr!(KVM_GET_DEVICE_ATTR, KVMIO, 0xe2, kvm_device_attr); | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_device_attr` in this scope --> src/kvm_ioctls.rs:278:49 | 278 | ioctl_iow_nr!(KVM_GET_DEVICE_ATTR, KVMIO, 0xe2, kvm_device_attr); | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVMIO` in this scope --> src/kvm_ioctls.rs:280:36 | 280 | ioctl_iow_nr!(KVM_HAS_DEVICE_ATTR, KVMIO, 0xe3, kvm_device_attr); | ^^^^^ not found in this scope error[E0412]: cannot find type `kvm_device_attr` in this scope --> src/kvm_ioctls.rs:280:49 | 280 | ioctl_iow_nr!(KVM_HAS_DEVICE_ATTR, KVMIO, 0xe3, kvm_device_attr); | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IRQCHIP` in this scope --> src/cap.rs:25:15 | 25 | Irqchip = KVM_CAP_IRQCHIP, | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_HLT` in this scope --> src/cap.rs:26:11 | 26 | Hlt = KVM_CAP_HLT, | ^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_MMU_SHADOW_CACHE_CONTROL` in this scope --> src/cap.rs:27:29 | 27 | MmuShadowCacheControl = KVM_CAP_MMU_SHADOW_CACHE_CONTROL, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_USER_MEMORY` in this scope --> src/cap.rs:28:18 | 28 | UserMemory = KVM_CAP_USER_MEMORY, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_SET_TSS_ADDR` in this scope --> src/cap.rs:29:18 | 29 | SetTssAddr = KVM_CAP_SET_TSS_ADDR, | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_VAPIC` in this scope --> src/cap.rs:30:13 | 30 | Vapic = KVM_CAP_VAPIC, | ^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_EXT_CPUID` in this scope --> src/cap.rs:31:16 | 31 | ExtCpuid = KVM_CAP_EXT_CPUID, | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_CLOCKSOURCE` in this scope --> src/cap.rs:32:19 | 32 | Clocksource = KVM_CAP_CLOCKSOURCE, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_NR_VCPUS` in this scope --> src/cap.rs:33:15 | 33 | NrVcpus = KVM_CAP_NR_VCPUS, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_NR_MEMSLOTS` in this scope --> src/cap.rs:34:18 | 34 | NrMemslots = KVM_CAP_NR_MEMSLOTS, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PIT` in this scope --> src/cap.rs:35:11 | 35 | Pit = KVM_CAP_PIT, | ^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_NOP_IO_DELAY` in this scope --> src/cap.rs:36:18 | 36 | NopIoDelay = KVM_CAP_NOP_IO_DELAY, | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PV_MMU` in this scope --> src/cap.rs:37:13 | 37 | PvMmu = KVM_CAP_PV_MMU, | ^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_MP_STATE` in this scope --> src/cap.rs:38:15 | 38 | MpState = KVM_CAP_MP_STATE, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_COALESCED_MMIO` in this scope --> src/cap.rs:39:21 | 39 | CoalescedMmio = KVM_CAP_COALESCED_MMIO, | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_SYNC_MMU` in this scope --> src/cap.rs:40:15 | 40 | SyncMmu = KVM_CAP_SYNC_MMU, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IOMMU` in this scope --> src/cap.rs:41:13 | 41 | Iommu = KVM_CAP_IOMMU, | ^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_DESTROY_MEMORY_REGION_WORKS` in this scope --> src/cap.rs:42:32 | 42 | DestroyMemoryRegionWorks = KVM_CAP_DESTROY_MEMORY_REGION_WORKS, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_USER_NMI` in this scope --> src/cap.rs:43:15 | 43 | UserNmi = KVM_CAP_USER_NMI, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IRQ_ROUTING` in this scope --> src/cap.rs:54:18 | 54 | IrqRouting = KVM_CAP_IRQ_ROUTING, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IRQ_INJECT_STATUS` in this scope --> src/cap.rs:55:23 | 55 | IrqInjectStatus = KVM_CAP_IRQ_INJECT_STATUS, | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ASSIGN_DEV_IRQ` in this scope --> src/cap.rs:56:20 | 56 | AssignDevIrq = KVM_CAP_ASSIGN_DEV_IRQ, | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_JOIN_MEMORY_REGIONS_WORKS` in this scope --> src/cap.rs:57:30 | 57 | JoinMemoryRegionsWorks = KVM_CAP_JOIN_MEMORY_REGIONS_WORKS, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IRQFD` in this scope --> src/cap.rs:60:13 | 60 | Irqfd = KVM_CAP_IRQFD, | ^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_SET_BOOT_CPU_ID` in this scope --> src/cap.rs:63:20 | 63 | SetBootCpuId = KVM_CAP_SET_BOOT_CPU_ID, | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IOEVENTFD` in this scope --> src/cap.rs:66:17 | 66 | Ioeventfd = KVM_CAP_IOEVENTFD, | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_SET_IDENTITY_MAP_ADDR` in this scope --> src/cap.rs:67:26 | 67 | SetIdentityMapAddr = KVM_CAP_SET_IDENTITY_MAP_ADDR, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ADJUST_CLOCK` in this scope --> src/cap.rs:70:19 | 70 | AdjustClock = KVM_CAP_ADJUST_CLOCK, | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_INTERNAL_ERROR_DATA` in this scope --> src/cap.rs:71:25 | 71 | InternalErrorData = KVM_CAP_INTERNAL_ERROR_DATA, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_S390_PSW` in this scope --> src/cap.rs:79:15 | 79 | S390Psw = KVM_CAP_S390_PSW, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_SEGSTATE` in this scope --> src/cap.rs:80:19 | 80 | PpcSegstate = KVM_CAP_PPC_SEGSTATE, | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_HYPERV` in this scope --> src/cap.rs:81:14 | 81 | Hyperv = KVM_CAP_HYPERV, | ^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_HYPERV_VAPIC` in this scope --> src/cap.rs:82:19 | 82 | HypervVapic = KVM_CAP_HYPERV_VAPIC, | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_HYPERV_SPIN` in this scope --> src/cap.rs:83:18 | 83 | HypervSpin = KVM_CAP_HYPERV_SPIN, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PCI_SEGMENT` in this scope --> src/cap.rs:84:18 | 84 | PciSegment = KVM_CAP_PCI_SEGMENT, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_PAIRED_SINGLES` in this scope --> src/cap.rs:85:24 | 85 | PpcPairedSingles = KVM_CAP_PPC_PAIRED_SINGLES, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_INTR_SHADOW` in this scope --> src/cap.rs:86:18 | 86 | IntrShadow = KVM_CAP_INTR_SHADOW, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_X86_ROBUST_SINGLESTEP` in this scope --> src/cap.rs:89:27 | 89 | X86RobustSinglestep = KVM_CAP_X86_ROBUST_SINGLESTEP, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_OSI` in this scope --> src/cap.rs:90:14 | 90 | PpcOsi = KVM_CAP_PPC_OSI, | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_UNSET_IRQ` in this scope --> src/cap.rs:91:19 | 91 | PpcUnsetIrq = KVM_CAP_PPC_UNSET_IRQ, | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ENABLE_CAP` in this scope --> src/cap.rs:92:17 | 92 | EnableCap = KVM_CAP_ENABLE_CAP, | ^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_GET_PVINFO` in this scope --> src/cap.rs:97:20 | 97 | PpcGetPvinfo = KVM_CAP_PPC_GET_PVINFO, | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_IRQ_LEVEL` in this scope --> src/cap.rs:98:19 | 98 | PpcIrqLevel = KVM_CAP_PPC_IRQ_LEVEL, | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ASYNC_PF` in this scope --> src/cap.rs:99:15 | 99 | AsyncPf = KVM_CAP_ASYNC_PF, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_TSC_CONTROL` in this scope --> src/cap.rs:100:18 | 100 | TscControl = KVM_CAP_TSC_CONTROL, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_GET_TSC_KHZ` in this scope --> src/cap.rs:101:17 | 101 | GetTscKhz = KVM_CAP_GET_TSC_KHZ, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_BOOKE_SREGS` in this scope --> src/cap.rs:102:21 | 102 | PpcBookeSregs = KVM_CAP_PPC_BOOKE_SREGS, | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_SPAPR_TCE` in this scope --> src/cap.rs:103:16 | 103 | SpaprTce = KVM_CAP_SPAPR_TCE, | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_SMT` in this scope --> src/cap.rs:104:14 | 104 | PpcSmt = KVM_CAP_PPC_SMT, | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_RMA` in this scope --> src/cap.rs:105:14 | 105 | PpcRma = KVM_CAP_PPC_RMA, | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_MAX_VCPUS` in this scope --> src/cap.rs:106:16 | 106 | MaxVcpus = KVM_CAP_MAX_VCPUS, | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_MAX_VCPU_ID` in this scope --> src/cap.rs:107:17 | 107 | MaxVcpuId = KVM_CAP_MAX_VCPU_ID, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_HIOR` in this scope --> src/cap.rs:108:15 | 108 | PpcHior = KVM_CAP_PPC_HIOR, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_PAPR` in this scope --> src/cap.rs:109:15 | 109 | PpcPapr = KVM_CAP_PPC_PAPR, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_SW_TLB` in this scope --> src/cap.rs:110:13 | 110 | SwTlb = KVM_CAP_SW_TLB, | ^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ONE_REG` in this scope --> src/cap.rs:111:14 | 111 | OneReg = KVM_CAP_ONE_REG, | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_S390_GMAP` in this scope --> src/cap.rs:112:16 | 112 | S390Gmap = KVM_CAP_S390_GMAP, | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_TSC_DEADLINE_TIMER` in this scope --> src/cap.rs:113:24 | 113 | TscDeadlineTimer = KVM_CAP_TSC_DEADLINE_TIMER, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_S390_UCONTROL` in this scope --> src/cap.rs:114:20 | 114 | S390Ucontrol = KVM_CAP_S390_UCONTROL, | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_SYNC_REGS` in this scope --> src/cap.rs:115:16 | 115 | SyncRegs = KVM_CAP_SYNC_REGS, | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PCI_2_3` in this scope --> src/cap.rs:116:13 | 116 | Pci23 = KVM_CAP_PCI_2_3, | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_KVMCLOCK_CTRL` in this scope --> src/cap.rs:117:20 | 117 | KvmclockCtrl = KVM_CAP_KVMCLOCK_CTRL, | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_SIGNAL_MSI` in this scope --> src/cap.rs:118:17 | 118 | SignalMsi = KVM_CAP_SIGNAL_MSI, | ^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_GET_SMMU_INFO` in this scope --> src/cap.rs:119:22 | 119 | PpcGetSmmuInfo = KVM_CAP_PPC_GET_SMMU_INFO, | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_S390_COW` in this scope --> src/cap.rs:120:15 | 120 | S390Cow = KVM_CAP_S390_COW, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_ALLOC_HTAB` in this scope --> src/cap.rs:121:20 | 121 | PpcAllocHtab = KVM_CAP_PPC_ALLOC_HTAB, | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_READONLY_MEM` in this scope --> src/cap.rs:122:19 | 122 | ReadonlyMem = KVM_CAP_READONLY_MEM, | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IRQFD_RESAMPLE` in this scope --> src/cap.rs:123:21 | 123 | IrqfdResample = KVM_CAP_IRQFD_RESAMPLE, | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_BOOKE_WATCHDOG` in this scope --> src/cap.rs:124:24 | 124 | PpcBookeWatchdog = KVM_CAP_PPC_BOOKE_WATCHDOG, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_HTAB_FD` in this scope --> src/cap.rs:125:17 | 125 | PpcHtabFd = KVM_CAP_PPC_HTAB_FD, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_S390_CSS_SUPPORT` in this scope --> src/cap.rs:126:22 | 126 | S390CssSupport = KVM_CAP_S390_CSS_SUPPORT, | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_EPR` in this scope --> src/cap.rs:127:14 | 127 | PpcEpr = KVM_CAP_PPC_EPR, | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ARM_PSCI` in this scope --> src/cap.rs:128:15 | 128 | ArmPsci = KVM_CAP_ARM_PSCI, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ARM_SET_DEVICE_ADDR` in this scope --> src/cap.rs:129:24 | 129 | ArmSetDeviceAddr = KVM_CAP_ARM_SET_DEVICE_ADDR, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_DEVICE_CTRL` in this scope --> src/cap.rs:130:18 | 130 | DeviceCtrl = KVM_CAP_DEVICE_CTRL, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IRQ_MPIC` in this scope --> src/cap.rs:131:15 | 131 | IrqMpic = KVM_CAP_IRQ_MPIC, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_RTAS` in this scope --> src/cap.rs:132:15 | 132 | PpcRtas = KVM_CAP_PPC_RTAS, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IRQ_XICS` in this scope --> src/cap.rs:133:15 | 133 | IrqXics = KVM_CAP_IRQ_XICS, | ^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ARM_EL1_32BIT` in this scope --> src/cap.rs:134:19 | 134 | ArmEl132bit = KVM_CAP_ARM_EL1_32BIT, | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_SPAPR_MULTITCE` in this scope --> src/cap.rs:135:21 | 135 | SpaprMultitce = KVM_CAP_SPAPR_MULTITCE, | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_EXT_EMUL_CPUID` in this scope --> src/cap.rs:136:20 | 136 | ExtEmulCpuid = KVM_CAP_EXT_EMUL_CPUID, | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_HYPERV_TIME` in this scope --> src/cap.rs:137:18 | 137 | HypervTime = KVM_CAP_HYPERV_TIME, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IOAPIC_POLARITY_IGNORED` in this scope --> src/cap.rs:138:29 | 138 | IoapicPolarityIgnored = KVM_CAP_IOAPIC_POLARITY_IGNORED, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ENABLE_CAP_VM` in this scope --> src/cap.rs:139:19 | 139 | EnableCapVm = KVM_CAP_ENABLE_CAP_VM, | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_S390_IRQCHIP` in this scope --> src/cap.rs:140:19 | 140 | S390Irqchip = KVM_CAP_S390_IRQCHIP, | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IOEVENTFD_NO_LENGTH` in this scope --> src/cap.rs:141:25 | 141 | IoeventfdNoLength = KVM_CAP_IOEVENTFD_NO_LENGTH, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_VM_ATTRIBUTES` in this scope --> src/cap.rs:142:20 | 142 | VmAttributes = KVM_CAP_VM_ATTRIBUTES, | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ARM_PSCI_0_2` in this scope --> src/cap.rs:143:17 | 143 | ArmPsci02 = KVM_CAP_ARM_PSCI_0_2, | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_FIXUP_HCALL` in this scope --> src/cap.rs:144:21 | 144 | PpcFixupHcall = KVM_CAP_PPC_FIXUP_HCALL, | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_PPC_ENABLE_HCALL` in this scope --> src/cap.rs:145:22 | 145 | PpcEnableHcall = KVM_CAP_PPC_ENABLE_HCALL, | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_CHECK_EXTENSION_VM` in this scope --> src/cap.rs:146:24 | 146 | CheckExtensionVm = KVM_CAP_CHECK_EXTENSION_VM, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_S390_USER_SIGP` in this scope --> src/cap.rs:147:20 | 147 | S390UserSigp = KVM_CAP_S390_USER_SIGP, | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ARM_PMU_V3` in this scope --> src/cap.rs:152:16 | 152 | ArmPmuV3 = KVM_CAP_ARM_PMU_V3, | ^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IMMEDIATE_EXIT` in this scope --> src/cap.rs:153:21 | 153 | ImmediateExit = KVM_CAP_IMMEDIATE_EXIT, | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_ARM_VM_IPA_SIZE` in this scope --> src/cap.rs:154:20 | 154 | ArmVmIPASize = KVM_CAP_ARM_VM_IPA_SIZE, | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_MSI_DEVID` in this scope --> src/cap.rs:155:16 | 155 | MsiDevid = KVM_CAP_MSI_DEVID, | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_HYPERV_SYNIC` in this scope --> src/cap.rs:156:19 | 156 | HypervSynic = KVM_CAP_HYPERV_SYNIC, | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_HYPERV_SYNIC2` in this scope --> src/cap.rs:157:20 | 157 | HypervSynic2 = KVM_CAP_HYPERV_SYNIC2, | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_GUEST_DEBUG_HW_BPS` in this scope --> src/cap.rs:158:18 | 158 | DebugHwBps = KVM_CAP_GUEST_DEBUG_HW_BPS, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_GUEST_DEBUG_HW_WPS` in this scope --> src/cap.rs:159:18 | 159 | DebugHwWps = KVM_CAP_GUEST_DEBUG_HW_WPS, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_GET_MSR_FEATURES` in this scope --> src/cap.rs:160:22 | 160 | GetMsrFeatures = KVM_CAP_GET_MSR_FEATURES, | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_COALESCED_PIO` in this scope --> src/cap.rs:161:20 | 161 | CoalescedPio = KVM_CAP_COALESCED_PIO, | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_MSR_EXIT_REASON_UNKNOWN` in this scope --> src/ioctls/vcpu.rs:70:25 | 70 | const Unknown = KVM_MSR_EXIT_REASON_UNKNOWN; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_MSR_EXIT_REASON_INVAL` in this scope --> src/ioctls/vcpu.rs:73:23 | 73 | const Inval = KVM_MSR_EXIT_REASON_INVAL; | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_MSR_EXIT_REASON_FILTER` in this scope --> src/ioctls/vcpu.rs:76:24 | 76 | const Filter = KVM_MSR_EXIT_REASON_FILTER; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `kvm_debug_exit_arch` in this scope --> src/ioctls/vcpu.rs:109:11 | 109 | Debug(kvm_debug_exit_arch), | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `kvm_regs` in this scope --> src/ioctls/vcpu.rs:210:38 | 210 | pub fn get_regs(&self) -> Result { | ^^^^^^^^ not found in this scope | help: you might be missing a type parameter | 191 | impl VcpuFd { | ++++++++++ error[E0412]: cannot find type `kvm_regs` in this scope --> src/ioctls/vcpu.rs:329:35 | 329 | pub fn set_regs(&self, regs: &kvm_regs) -> Result<()> { | ^^^^^^^^ not found in this scope error[E0412]: cannot find type `kvm_run` in this scope --> src/ioctls/vcpu.rs:1443:49 | 1443 | let run_start = run as *mut kvm_run as *mut u8; | ^^^^^^^ not found in this scope error[E0412]: cannot find type `kvm_run` in this scope --> src/ioctls/vcpu.rs:1557:43 | 1557 | pub fn get_kvm_run(&mut self) -> &mut kvm_run { | ^^^^^^^ not found in this scope error[E0412]: cannot find type `kvm_coalesced_mmio` in this scope --> src/ioctls/vcpu.rs:1897:60 | 1897 | pub fn coalesced_mmio_read(&mut self) -> Result> { | ^^^^^^^^^^^^^^^^^^ not found in this scope | help: you might be missing a type parameter | 191 | impl VcpuFd { | ++++++++++++++++++++ error[E0412]: cannot find type `kvm_userspace_memory_region` in this scope --> src/ioctls/vm.rs:104:29 | 104 | user_memory_region: kvm_userspace_memory_region, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `kvm_ioeventfd_flag_nr_datamatch` in this scope --> src/ioctls/vm.rs:589:27 | 589 | flags |= 1 << kvm_ioeventfd_flag_nr_datamatch | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `kvm_ioeventfd_flag_nr_pio` in this scope --> src/ioctls/vm.rs:592:27 | 592 | flags |= 1 << kvm_ioeventfd_flag_nr_pio | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0422]: cannot find struct, variant or union type `kvm_ioeventfd` in this scope --> src/ioctls/vm.rs:595:25 | 595 | let ioeventfd = kvm_ioeventfd { | ^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `kvm_ioeventfd_flag_nr_deassign` in this scope --> src/ioctls/vm.rs:663:30 | 663 | let mut flags = 1 << kvm_ioeventfd_flag_nr_deassign; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `kvm_ioeventfd_flag_nr_datamatch` in this scope --> src/ioctls/vm.rs:665:27 | 665 | flags |= 1 << kvm_ioeventfd_flag_nr_datamatch | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `kvm_ioeventfd_flag_nr_pio` in this scope --> src/ioctls/vm.rs:668:27 | 668 | flags |= 1 << kvm_ioeventfd_flag_nr_pio | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0422]: cannot find struct, variant or union type `kvm_ioeventfd` in this scope --> src/ioctls/vm.rs:671:25 | 671 | let ioeventfd = kvm_ioeventfd { | ^^^^^^^^^^^^^ not found in this scope error[E0422]: cannot find struct, variant or union type `kvm_dirty_log` in this scope --> src/ioctls/vm.rs:824:24 | 824 | let dirtylog = kvm_dirty_log { | ^^^^^^^^^^^^^ not found in this scope error[E0422]: cannot find struct, variant or union type `kvm_dirty_log__bindgen_ty_1` in this scope --> src/ioctls/vm.rs:827:31 | 827 | __bindgen_anon_1: kvm_dirty_log__bindgen_ty_1 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `kvm_create_device` in this scope --> src/ioctls/vm.rs:1191:46 | 1191 | pub fn create_device(&self, device: &mut kvm_create_device) -> Result { | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `kvm_enable_cap` in this scope --> src/ioctls/vm.rs:1280:36 | 1280 | pub fn enable_cap(&self, cap: &kvm_enable_cap) -> Result<()> { | ^^^^^^^^^^^^^^ not found in this scope error[E0422]: cannot find struct, variant or union type `kvm_coalesced_mmio_zone` in this scope --> src/ioctls/vm.rs:1587:24 | 1587 | let mut zone = kvm_coalesced_mmio_zone { | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0422]: cannot find struct, variant or union type `kvm_coalesced_mmio_zone` in this scope --> src/ioctls/vm.rs:1612:24 | 1612 | let mut zone = kvm_coalesced_mmio_zone { | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope warning: unused import: `kvm_bindings::*` --> src/kvm_ioctls.rs:10:5 | 10 | use kvm_bindings::*; | ^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `kvm_bindings::*` --> src/cap.rs:8:5 | 8 | use kvm_bindings::*; | ^^^^^^^^^^^^^^^ warning: unused import: `kvm_bindings::*` --> src/ioctls/vcpu.rs:8:5 | 8 | use kvm_bindings::*; | ^^^^^^^^^^^^^^^ warning: unused import: `kvm_bindings::*` --> src/ioctls/vm.rs:8:5 | 8 | use kvm_bindings::*; | ^^^^^^^^^^^^^^^ warning: unused import: `c_int` --> src/ioctls/vm.rs:11:20 | 11 | use std::os::raw::{c_int, c_ulong}; | ^^^^^ warning: unused imports: `ioctl_with_mut_ref`, `ioctl` --> src/ioctls/vm.rs:25:27 | 25 | use vmm_sys_util::ioctl::{ioctl, ioctl_with_mut_ref, ioctl_with_ref, ioctl_with_val}; | ^^^^^ ^^^^^^^^^^^^^^^^^^ error[E0433]: failed to resolve: use of undeclared crate or module `kvm_regs` --> src/ioctls/vcpu.rs:211:24 | 211 | let mut regs = kvm_regs::default(); | ^^^^^^^^ use of undeclared crate or module `kvm_regs` Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433. For more information about an error, try `rustc --explain E0412`. warning: `kvm-ioctls` (lib) generated 6 warnings error: could not compile `kvm-ioctls` (lib) due to 160 previous errors; 6 warnings emitted Caused by: process didn't exit successfully: `/usr/bin/rustc --crate-name kvm_ioctls --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 -C metadata=d55cfbd22506a18d -C extra-filename=-d55cfbd22506a18d --out-dir /builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps --extern bitflags=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps/libbitflags-03140c220fd56372.rmeta --extern kvm_bindings=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps/libkvm_bindings-e72ecfbc4252d6d6.rmeta --extern libc=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps/liblibc-b1e001a1acba1049.rmeta --extern vmm_sys_util=/builddir/build/BUILD/kvm-ioctls-0.16.0/target/rpm/deps/libvmm_sys_util-6811b6920da88132.rmeta -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` (exit status: 1) warning: build failed, waiting for other jobs to finish... error: Bad exit status from /var/tmp/rpm-tmp.0IaMtt (%build) Bad exit status from /var/tmp/rpm-tmp.0IaMtt (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-kvm-ioctls.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-kvm-ioctls.spec'