/cloud-hypervisor/scripts/ |
H A D | prepare_vdpa.sh | 4 … libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libibert… 26 # Create /dev/vhost-vdpa-0 27 sudo vdpa dev add name vdpa-blk1 mgmtdev vdpasim_blk 28 # Create /dev/vhost-vdpa-1 29 sudo vdpa dev add name vdpa-blk2 mgmtdev vdpasim_blk 30 # Create /dev/vhost-vdpa-2 31 sudo vdpa dev add name vdpa-net1 mgmtdev vdpasim_net 32 sudo chmod 660 /dev/vhost-vdpa-0 33 sudo chmod 660 /dev/vhost-vdpa-1 34 sudo chmod 660 /dev/vhost-vdpa-2 [all …]
|
H A D | dev_cli.sh | 121 # Make sure we're using the latest dev container, by just pulling it. 145 --volume /dev:/dev \ 228 exported_device="/dev/kvm" 279 exported_device="/dev/mshv" 340 exported_device="/dev/kvm" 389 exported_device="/dev/mshv" 416 --device /dev/net/tun \ 438 --volume /dev:/dev \ 462 --volume /dev:/dev \ 485 --volume /dev:/dev \ [all …]
|
H A D | run_integration_tests_aarch64.sh | 5 # shellcheck source=/dev/null 90 mount -t devtmpfs dev /dev 91 echo \$TEST_STRING > /dev/console 139 …guestmount -a "$WORKLOADS_DIR/$FOCAL_OS_RAW_IMAGE_UPDATE_KERNEL_NAME" -m /dev/sda1 "$FOCAL_OS_RAW_… 207 sudo chmod a+rwX /dev/hugepages
|
H A D | run_integration_tests_x86_64.sh | 5 # shellcheck source=/dev/null 84 mount -t devtmpfs dev /dev 85 echo \$TEST_STRING > /dev/console 168 sudo chmod a+rwX /dev/hugepages
|
H A D | build-custom-image.sh | 19 export ROOTFS=/dev/mapper/$(sudo kpartx -v -a $IMAGE_NAME_BASE.raw | grep "p1 " | cut -f 3 -d " ") 42 mount -t devpts devpts /dev/pts 49 umount /dev/pts
|
H A D | run_metrics.sh | 4 # shellcheck source=/dev/null 78 …guestmount -a "$WORKLOADS_DIR/$FOCAL_OS_RAW_IMAGE_UPDATE_TOOL_NAME" -m /dev/sda1 "$FOCAL_OS_RAW_IM… 98 sudo chmod a+rwX /dev/hugepages
|
H A D | check-image-compatibility.sh | 19 if ! command -v "$1" &>/dev/null; then 90 if lsmod | grep "nbd" &>/dev/null; then 101 dest_file=/dev/nbd0 194 qemu-nbd --disconnect "${dest_file}" >/dev/null
|
H A D | run_integration_tests_windows_aarch64.sh | 5 # shellcheck source=/dev/null 36 dmsetup create windows-snapshot-base --table "0 $img_blk_size snapshot-origin /dev/mapper/windows-b…
|
H A D | run_integration_tests_windows_x86_64.sh | 5 # shellcheck source=/dev/null 39 dmsetup create windows-snapshot-base --table "0 $img_blk_size snapshot-origin /dev/mapper/windows-b…
|
H A D | run_coverage.sh | 5 # shellcheck source=/dev/null 58 declare -f "export_$type" >/dev/null
|
/cloud-hypervisor/docs/ |
H A D | vdpa.md | 20 The official [website](https://vdpa-dev.gitlab.io/) contains some extensive 43 Path of the vDPA device. Usually `/dev/vhost-vdpa-X`. 52 --vdpa path=/dev/vhost-vdpa-0 66 --vdpa path=/dev/vhost-vdpa-0,num_queues=2 81 --vdpa path=/dev/vhost-vdpa-0,id=vdpa0 95 --vdpa path=/dev/vhost-vdpa-0,pci_segment=1 118 sudo vdpa dev add name vdpa-blk1 mgmtdev vdpasim_blk 119 sudo chown $USER:$USER /dev/vhost-vdpa-0 120 sudo chmod 660 /dev/vhost-vdpa-0 138 --cmdline "root=/dev/vda1 console=hvc0" \ [all …]
|
H A D | intel_sgx.md | 21 Assuming the host exposes `/dev/sgx_vepc`, we can pass SGX enclaves through 35 --cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw" \ 41 have been correctly created under `/dev/sgx`: 44 ls /dev/sgx* 45 /dev/sgx_enclave /dev/sgx_provision /dev/sgx_vepc 49 it will access `/dev/sgx_enclave` device to create dedicated SGX enclaves.
|
H A D | vhost-user-blk-testing.md | 96 --cmdline "console=ttyS0 root=/dev/vda1 rw iommu=off" \ 116 The vhost-user-blk device is /dev/vdb 119 dd if=/dev/vdb of=/dev/null bs=2M iflag=direct 120 dd of=/dev/vdb if=/dev/zero bs=2M oflag=direct count=256
|
H A D | vhost-user-net-testing.md | 93 --cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw" \ 102 --cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw" \ 110 sudo ip addr add 172.100.0.1/24 dev ens3 111 sudo ip link set up dev ens3 117 sudo ip addr add 172.100.0.2/24 dev ens3 118 sudo ip link set up dev ens3
|
H A D | macvtap-bridge.md | 18 tapdevice="/dev/tap$tapindex" 23 # Use --net fd=3 to point to fd 3 which the shell has opened to point to the /dev/tapN device 28 --cmdline "root=/dev/vda1 console=hvc0" \
|
H A D | virtiofs-root.md | 72 --fs tag=/dev/root,socket=$PWD/virtiofs-rootfs.sock \ 74 --cmdline "console=hvc0 rootfstype=virtiofs root=/dev/root ro debug" \ 80 Note: an important part of the above is the `tag=/dev/root` and 81 `root=/dev/root` parts. For whatever reason, it would only work with that as
|
H A D | tpm.md | 59 # ls /dev/tpm* 60 /dev/tpm0 /dev/tpmrm0 100 # ./configure --enable-integration --with-devicetests="mandatory,optional" --with-device=/dev/tpm0
|
H A D | iommu.md | 90 --cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw" \ 180 the VM RAM to be mapped on huge pages by backing it with `/dev/hugepages`. And 190 --cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw hugepagesz=2M hugepages=2048" \ 207 …--cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw kvm-intel.nested=1 vfio_iommu_type1.allow_… 228 --cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw" \ 250 --cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw" \
|
H A D | profiling.md | 26 --cmdline "root=/dev/pmem0p1 console=ttyS0" \ 53 --cmdline "root=/dev/pmem0p1 console=ttyS0" \
|
H A D | uefi.md | 15 sudo apt-get install uuid-dev nasm iasl build-essential python3-distutils git 37 $ sudo apt-get install uuid-dev nasm iasl build-essential python3-distutils git
|
H A D | intel_tdx.md | 47 sudo apt-get install uuid-dev nasm iasl build-essential python3-distutils git 142 --cmdline "root=/dev/vda3 console=hvc0 rw" 156 --cmdline "root=/dev/vda3 console=hvc0 rw"
|
/cloud-hypervisor/resources/ |
H A D | Dockerfile | 8 FROM ubuntu:24.04 AS dev 35 libssl-dev \ 39 libelf-dev \ 41 libglib2.0-dev \ 42 libpixman-1-dev \ 43 libseccomp-dev \ 44 libcap-ng-dev \ 51 uuid-dev \ 87 autotools-dev \ 95 # Fix the libssl-dev install
|
/cloud-hypervisor/virtio-devices/src/transport/ |
H A D | pci_common_config.rs | 459 let dev = Arc::new(Mutex::new(DummyDevice(0))); in write_base_regs() localVariable 463 regs.write(0x14, &[0x55], &mut queues, dev.clone()); in write_base_regs() 465 regs.read(0x14, &mut read_back, &queues, dev.clone()); in write_base_regs() 469 regs.write(0x15, &[0xaa], &mut queues, dev.clone()); in write_base_regs() 471 regs.read(0x15, &mut read_back, &queues, dev.clone()); in write_base_regs() 475 regs.write(0x04, &[0, 0, 0, 0], &mut queues, dev.clone()); in write_base_regs() 477 regs.read(0x04, &mut read_back, &queues, dev.clone()); in write_base_regs() 481 regs.write(0x00, &[1, 2, 3, 4], &mut queues, dev.clone()); in write_base_regs() 483 regs.read(0x00, &mut read_back, &queues, dev.clone()); in write_base_regs() 485 regs.write(0x08, &[1, 2, 3, 4], &mut queues, dev.clone()); in write_base_regs() [all …]
|
/cloud-hypervisor/test_data/cloud-init/ubuntu/ci/ |
H A D | user-data | 38 mount /dev/vdc /mnt 49 sudo chmod a+rwX /dev/hugepages 50 …nt/vmlinux-x86_64 --cmdline "console=hvc0 reboot=k panic=1 nomodules root=/dev/vda1 VFIOTAG" --dis… 76 echo -n "@DEFAULT_TCP_LISTENER_MESSAGE" > /dev/tcp/@HOST_IP/@TCP_LISTENER_PORT
|
/cloud-hypervisor/vm-device/src/ |
H A D | bus.rs | 133 let (range, dev) = devices in first_before() 136 dev.upgrade().map(|d| (*range, d.clone())) in first_before() 141 if let Some((range, dev)) = self.first_before(addr) { in resolve() 144 return Some((range.base, offset, dev)); in resolve() 221 let device = if let Some((_, _, dev)) = self.resolve(old_base) { in update_range() 222 dev.clone() in update_range() 238 if let Some((base, offset, dev)) = self.resolve(addr) { in read() 240 dev.read(base, offset, data); in read() 251 if let Some((base, offset, dev)) = self.resolve(addr) { in write() 253 Ok(dev.write(base, offset, data)) in write()
|