<commit_before># Copyright (c) 2013, Daynix Computing LTD (www.daynix.com)
# All rights reserved.
#
# Maintained by <EMAIL>
#
# This file is a part of VirtHCK, please see the wiki page
# on https://github.com/daynix/VirtHCK/wiki for more.
#
# This code is licensed under standard 3-clause BSD license.
# See file LICENSE supplied with this package for the full license text.

#Settings file for HCK setup

#Setup ID
UNIQUE_ID=11

#HCK root
HCK_ROOT=`dirname $0`

#QEMU PATH
QEMU_BIN=/usr/libexec/qemu-kvm

#Test device
#For each device there are three parameters as follows:
#Please note that setting video's TEST_DEV_NAME and TEST_DEV_EXTRA_PARAMS
#is not currently supported.
TEST_DEV_TYPE="network"       TEST_DEV_NAME="virtio-net-pci"     TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="bootstorage"  TEST_DEV_NAME="virtio-blk-pci"     TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="storage-blk"  TEST_DEV_NAME="virtio-blk-pci"     TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="storage-scsi" TEST_DEV_NAME="virtio-scsi-pci"    TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="rng"          TEST_DEV_NAME="virtio-rng-pci"     TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="balloon"      TEST_DEV_NAME="virtio-balloon-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="serial"       TEST_DEV_NAME="virtio-serial-pci"  TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="usb"          TEST_DEV_NAME="usb-storage"        TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="video"

#Test device: virtual or physical
#Set IS_PYHSICAL to true if the test device is physical.
#Please note that this feature currently supports network devices only.
#CLIENT_HOST_ADDRESS is the pci address of the physical card.
#ASSIGNMENT=[vfio-pci | pci-assign]
IS_PHYSICAL=false
ASSIGNMENT=vfio-pci
CLIENT1_HOST_ADDRESS=01:00.0
CLIENT2_HOST_ADDRESS=03:00.0

#Machine type
MACHINE_TYPE=pc
#MACHINE_TYPE=q35

#VNC ports
PORT_BASE=`expr ${UNIQUE_ID} '*' 3`
STUDIO_PORT=`expr ${PORT_BASE} + 0`
CLIENT1_PORT=`expr ${PORT_BASE} + 1`
CLIENT2_PORT=`expr ${PORT_BASE} + 2`

#VIDEO
VIDEO_TYPE=VNC
#VIDEO_TYPE=SPICE

#TEST NETWORK BACKEND
TEST_NET_TYPE=bridge
#TEST_NET_TYPE=OVS

TEST_NETWORK_INTERFACE=tap
#TEST_NETWORK_INTERFACE=macvtap

#BRIDGES
WORLD_BR_NAME=whqlbr0
CTRL_BR_NAME=ctrltestbr_${UNIQUE_ID}
TEST_BR_NAME=hcktestbr_${UNIQUE_ID}

#IMAGES
IMAGES_DIR=`dirname ${HCK_ROOT}`/images
STUDIO_IMAGE=${IMAGES_DIR}/HCK_Studio_WS2008R2_SP1.qcow2
CLIENT1_IMAGE=${IMAGES_DIR}/HCK_Client1_WS2008R2_SP1.qcow2
CLIENT2_IMAGE=${IMAGES_DIR}/HCK_Client2_WS2008R2_SP1.qcow2

#RESOURCES
CLIENT1_CPUS=4
CLIENT2_CPUS=4
CLIENT_MEMORY=4G
WORLD_NET_DEVICE=e1000
CTRL_NET_DEVICE=e1000
FILE_TRANSFER_DEVICE=e1000

#MISC
VHOST_STATE=on
SNAPSHOT=off
UNSAFE_CACHE=off
ENABLE_S3=on
ENABLE_S4=on
ENLIGHTENMENTS_STATE=off

#Set remote viewers (VNC) title postfix for setup VMs
TITLE_POSTFIX=`pwd`

#Disable client world access, even for new clients
#CLIENT_WORLD_ACCESS=false

#SMB share
SHARE_ON_HOST=${HCK_ROOT}/SMB_SHARE  # The default share on the host
#Modify the default samba share network address
SHARE_ON_HOST_NET='192.168.101'  # The =FIRST THREE= octets of the share IP

#Virtio-net multiqueueing
#CLIENT1_N_QUEUES=8
#CLIENT2_N_QUEUES=8

#Network backend multiqueueing (ignored when Virtio-net multiqueueing enabled)
CLIENT1_NETDEV_QUEUES=1
CLIENT2_NETDEV_QUEUES=1

#QEMU Tracing
#CLIENT1_TRACE_EVENTS=/non/existing/path/trace_events.list
#CLIENT2_TRACE_EVENTS=/non/existing/path/trace_events.list

