/freebsd/sys/contrib/openzfs/.github/workflows/scripts/ |
H A D | qemu-6-tests.sh | 6 # called on runner: qemu-6-tests.sh 7 # called on qemu-vm: qemu-6-tests.sh $OS $2/$3 10 set -eu 17 DIFF=$((CURRENT-TSSTART)) 19 DIFF=$((DIFF-(H*3600))) 21 S=$((DIFF-(M*60))) 24 echo $LINE| grep -q "^Test[: ]" && CTR=$((CTR+1)) && echo $CTR > /tmp/ctr 27 COLOR="$BASE/scripts/zfs-tests-color.sh" 28 CLINE=$(echo $LINE| grep "^Test[ :]" | sed -e 's|/usr/local|/usr|g' \ 29 | sed -e 's| /usr/share/zfs/zfs-tests/tests/| |g' | $COLOR) [all …]
|
H A D | qemu-7-prepare.sh | 5 # - this script pre-creates all needed logfiles for later summary 8 set -eu 14 mkdir -p $RESPATH 17 if [ -z ${VMs:-} ]; then 22 tar cf /tmp/qemu-$OS.tar -C $RESPATH -h . || true 30 # catch result files of testings (vm's should be there) 32 rsync -arL zfs@192.168.122.1$i:$RESPATH/current $RESPATH/vm$i || true 33 scp zfs@192.168.122.1$i:"/var/tmp/*.txt" $RESPATH/vm$i || true 35 cp -f /var/tmp/*.txt $RESPATH || true 40 file="vm$i/build-stderr.txt" [all …]
|
H A D | qemu-2-start.sh | 4 # 2) start qemu with some operating system, init via cloud-init 7 set -eu 9 # short name used in zfs-qemu.yml 12 # OS variant (virt-install --os-variant list) 16 REPO="https://github.com/mcmilk/openzfs-freebsd-images" 17 FREEBSD="$REPO/releases/download/v2024-12-14" 21 #UBMIRROR="https://cloud-images.ubuntu.com" 22 #UBMIRROR="https://mirrors.cloud.tencent.com/ubuntu-cloud-images" 23 UBMIRROR="https://mirror.citrahost.com/ubuntu-cloud-images" 25 # default nic model for vm's [all …]
|
H A D | qemu-5-setup.sh | 7 set -eu 13 PID=$(pidof /usr/bin/qemu-system-x86_64) 14 tail --pid=$PID -f /dev/null 17 # default values per test vm: 41 # setup the testing vm's 45 echo "Creating disk for vm$i..." 46 DISK="/dev/zvol/zpool/vm$i" 48 sudo zfs clone zpool/openzfs@now zpool/vm$i 49 sudo zfs create -ps -b 64k -V 80g zpool/vm$i-2 51 cat <<EOF > /tmp/user-data [all …]
|
H A D | qemu-9-summary-page.sh | 7 set -eu 10 echo -e $* >> "out-$logfile.md" 14 cat "$1" >> "out-$logfile.md" 19 cat "$1" >> "out-$logfile.md" 24 test -f "$1" || exit 0 28 …/docs.github.com/en/enterprise-server@3.6/actions/using-workflows/workflow-commands-for-github-act… 34 if [ ! -f out-1.md ]; then 36 for tarfile in Logs-functional-*/qemu-*.tar; do 37 rm -rf vm* *.txt 38 if [ ! -s "$tarfile" ]; then [all …]
|
/freebsd/tools/boot/ |
H A D | ci-qemu-test.sh | 4 # in QEMU and echo "Hello world." from init, as a very quick smoke test for CI. 5 # Uses QEMU's virtual FAT filesystem to avoid the need to create a disk image. 7 # as a quick smoke-test as long as pkgbase packages have been built. The 12 set -e 22 trap - EXIT SIGINT SIGHUP SIGTERM SIGQUIT 23 rm -rf ${WORKDIR} 31 mkdir -p ${ROOTDIR}/${dir} 40 -o ABI_FILE=$OBJTOP/bin/sh/sh \ 41 -C ${ROOTDIR}/pkg.conf -r ${ROOTDIR} install \ 42 FreeBSD-kernel-generic FreeBSD-bootloader \ [all …]
|
/freebsd/release/ |
H A D | Makefile.vm | 7 VMTARGETS= vm-image 17 VMBASE?= vm 19 VHD_DESC= Azure, VirtualPC, Hyper-V, Xen disk image 21 QCOW2_DESC= Qemu, KVM disk image 25 BASIC-CI \ 26 BASIC-CLOUDINIT \ 34 BASIC-CI_FORMAT= raw 35 BASIC-CI_FSLIST?= ufs 36 BASIC-CI_DESC= Image for CI 37 BASIC-CLOUDINIT_FORMAT= raw qcow2 [all …]
|
/freebsd/sys/contrib/openzfs/.github/workflows/ |
H A D | zfs-qemu.yml | 1 name: zfs-qemu 20 group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} 21 cancel-in-progress: true 24 test-config: 26 runs-on: ubuntu-24.04 31 - uses: actions/checkout@v4 33 fetch-depth: 0 34 - name: Generate OS config and CI type 37 …ebian12", "fedora40", "fedora41", "freebsd13-3r", "freebsd13-4s", "freebsd14-1r", "freebsd14-2s", … 38 …_OS='["almalinux8", "almalinux9", "debian12", "fedora41", "freebsd13-3r", "freebsd14-2r", "ubuntu2… [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | bhyve.8 | 99 I/O connectivity can be specified with command-line parameters. 110 .Pa edk2-bhyve 113 .Pa u-boot-bhyve-arm64 114 package provides a U-Boot image that can be used to boot the guest. 120 .Bl -tag -width 10n 161 Destroy the VM on guest initiated power-off. 203 Set configuration variables from a simple, key-value config file. 221 When using a VNC client that supports QEMU Extended Key Event Message (e.g. 223 When using a VNC client that doesn't support QEMU Extended Key Event Message 229 Allow devices behind the LPC PCI-ISA bridge to be configured. [all …]
|
H A D | bhyve_config.5 | 1 .\" SPDX-License-Identifier: BSD-2-Clause 35 per-device settings. 69 For those variables the following case-insensitive values may be used to 72 .Bl -bullet -offset indent -compact 85 .Bl -bullet -offset indent -compact 103 .Bl -column "memory.guest_in_core" "integer" "Default" 106 The name of the VM. 140 This can cause problems if the guest uses the in-memory version, since certain 144 Destroy the VM on guest-initiated power-off. 149 If this is set to a non-zero value, a debug server [all …]
|
H A D | tpm_ppi_qemu.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 32 #define TPM_PPI_QEMU_NAME "qemu" 64 if ((addr & (size - 1)) != 0) { in tpm_ppi_mem_handler() 71 off = addr - TPM_PPI_ADDRESS; in tpm_ppi_mem_handler() 89 .name = "ppi-mmio", 117 fwcfg->ppi_address = htole32(TPM_PPI_ADDRESS); in tpm_ppi_init() 118 fwcfg->tpm_version = 2; in tpm_ppi_init() 119 fwcfg->ppi_version = 1; in tpm_ppi_init() 131 * memory to the VM. So, create a trap instead which reads and writes to in tpm_ppi_init() [all …]
|
H A D | bhyverun.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 126 * The acceptance of a null specification ('-c ""') is by design to match the 165 return (-1); in bhyve_topology_parse() 249 return (-1); in bhyve_pincpu_parse() 254 return (-1); in bhyve_pincpu_parse() 259 "0 to %d\n", pcpu, CPU_SETSIZE - 1); in bhyve_pincpu_parse() 260 return (-1); in bhyve_pincpu_parse() 267 value != NULL ? "," : "", pcpu) == -1) { in bhyve_pincpu_parse() 269 return (-1); in bhyve_pincpu_parse() [all …]
|
/freebsd/sys/arm/qemu/ |
H A D | virt_mp.c | 1 /*- 34 #include <vm/vm.h> 35 #include <vm/pmap.h> 45 #include <arm/qemu/virt_mp.h>
|
H A D | virt_machdep.c | 1 /*- 34 #include <vm/vm.h> 40 #include <arm/qemu/virt_mp.h> 65 FDT_PLATFORM_DEF(virt, "virt", 0, "linux,dummy-virt", 1);
|
/freebsd/share/man/man4/ |
H A D | ptnet.4 | 30 .Nd Ethernet driver for passed-through netmap ports 36 .Bd -ragged -offset indent 43 from within a Virtual Machine (VM). 45 the VM can access the TX/RX rings and buffers of a netmap port 46 that the hypervisor has passed-through to the VM. 49 is currently available for QEMU/KVM. 52 port can be passed-through, including physical NICs, 56 The main use-case for netmap passthrough is Network Function 58 VMs may want to process very high packet rates (e.g., 1-10 millions 68 comes from the hypervisor being completely bypassed in the data-path. [all …]
|
/freebsd/sys/powerpc/booke/ |
H A D | machdep_e500.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2011-2012 Semihalf. 36 #include <vm/vm.h> 37 #include <vm/pmap.h> 58 /* Enable D-cache if applicable */ in booke_enable_l1_cache() 67 printf("L1 D-cache %sabled\n", in booke_enable_l1_cache() 70 /* Enable L1 I-cache if applicable. */ in booke_enable_l1_cache() 79 printf("L1 I-cache %sabled\n", in booke_enable_l1_cache() 99 * This fixes waiting forever for cache enable in qemu, in booke_enable_l2_cache()
|
/freebsd/sys/dev/vmgenc/ |
H A D | vmgenc_acpi.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 29 * VM Generation Counter driver 33 * https://docs.microsoft.com/en-us/windows/win32/hyperv_v2/virtual-machine-generation-identifier , 34 * https://azure.microsoft.com/en-us/blog/accessing-and-using-azure-vm-unique-id/ 39 * - QEMU: https://bugzilla.redhat.com/show_bug.cgi?id=1118834 40 * - VMware/ESXi: https://kb.vmware.com/s/article/2032586 41 …* - Xen: https://github.com/xenserver/xen-4.5/blob/master/tools/firmware/hvmloader/acpi/dsdt.asl#L… 73 MODULE_PNP_INFO("Z:_CID", acpi, vmgenc, vmgenc_ids, nitems(vmgenc_ids) - 1); 88 sizeof(((struct harvest_event *)0)->he_entropy)); in vmgenc_harvest_all() [all …]
|
/freebsd/tools/tools/nanobsd/embedded/ |
H A D | common | 2 #- 4 # Copyright (c) 2010-2011 iXsystems, Inc. 40 # o mtools still needed because we have no makefs -t msdos 51 # o documentation for how to run the qemu images 54 # o qemu image for aarch64 55 # o qemu image for armv7 56 # o easy support for different image / vm formats 59 # for many files. Should move to mtree-dedup.awk. 64 # o common tooling for creating images for odd-ball platforms 70 if [ -z $NANO_NAME ]; then [all …]
|
/freebsd/sys/arm64/arm64/ |
H A D | undefined.c | 1 /*- 6 * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 50 #include <vm/vm.h> 51 #include <vm/vm_extern.h> 92 * Work around a bug in QEMU prior to 2.5.1 where reading unknown ID 108 frame->tf_elr += INSN_SIZE; in id_aa64mmfr2_handler() 109 if (reg < nitems(frame->tf_x)) { in id_aa64mmfr2_handler() 110 frame->tf_x[reg] = 0; in id_aa64mmfr2_handler() 112 frame->tf_lr = 0; in id_aa64mmfr2_handler() 135 spsr = frame->tf_spsr; in arm_cond_match() [all …]
|
/freebsd/sys/net/ |
H A D | paravirt.h | 31 Support for virtio-like communication between host (H) and guest (G) NICs. 37 csb->csb_on enables the mode. If disabled, the device acts a regular one. 39 Notifications for tx and rx are exchanged without vm exits 116 * [GH][RW][+-0] guest/host reads/writes frequently/rarely/almost never 120 uint32_t guest_need_txkick; /* GW- HR+ G ran out of tx bufs, request kick */ 121 uint32_t guest_need_rxkick; /* GW- HR+ G ran out of rx pkts, request kick */ 122 uint32_t guest_csb_on; /* GW- HR+ enable paravirtual mode */ 124 uint32_t guest_txkick_at; /* GW- HR+ tx ring pos. where G expects an intr */ 125 uint32_t guest_use_msix; /* GW0 HR0 guest uses MSI-X interrupts. */ 129 uint32_t host_tdh; /* GR0 HW- shadow register, mostly unused */ [all …]
|
/freebsd/sys/fs/p9fs/ |
H A D | p9fs_vfsops.c | 1 /*- 2 * Copyright (c) 2017-2020 Juniper Networks, Inc. 39 #include <vm/uma.h> 77 if (node->parent && node->parent != node) { in p9fs_dispose_node() 78 vrele(P9FS_NTOV(node->parent)); in p9fs_dispose_node() 84 vp->v_data = NULL; in p9fs_dispose_node() 87 if (!(vp->v_vflag & VV_ROOT)) { in p9fs_dispose_node() 88 free(node->inode.i_name, M_TEMP); in p9fs_dispose_node() 153 vses = &vmp->p9fs_session; in p9fs_unmount() 177 mp->mnt_data = NULL; in p9fs_unmount() [all …]
|
H A D | p9_client.c | 1 /*- 33 #include <vm/uma.h> 72 return (clnt->proto_version == p9_proto_2000L); in p9_is_proto_dotl() 79 return (clnt->proto_version == p9_proto_2000u); in p9_is_proto_dotu() 92 error = vfs_getopt(mp->mnt_optnew, "trans", (void **)&trans, &len); in p9_parse_opts() 97 clnt->proto_version = p9_proto_2000L; in p9_parse_opts() 98 clnt->msize = 8192; in p9_parse_opts() 101 clnt->ops = p9_get_trans_by_name(trans); in p9_parse_opts() 113 fc->capacity = alloc_msize; in p9_buffer_alloc() 114 fc->offset = 0; in p9_buffer_alloc() [all …]
|
/freebsd/release/tools/ |
H A D | vmimage.subr | 9 . ${scriptdir}/../../tools/boot/install-boot.sh 14 # Platform-specific large-scale setup 33 if [ -c "${DESTDIR}/dev/null" ]; then 42 mkdir -p ${DESTDIR} 60 mkdir -p ${DESTDIR}/var/db/etcupdate 61 etcupdate extract -B \ 62 -M "TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH}" \ 63 -s ${WORLDDIR} -d ${DESTDIR}/var/db/etcupdate \ 64 -L /dev/stdout 66 echo '# Custom /etc/fstab for FreeBSD VM images' \ [all …]
|
/freebsd/sys/contrib/xen/hvm/ |
H A D | params.h | 51 * How should CPU0 event-channel notifications be delivered? 53 * If val == 0 then CPU0 event-channel notifications are not delivered. 79 * val[15:8] is interrupt flag of the PPI used by event-channel: 82 * val[7:0] is a PPI number used by event-channel. 91 * These are not used by Xen. They are here for convenience of HVM-guest 106 …* (See http://download.microsoft.com/download/A/B/4/AB43A34E-BDD0-4FA6-BDEF-79EEF16E880B/Hyperviso… 116 * - Hypercall MSRs (HV_X64_MSR_GUEST_OS_ID and HV_X64_MSR_HYPERCALL) 117 * - APIC access MSRs (HV_X64_MSR_EOI, HV_X64_MSR_ICR and HV_X64_MSR_TPR) 118 * - Virtual Processor index MSR (HV_X64_MSR_VP_INDEX) 119 * - Timer frequency MSRs (HV_X64_MSR_TSC_FREQUENCY and [all …]
|
/freebsd/sys/powerpc/pseries/ |
H A D | platform_chrp.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 40 #include <vm/vm.h> 41 #include <vm/pmap.h> 85 #include "phyp-hvcall.h" 125 if (OF_finddevice("/memory") != -1 || OF_finddevice("/memory@0") != -1) in chrp_probe() 141 /* XXX: check for /rtas/ibm,hypertas-functions? */ in chrp_attach() 198 /* Some systems (e.g. QEMU) need Open Firmware to stand down */ in chrp_attach() 220 phandle = OF_finddevice("/ibm,dynamic-reconfiguration-memory"); in parse_drconf_memory() 221 if (phandle == -1) in parse_drconf_memory() [all …]
|