docker run --device=/dev/kvm \ -it \ --security-opt seccomp=unconfined \ --volume $(pwd)/kvm-ioctls:/kvm-ioctls \ rustvmm/dev:v16 cd kvm-ioctls/ cargo test For more details about the integration tests that are run for kvm-ioctls, check the rust-vmm-ci readme.About...
The kvm-ioctls crate provides safe wrappers over theKVM API, a set of ioctls used for creating and configuring Virtual Machines (VMs) on Linux. The ioctls are accessible through four structures: Kvm- wrappers over system ioctls VmFd- wrappers over VM ioctls ...
1、Rust vmm社区kvm-ioctls和kvm-bindings发布版本长,其部分支持标准虚拟化特性已经合入主干分支,却未能及时发布release版本,影响StratoVirt标准虚拟化场景支持(友商目前也是直接使用主干分支而不等待release版本) 2、基于鲲鹏硬件构建竞争力向Rust vmm社区kvm-ioctls和kvm-bindings提交的patch,社区长时间未能合入,影响StratoV...
use ioctls::device::DeviceFd; use ioctls::vcpu::new_vcpu; use ioctls::vcpu::VcpuFd; use ioctls::{KvmRunWrapper, Result}; use kvm_ioctls::*; use vmm_sys_util::errno; use vmm_sys_util::eventfd::EventFd; use vmm_sys_util::ioctl::{ioctl, ioctl_with_m...
(vcpu); - rc = __kvm_s390_vcpu_store_status(vcpu, addr); - vcpu_put(vcpu); - return rc; -} - long kvm_arch_vcpu_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg) { struct kvm_vcpu *vcpu = filp->private_data; void __user *argp = (void __user *)arg; + ...
{ - case KVM_INTERRUPT: { + if (ioctl == KVM_INTERRUPT) { struct kvm_interrupt irq; r = -EFAULT; if (copy_from_user(&irq, argp, sizeof(irq))) - goto out; + goto out_nolock; r = kvm_vcpu_ioctl_interrupt(vcpu, &irq); - break; + goto out_nolock; } + + vcpu_load(...
The kvm-ioctls crate provides safe wrappers over the KVM API, a set of ioctls used for creating and configuring Virtual Machines (VMs) on Linux. The ioctls are accessible through four structures:Kvm - wrappers over system ioctls VmFd - wrappers over VM ioctls VcpuFd - wrappers over vCPU ioc...
Summary of the PR Update kvm-bindings from 0.9.0 to 0.10.0 Update kvm-ioctls from 0.18.0 to 0.19.0 Requirements Before submitting your PR, please make sure you addressed the following requirement...
kvm-bindings 0.10.0 incorporates RISC-V bindings. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>main (#33, rust-vmm/kvm-ioctls#278) TimePrinciple authored and roypat committed Sep 24, 2024 1 parent 8d824b9 commit d31e54b Showing 1 changed file with 1 addition and 1 deletion. ...
8 changes: 4 additions & 4 deletions 8 src/kvm_ioctls.rs Original file line numberDiff line numberDiff line change @@ -58,7 +58,7 @@ ioctl_iowr_nr!(KVM_CREATE_GUEST_MEMFD, KVMIO, 0xd4, kvm_create_guest_memfd); target_arch = "x86_64", target_arch = "arm", target_arch = ...