#Log clients output to file
#Output will be stored in a separate file for each client for each run
#Name of specific file will be printed to the console before client respawn
#CLIENT1_LOG=on
#CLIENT2_LOG=on
LOGS_DIR=`dirname ${HCK_ROOT}`/logs

#EXTRA PARAMS
#STUDIO_EXTRA="-cdrom /non/existing/path/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso"
#CLIENT1_EXTRA="-cdrom /non/existing/path/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso"
#CLIENT2_EXTRA="-cdrom /non/existing/path/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso"

#BIOS from the latest QEMU is required for power management support
#CLIENT1_EXTRA="-bios /non/existing/path/qemu/pc-bios/bios.bin"
#CLIENT2_EXTRA="-bios /non/existing/path/qemu/pc-bios/bios.bin"

#UTILITIES

timestamp()
{
    echo `date -u +'%Y-%m-%dT%H-%M-%SZ'`
}

test x"${SNAPSHOT}" = xon && SNAPSHOT_OPTION="-snapshot"
test x"${UNSAFE_CACHE}" = xon && DRIVE_CACHE_OPTION=",cache=unsafe"
test x"${ENLIGHTENMENTS_STATE}" = xon && ENLIGHTENMENTS_OPTION=,hv_spinlocks=0x1FFF,hv_relaxed

if [ z${ENABLE_S3} =  zon ]
then
S3_DISABLE_OPTION="0"
else
S3_DISABLE_OPTION="1"
fi

if [ z${ENABLE_S4} =  zon ]
then
S4_DISABLE_OPTION="0"
else
S4_DISABLE_OPTION="1"
fi

STUDIO_TELNET_PORT=$(( ${STUDIO_PORT} + 10000 ))
CLIENT1_TELNET_PORT=$(( ${CLIENT1_PORT} + 10000 ))
CLIENT2_TELNET_PORT=$(( ${CLIENT2_PORT} + 10000 ))

MONITOR_STUDIO="-monitor telnet::${STUDIO_TELNET_PORT},server,nowait -monitor vc"
MONITOR_CLIENT1="-monitor telnet::${CLIENT1_TELNET_PORT},server,nowait"
MONITOR_CLIENT2="-monitor telnet::${CLIENT2_TELNET_PORT},server,nowait"<commit_msg>VirtHCK: Always use absolute image file names<commit_after># Copyright (c) 2013, Daynix Computing LTD (www.daynix.com)
# All rights reserved.
#
# Maintained by <EMAIL>
#
# This file is a part of VirtHCK, please see the wiki page
# on https://github.com/daynix/VirtHCK/wiki for more.
#
# This code is licensed under standard 3-clause BSD license.
# See file LICENSE supplied with this package for the full license text.

#Settings file for HCK setup

#Setup ID
UNIQUE_ID=11

#HCK root
HCK_ROOT=`dirname $0`

#QEMU PATH
QEMU_BIN=/usr/libexec/qemu-kvm

#Test device
#For each device there are three parameters as follows:
#Please note that setting video's TEST_DEV_NAME and TEST_DEV_EXTRA_PARAMS
#is not currently supported.
TEST_DEV_TYPE="network"       TEST_DEV_NAME="virtio-net-pci"     TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="bootstorage"  TEST_DEV_NAME="virtio-blk-pci"     TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="storage-blk"  TEST_DEV_NAME="virtio-blk-pci"     TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="storage-scsi" TEST_DEV_NAME="virtio-scsi-pci"    TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="rng"          TEST_DEV_NAME="virtio-rng-pci"     TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="balloon"      TEST_DEV_NAME="virtio-balloon-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="serial"       TEST_DEV_NAME="virtio-serial-pci"  TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="usb"          TEST_DEV_NAME="usb-storage"        TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="video"

#Test device: virtual or physical
#Set IS_PYHSICAL to true if the test device is physical.
#Please note that this feature currently supports network devices only.
#CLIENT_HOST_ADDRESS is the pci address of the physical card.
#ASSIGNMENT=[vfio-pci | pci-assign]
IS_PHYSICAL=false
ASSIGNMENT=vfio-pci
CLIENT1_HOST_ADDRESS=01:00.0
CLIENT2_HOST_ADDRESS=03:00.0

#Machine type
MACHINE_TYPE=pc
#MACHINE_TYPE=q35

#VNC ports
PORT_BASE=`expr ${UNIQUE_ID} '*' 3`
STUDIO_PORT=`expr ${PORT_BASE} + 0`
CLIENT1_PORT=`expr ${PORT_BASE} + 1`
CLIENT2_PORT=`expr ${PORT_BASE} + 2`

#VIDEO
VIDEO_TYPE=VNC
#VIDEO_TYPE=SPICE

#TEST NETWORK BACKEND
TEST_NET_TYPE=bridge
#TEST_NET_TYPE=OVS

TEST_NETWORK_INTERFACE=tap
#TEST_NETWORK_INTERFACE=macvtap

