/openbmc/qemu/tests/qtest/ |
H A D | cdrom-test.c | 2 * Various tests for emulated CD-ROM drives. 10 * or later. See the COPYING file in the top-level directory. 15 #include "boot-sector.h" 18 static char isoimage[] = "cdrom-boot-iso-XXXXXX"; 23 gint exit_status = -1; in exec_xorrisofs() 30 return -ENOENT; in exec_xorrisofs() 42 char srcdir[] = "cdrom-test-dir-XXXXXX"; in prepare_image() 44 int ifh, ret = -1; in prepare_image() 46 "xorrisofs", "-quiet", "-l", "-no-emul-boot", in prepare_image() 47 "-b", NULL, "-o", isoimagepath, srcdir, NULL in prepare_image() [all …]
|
H A D | meson.build | 2 'ahci-test': 150, 3 'aspeed_smc-test': 360, 4 'bios-tables-test' : 910, 5 'cdrom-test' : 610, 6 'device-introspect-test' : 720, 7 'ide-test' : 120, 8 'migration-test' : 480, 9 'npcm7xx_pwm-test': 300, 10 'npcm7xx_watchdog_timer-test': 120, 11 'qmp-cmd-test' : 120, [all …]
|
H A D | ide-test.c | 2 * IDE test cases 30 #include "libqos/pci-pc.h" 31 #include "libqos/malloc-pc.h" 132 g_autofree char *full_fmt = g_strdup_printf("-machine pc %s", cmdline_fmt); in ide_test_start() 199 /* 2-byte range, 6-byte LBA */ in trim_range_le() 224 /* Assuming we only test data reads w/ ATAPI, otherwise we need to know in send_dma_request() 313 "-drive file=%s,if=ide,cache=writeback,format=raw " in test_bmdma_setup() 314 "-global ide-hd.serial=%s -global ide-hd.ver=%s", in test_bmdma_setup() 406 const uint64_t bad_range = trim_range_le(TEST_IMAGE_SIZE / 512 - 1, 2); in test_bmdma_trim() 451 * This test is developed according to the Programming Interface for [all …]
|
H A D | ahci-test.c | 2 * AHCI test cases 29 #include "libqos/libqos-pc.h" 31 #include "libqos/pci-pc.h" 34 #include "qemu/host-utils.h" 39 /* Test images sizes in MB */ 72 while (bytes--) { in string_bswap16() 88 ahci_fingerprint = qpci_config_readl(ahci->dev, PCI_VENDOR_ID); in verify_state() 89 g_assert_cmphex(ahci_fingerprint, ==, ahci->fingerprint); in verify_state() 92 if (!ahci->enabled) { in verify_state() 96 hba_base = (uint64_t)qpci_config_readl(ahci->dev, PCI_BASE_ADDRESS_5); in verify_state() [all …]
|
/openbmc/qemu/tests/functional/ |
H A D | test_netdev_ethtool.py | 5 # This test leverages ethtool's --test sequence to validate network 8 # SPDX-License-Identifier: GPL-2.0-or-later 19 # Fetch assets from the netdev-ethtool subdir of my shared test 22 'download?path=%2Fnetdev-ethtool&files=') 41 # any additional kernel tweaks for the test 46 append += ' init=/usr/sbin/ethtool -- -t eth1 offline' 48 # add the rootfs via a readonly cdrom image 49 drive = f"file={rootfs},if=ide,index=0,media=cdrom" 51 self.vm.add_args('-kernel', kernel, 52 '-append', append, [all …]
|
H A D | test_aarch64_sbsaref_alpine.py | 3 # Functional test that boots a kernel and checks the console 5 # SPDX-FileCopyrightText: 2023-2024 Linaro Ltd. 6 # SPDX-FileContributor: Philippe Mathieu-Daudé <philmd@linaro.org> 7 # SPDX-FileContributor: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> 9 # SPDX-License-Identifier: GPL-2.0-or-later 23 ('https://dl-cdn.alpinelinux.org/' 24 'alpine/v3.17/releases/aarch64/alpine-standard-3.17.2-aarch64.iso'), 29 # Other test profiles should use more minimal boots 37 "-drive", f"file={iso_path},media=cdrom,format=raw", 40 self.vm.add_args("-cpu", cpu) [all …]
|
H A D | test_alpha_clipper.py | 3 # Functional test that boots a Linux kernel on an Alpha Clipper machine 6 # SPDX-License-Identifier: GPL-2.0-or-later 18 'installer-alpha/20090123lenny10/images/cdrom/vmlinuz'), 30 self.vm.add_args('-nodefaults', 31 '-kernel', uncompressed_kernel, 32 '-append', kernel_command_line)
|
H A D | test_ppc_40p.py | 3 # Functional test that boots a PReP/40p machine and checks its serial console. 5 # Copyright (c) Philippe Mathieu-Daudé <f4bug@amsat.org> 8 # later. See the COPYING file in the top-level directory. 24 '7020-40p/P12H0456.IMG'), 27 ('https://archive.netbsd.org/pub/NetBSD-archive/' 28 'NetBSD-4.0/prep/installation/floppy/generic_com0.fs'), 31 ('https://archive.netbsd.org/pub/NetBSD-archive/' 32 'NetBSD-7.1.2/iso/NetBSD-7.1.2-prep.iso'), 38 # U.S. Government Users Restricted Rights - Use, duplication or disclosure 48 self.vm.add_args('-bios', bios_path, [all …]
|
H A D | test_acpi_bits.py | 23 # pylint: disable=invalid-name 24 # pylint: disable=consider-using-f-string 29 This test uses a fork of the upstream bits and has numerous fixes 31 https://gitlab.com/qemu-project/biosbits-bits . 55 deps = ["xorriso", "mformat"] # dependent tools needed in the test setup/box. 56 supported_platforms = ['x86_64'] # supported test platforms. 58 # default timeout of 120 secs is sometimes not enough for bits test. 73 """ returns True if any of the test dependent tools are absent. 81 """ checks if the test is running on a supported platform. 85 class QEMUBitsMachine(QEMUMachine): # pylint: disable=too-few-public-methods [all …]
|
H A D | test_aarch64_virt.py | 3 # Functional test that boots a various Linux systems and checks the 11 # SPDX-License-Identifier: GPL-2.0-or-later 29 failure_message='Kernel panic - not syncing', 33 ('https://dl-cdn.alpinelinux.org/' 34 'alpine/v3.17/releases/aarch64/alpine-standard-3.17.2-aarch64.iso'), 39 # Other test profiles should use more minimal boots 49 self.vm.add_args("-accel", "tcg") 50 self.vm.add_args("-cpu", "max,pauth-impdef=on") 51 self.vm.add_args("-machine", 55 "gic-version=max,iommu=smmuv3") [all …]
|
/openbmc/qemu/docs/system/ |
H A D | qemu-block-drivers.rst.inc | 5 any of the tools (like ``qemu-img``). This includes the preferred formats 10 ``qemu-img create`` and ``qemu-img convert`` using the ``-o`` option. 13 .. program:: image-formats 20 space. Use ``qemu-img info`` to know the real size used by the 21 image or ``ls -ls`` on Unix/Linux. 34 .. program:: image-formats 51 zero clusters, which allow efficient copy-on-read for sparse images. 69 use to unlock the LUKS key slot is given by the ``encrypt.key-secret`` 73 If this is set to ``aes``, the image is encrypted with 128-bit AES-CBC. 74 The encryption key is given by the ``encrypt.key-secret`` parameter. [all …]
|
H A D | device-url-syntax.rst.inc | 8 as images for the guest storage. Both disk and cdrom images are 12 "iscsi://<target-ip>[:<port>]/<target-iqn>/<lun>" 14 By default qemu will use the iSCSI initiator-name 15 'iqn.2008-11.org.linux-kvm[:<name>]' but this can also be set from 26 .. parsed-literal:: 28 |qemu_system| -iscsi initiator-name=iqn.2001-04.com.example:my-initiator \\ 29 -cdrom iscsi://192.0.2.1/iqn.2001-04.com.example/2 \\ 30 -drive file=iscsi://192.0.2.1/iqn.2001-04.com.example/1 34 .. parsed-literal:: 36 |qemu_system| -drive file=iscsi://user%password@192.0.2.1/iqn.2001-04.com.example/1 [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 140 | 4 # Test case for ejecting a BlockBackend with an NBD server attached to it 38 rm -f "$SOCK_DIR/nbd" 53 $QEMU_IO -c 'write -P 42 0 64k' "$TEST_IMG" | _filter_qemu_io 55 if test "$IMGOPTSSYNTAX" = "true" 57 SYSEMU_DRIVE_ARG=if=none,media=cdrom,id=drv,"$TEST_IMG" 59 SYSEMU_DRIVE_ARG=if=none,media=cdrom,id=drv,file="$TEST_IMG",driver=$IMGFMT 63 _launch_qemu -drive $SYSEMU_DRIVE_ARG \ 71 "{ 'execute': 'nbd-server-start', 77 "{ 'execute': 'nbd-server-add', 81 $QEMU_IO_PROG -f raw -r -c 'read -P 42 0 64k' \ [all …]
|
H A D | 186 | 4 # Test 'info block' with all kinds of configurations 42 _require_drivers null-co 43 _require_devices virtio-scsi-pci 54 if ! test -t 0; then 60 ) | $QEMU -S -display none -device virtio-scsi-pci -monitor stdio "$@" 2>&1 75 removable="floppy ide-cd scsi-cd" 76 fixed="ide-hd scsi-hd virtio-blk-pci" 83 check_info_block -device $dev 84 check_info_block -device $dev,id=qdev_id 88 echo "=== -blockdev/-device=<node-name> ===" [all …]
|
H A D | 051 | 4 # Test command line configuration of block devices and driver-specific options 42 # A compat=0.10 image is created in this test which does not support anything 57 if ! test -t 0; then 63 ) | $QEMU -nographic -monitor stdio -serial none "$@" 79 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT $size 85 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=,if=none,id=$device_id 86 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=on,if=none,id=$device_id 87 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=1234,if=none,id=$device_id 88 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=foo,if=none,id=$device_id 94 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt= [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/udev/udev-extraconf/ |
H A D | mount.sh | 7 BASE_INIT="`readlink -f "@base_sbindir@/init"`" 12 # systemd as init uses systemd-mount to mount block devices 13 MOUNT="/usr/bin/systemd-mount" 14 UMOUNT="/usr/bin/systemd-umount" 16 if [ -x $MOUNT ] && [ -x $UMOUNT ]; 18 logger "Using systemd-mount to finish mount" 20 logger "Linux init is using systemd, so please install systemd-mount to finish mount" 30 for line in `grep -h -v ^# /etc/udev/mount.ignorelist /etc/udev/mount.ignorelist.d/*` 32 if [ ` expr match "$DEVNAME" "$line" ` -gt 0 ]; 40 while read -r fs; do [all …]
|
/openbmc/qemu/docs/devel/testing/ |
H A D | blkverify.rst | 5 ------------ 7 This document describes how to use the ``blkverify`` protocol to test that a block 10 It is difficult to test and debug block drivers against real guests. Often 20 ------------ 22 The ``blkverify`` protocol has two child block devices, the "test" device and the 27 contents to the "test" image. The idea is that the "raw" device will handle 29 reference for comparison against the "test" device. 36 ------- 40 $ ./qemu-io -c 'read -v 0 512' raw.img 49 And test.img is corrupt, its first sector is zeroed when it shouldn't be:: [all …]
|
/openbmc/linux/Documentation/scsi/ |
H A D | scsi-changer.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 common small CD-ROM changers, neither one-lun-per-slot SCSI changers 19 ------------------- 24 later may be anything, a MOD, a CD-ROM, a tape or whatever. For the 29 The SCSI changer model is complex, compared to - for example - IDE-CD 42 CD-ROM / Tape / whatever drive. 46 123 CD-ROM's, 5 CD-ROM readers (and therefore 6 SCSI ID's: the changer 47 and each CD-ROM) and 2 transport arms. No problem to handle. 51 --------------------- 53 I implemented the driver as character device driver with a NetBSD-like [all …]
|
/openbmc/linux/Documentation/networking/device_drivers/ethernet/dlink/ |
H A D | dl2k.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 D-Link DL2000-based Gigabit Ethernet Adapter Installation 11 - Compatibility List 12 - Quick Install 13 - Compiling the Driver 14 - Installing the Driver 15 - Option parameter 16 - Configuration Script Sample 17 - Troubleshooting 25 - D-Link DGE-550T Gigabit Ethernet Adapter. [all …]
|
/openbmc/linux/Documentation/filesystems/ |
H A D | sharedsubtree.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 4) Use-case 19 ----------- 27 It provides the necessary building blocks for features like per-user-namespace 31 ----------- 49 mount --make-shared /mnt 51 Note: mount(8) command now supports the --make-shared flag, 57 # mount --bind /mnt /tmp 94 # mount --make-shared /mnt 97 # mount --bind /mnt /tmp [all …]
|
/openbmc/qemu/tests/avocado/ |
H A D | replay_linux.py | 1 # Record/replay test that boots a complete Linux system via a cloud image 9 # later. See the COPYING file in the top-level directory. 31 hdd = 'ide-hd' 32 cd = 'ide-cd' 36 # LinuxTest does many replay-incompatible things, but includes 51 vm.add_args('-drive', 'file=%s,snapshot=on,id=disk%s,if=none' % (path, id)) 52 vm.add_args('-drive', 53 'driver=blkreplay,id=disk%s-rr,if=none,image=disk%s' % (id, id)) 54 vm.add_args('-device', 55 '%s,drive=disk%s-rr%s' % (device, id, bus_string)) [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/lvm2/files/ |
H A D | lvm.conf | 40 # If it doesn't do what you expect, check the output of 'vgscan -vvvv'. 46 # Exclude the cdrom drive 47 # filter = [ "r|/dev/cdrom|" ] 70 # in /proc/devices with maximum (non-zero) number of partitions. 105 # There are 6 syslog-like log levels currently in use - 2 to 7 inclusive. 124 # prefix = " -- " 180 # Enabling test mode means that no changes to the on disk metadata 181 # will be made. Equivalent to having the -t option on every 183 test = 0 185 # Whether or not to communicate with the kernel device-mapper. [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | runqemu.py | 4 # SPDX-License-Identifier: MIT 19 """Runqemu test class""" 26 self.recipe = 'core-image-minimal' 33 if self.machine == "qemux86-64": 54 """Test runqemu machine""" 61 """Test runqemu machine ext4""" 70 """Test runqemu machine iso""" 74 text_in = 'media=cdrom' 78 """Test runqemu recipe-image""" 85 @skipIfNotMachine("qemux86-64", "tests are qemux86-64 specific currently") [all …]
|
/openbmc/linux/Documentation/usb/ |
H A D | mass-storage.rst | 9 appearing to the host as a disk or a CD-ROM drive. It supports 12 to read-only, and gadget can indicate that it is removable and/or 13 CD-ROM (the latter implies read-only access). 15 Its requirements are modest; only a bulk-in and a bulk-out endpoint 17 Support is included for full-speed, high-speed and SuperSpeed 20 Note that the driver is slightly non-portable in that it assumes 21 a single memory/DMA buffer will be usable for bulk-in and bulk-out 38 - file=filename[,filename...] 53 simulating CD-ROM, block size of the device if the backing file is 56 - removable=b[,b...] [all …]
|
/openbmc/qemu/.gitlab-ci.d/ |
H A D | buildtest.yml | 2 - local: '/.gitlab-ci.d/buildtest-template.yml' 4 build-system-alpine: 6 - .native_build_job_template 7 - .native_build_artifact_template 9 - job: amd64-alpine-container 12 TARGETS: avr-softmmu loongarch64-softmmu mips64-softmmu mipsel-softmmu 13 MAKE_CHECK_ARGS: check-build 14 CONFIGURE_ARGS: --enable-docs --enable-trace-backends=log,simple,syslog 16 check-system-alpine: 19 - job: build-system-alpine [all …]
|