Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 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-2004006-44898/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=982gid=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=1698710400 Wrote: /builddir/build/SRPMS/rust-kvm-ioctls-0.15.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-2004006-44898/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=982gid=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=1698710400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.0S5MIO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kvm-ioctls-0.15.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/kvm-ioctls-0.15.0.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd kvm-ioctls-0.15.0 + rm -rf /builddir/build/BUILD/kvm-ioctls-0.15.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/kvm-ioctls-0.15.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.h6eogI + umask 022 + cd /builddir/build/BUILD + cd kvm-ioctls-0.15.0 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-kvm-ioctls-0.15.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-2004006-44898/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=982gid=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=1698710400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.efId4i + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kvm-ioctls-0.15.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/kvm-ioctls-0.15.0.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd kvm-ioctls-0.15.0 + rm -rf /builddir/build/BUILD/kvm-ioctls-0.15.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/kvm-ioctls-0.15.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.DrgboZ + umask 022 + cd /builddir/build/BUILD + cd kvm-ioctls-0.15.0 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-kvm-ioctls-0.15.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-2004006-44898/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=982gid=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=1698710400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.1QIQVS + umask 022 + cd /builddir/build/BUILD + cd kvm-ioctls-0.15.0 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.cyCnpS + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -flto=auto -ffat-lto-objects -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 -flto=auto -ffat-lto-objects -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 -flto=auto -ffat-lto-objects -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.15.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.150 Compiling bitflags v1.3.2 Compiling kvm-ioctls v0.15.0 (/builddir/build/BUILD/kvm-ioctls-0.15.0) Running `/usr/bin/rustc --crate-name build_script_build /usr/share/cargo/registry/libc-0.2.150/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=714be6a4480f9062 -C extra-filename=-714be6a4480f9062 --out-dir /builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/build/libc-714be6a4480f9062 -L dependency=/builddir/build/BUILD/kvm-ioctls-0.15.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.15.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.15.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=401c21684406b337 -C extra-filename=-401c21684406b337 --out-dir /builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/build/kvm-ioctls-401c21684406b337 -L dependency=/builddir/build/BUILD/kvm-ioctls-0.15.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 `/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/build/kvm-ioctls-401c21684406b337/build-script-build` Running `/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/build/libc-714be6a4480f9062/build-script-build` Running `/usr/bin/rustc --crate-name libc /usr/share/cargo/registry/libc-0.2.150/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=727a43331c17ed30 -C extra-filename=-727a43331c17ed30 --out-dir /builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.15.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.11.2 Running `/usr/bin/rustc --crate-name vmm_sys_util --edition=2021 /usr/share/cargo/registry/vmm-sys-util-0.11.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 -C metadata=4d57e62593b96e40 -C extra-filename=-4d57e62593b96e40 --out-dir /builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps --extern bitflags=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps/libbitflags-052f2961673cff32.rmeta --extern libc=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps/liblibc-727a43331c17ed30.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.6.0 Running `/usr/bin/rustc --crate-name kvm_bindings /usr/share/cargo/registry/kvm-bindings-0.6.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=c3b753ebcbef3174 -C extra-filename=-c3b753ebcbef3174 --out-dir /builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps --extern vmm_sys_util=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps/libvmm_sys_util-4d57e62593b96e40.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=1befc8c2ec52b347 -C extra-filename=-1befc8c2ec52b347 --out-dir /builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps --extern kvm_bindings=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps/libkvm_bindings-c3b753ebcbef3174.rmeta --extern libc=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps/liblibc-727a43331c17ed30.rmeta --extern vmm_sys_util=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps/libvmm_sys_util-4d57e62593b96e40.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 import `kvm_bindings::kvm_run` --> src/ioctls/mod.rs:11:5 | 11 | use kvm_bindings::kvm_run; | ^^^^^^^^^^^^^^^^^^^^^ no `kvm_run` 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:85:30 | 85 | 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:85:43 | 85 | 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:116:23 | 116 | 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:118:29 | 118 | 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:118:42 | 118 | 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:120:29 | 120 | 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:120:42 | 120 | 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:222:31 | 222 | 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:222:44 | 222 | 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:248:36 | 248 | 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:248:49 | 248 | 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:253:35 | 253 | 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:253:48 | 253 | 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:255:36 | 255 | 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:255:49 | 255 | 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:257:36 | 257 | 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:257:49 | 257 | 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:259:36 | 259 | 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:259:49 | 259 | 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_SET_GUEST_DEBUG` in this scope --> src/cap.rs:44:21 | 44 | SetGuestDebug = KVM_CAP_SET_GUEST_DEBUG, | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_IRQ_ROUTING` in this scope --> src/cap.rs:47:18 | 47 | 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:48:23 | 48 | 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:49:20 | 49 | 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:50:30 | 50 | 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:53:13 | 53 | 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:56:20 | 56 | 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:59:17 | 59 | 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:60:26 | 60 | 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:63:19 | 63 | 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:64:25 | 64 | 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:72:15 | 72 | 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:73:19 | 73 | PpcSegstate = KVM_CAP_PPC_SEGSTATE, | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_HYPERV` in this scope --> src/cap.rs:74:14 | 74 | Hyperv = KVM_CAP_HYPERV, | ^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `KVM_CAP_HYPERV_VAPIC` in this scope --> src/cap.rs:75:19 | 75 | 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:76:18 | 76 | 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:77:18 | 77 | 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:78:24 | 78 | 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:79:18 | 79 | 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:82:27 | 82 | 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:83:14 | 83 | 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:84:19 | 84 | 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:85:17 | 85 | 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:90:20 | 90 | 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:91:19 | 91 | 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:92:15 | 92 | 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:93:18 | 93 | 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:94:17 | 94 | 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:95:21 | 95 | 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:96:16 | 96 | 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:97:14 | 97 | 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:98:14 | 98 | 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:99:16 | 99 | 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:100:17 | 100 | 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:101:15 | 101 | 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:102:15 | 102 | 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:103:13 | 103 | 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:104:14 | 104 | 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:105:16 | 105 | 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:106:24 | 106 | 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:107:20 | 107 | 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:108:16 | 108 | 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:109:13 | 109 | 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:110:20 | 110 | 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:111:17 | 111 | 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:112:22 | 112 | 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:113:15 | 113 | 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:114:20 | 114 | 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:115:19 | 115 | 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:116:21 | 116 | 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:117:24 | 117 | 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:118:17 | 118 | 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:119:22 | 119 | 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:120:14 | 120 | 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:121:15 | 121 | 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:122:24 | 122 | 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:123:18 | 123 | 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:124:15 | 124 | 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:125:15 | 125 | 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:126:15 | 126 | 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:127:19 | 127 | 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:128:21 | 128 | 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:129:20 | 129 | 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:130:18 | 130 | 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:131:29 | 131 | 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:132:19 | 132 | 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:133:19 | 133 | 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:134:25 | 134 | 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:135:20 | 135 | 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:136:17 | 136 | 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:137:21 | 137 | 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:138:22 | 138 | 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:139:24 | 139 | 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:140:20 | 140 | 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:143:16 | 143 | 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:144:21 | 144 | 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:145:20 | 145 | 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:146:16 | 146 | 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:147:19 | 147 | 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:148:20 | 148 | 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:149:18 | 149 | 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:150:18 | 150 | 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:151:22 | 151 | GetMsrFeatures = KVM_CAP_GET_MSR_FEATURES, | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `kvm_debug_exit_arch` in this scope --> src/ioctls/vcpu.rs:57:11 | 57 | Debug(kvm_debug_exit_arch), | ^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `kvm_regs` in this scope --> src/ioctls/vcpu.rs:152:38 | 152 | pub fn get_regs(&self) -> Result { | ^^^^^^^^ not found in this scope | help: you might be missing a type parameter | 133 | impl VcpuFd { | ++++++++++ error[E0412]: cannot find type `kvm_regs` in this scope --> src/ioctls/vcpu.rs:271:35 | 271 | 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:1385:49 | 1385 | 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:1476:43 | 1476 | pub fn get_kvm_run(&mut self) -> &mut kvm_run { | ^^^^^^^ not found in this scope 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 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:153:24 | 153 | 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 150 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=1befc8c2ec52b347 -C extra-filename=-1befc8c2ec52b347 --out-dir /builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps -L dependency=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps --extern kvm_bindings=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps/libkvm_bindings-c3b753ebcbef3174.rmeta --extern libc=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps/liblibc-727a43331c17ed30.rmeta --extern vmm_sys_util=/builddir/build/BUILD/kvm-ioctls-0.15.0/target/rpm/deps/libvmm_sys_util-4d57e62593b96e40.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.cyCnpS (%build) Bad exit status from /var/tmp/rpm-tmp.cyCnpS (%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.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, 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