#BRIDGES
WORLD_BR_NAME=whqlbr0
CTRL_BR_NAME=ctrltestbr_${UNIQUE_ID}
TEST_BR_NAME=hcktestbr_${UNIQUE_ID}

#IMAGES
IMAGES_DIR=`dirname ${HCK_ROOT}`/images
STUDIO_IMAGE=${IMAGES_DIR}/HCK_Studio_WS2008R2_SP1.qcow2
CLIENT1_IMAGE=${IMAGES_DIR}/HCK_Client1_WS2008R2_SP1.qcow2
CLIENT2_IMAGE=${IMAGES_DIR}/HCK_Client2_WS2008R2_SP1.qcow2

#RESOURCES
CLIENT1_CPUS=4
CLIENT2_CPUS=4
CLIENT_MEMORY=4G
WORLD_NET_DEVICE=e1000
CTRL_NET_DEVICE=e1000
FILE_TRANSFER_DEVICE=e1000

#MISC
VHOST_STATE=on
SNAPSHOT=off
UNSAFE_CACHE=off
ENABLE_S3=on
ENABLE_S4=on
ENLIGHTENMENTS_STATE=off

#Set remote viewers (VNC) title postfix for setup VMs
TITLE_POSTFIX=`pwd`

#Disable client world access, even for new clients
#CLIENT_WORLD_ACCESS=false

#SMB share
SHARE_ON_HOST=${HCK_ROOT}/SMB_SHARE  # The default share on the host
#Modify the default samba share network address
SHARE_ON_HOST_NET='192.168.101'  # The =FIRST THREE= octets of the share IP

#Virtio-net multiqueueing
#CLIENT1_N_QUEUES=8
#CLIENT2_N_QUEUES=8

#Network backend multiqueueing (ignored when Virtio-net multiqueueing enabled)
CLIENT1_NETDEV_QUEUES=1
CLIENT2_NETDEV_QUEUES=1

#QEMU Tracing
#CLIENT1_TRACE_EVENTS=/non/existing/path/trace_events.list
#CLIENT2_TRACE_EVENTS=/non/existing/path/trace_events.list

#Log clients output to file
#Output will be stored in a separate file for each client for each run
#Name of specific file will be printed to the console before client respawn
#CLIENT1_LOG=on
#CLIENT2_LOG=on
LOGS_DIR=`dirname ${HCK_ROOT}`/logs

#EXTRA PARAMS
#STUDIO_EXTRA="-cdrom /non/existing/path/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso"
#CLIENT1_EXTRA="-cdrom /non/existing/path/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso"
#CLIENT2_EXTRA="-cdrom /non/existing/path/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso"

#BIOS from the latest QEMU is required for power management support
#CLIENT1_EXTRA="-bios /non/existing/path/qemu/pc-bios/bios.bin"
#CLIENT2_EXTRA="-bios /non/existing/path/qemu/pc-bios/bios.bin"

#UTILITIES

timestamp()
{
    echo `date -u +'%Y-%m-%dT%H-%M-%SZ'`
}

STUDIO_IMAGE=`readlink -f $STUDIO_IMAGE`
CLIENT1_IMAGE=`readlink -f $CLIENT1_IMAGE`
CLIENT2_IMAGE=`readlink -f $CLIENT2_IMAGE`

test x"${SNAPSHOT}" = xon && SNAPSHOT_OPTION="-snapshot"
test x"${UNSAFE_CACHE}" = xon && DRIVE_CACHE_OPTION=",cache=unsafe"
test x"${ENLIGHTENMENTS_STATE}" = xon && ENLIGHTENMENTS_OPTION=,hv_spinlocks=0x1FFF,hv_relaxed

if [ z${ENABLE_S3} =  zon ]
then
S3_DISABLE_OPTION="0"
else
S3_DISABLE_OPTION="1"
fi

if [ z${ENABLE_S4} =  zon ]
then
S4_DISABLE_OPTION="0"
else
S4_DISABLE_OPTION="1"
fi

STUDIO_TELNET_PORT=$(( ${STUDIO_PORT} + 10000 ))
CLIENT1_TELNET_PORT=$(( ${CLIENT1_PORT} + 10000 ))
CLIENT2_TELNET_PORT=$(( ${CLIENT2_PORT} + 10000 ))

MONITOR_STUDIO="-monitor telnet::${STUDIO_TELNET_PORT},server,nowait -monitor vc"
MONITOR_CLIENT1="-monitor telnet::${CLIENT1_TELNET_PORT},server,nowait"
MONITOR_CLIENT2="-monitor telnet::${CLIENT2_TELNET_PORT},server,nowait"
{'fraction_non_alphanumeric': 0.10927347903130538, 'fraction_numerical': 0.03484937979917307, 'mean_word_length': 6.9615987460815045, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '599159', 'n_tokens_mistral': 4247, 'n_tokens_neox': 4115, 'n_words': 770}