mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 07:22:07 +03:00
626df95907
Internally format the SCSI controller properties into JSON, but convert it back to a string so that we for now change just the SCSI controller. The change in tests is expected as the 'reg' field for a spapr-vio address is expected to be a number: $ qemu-system-ppc64 -device spapr-vscsi,help spapr-vscsi options: reg=<uint32> - (default: 4294967295) The hand-rolled generator used hex representation but that will not be possible on the monitor via JSON. The properties of 'virtio-scsi' have following types according to QEMU: iothread=<link<iothread>> num_queues=<uint32> - (default: 4294967295) cmd_per_lun=<uint32> - (default: 128) max_sectors=<uint32> - (default: 65535) ioeventfd=<bool> - on/off (default: true) Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
45 lines
1.9 KiB
Plaintext
45 lines
1.9 KiB
Plaintext
LC_ALL=C \
|
|
PATH=/bin \
|
|
HOME=/tmp/lib/domain--1-TPM-VM \
|
|
USER=test \
|
|
LOGNAME=test \
|
|
XDG_DATA_HOME=/tmp/lib/domain--1-TPM-VM/.local/share \
|
|
XDG_CACHE_HOME=/tmp/lib/domain--1-TPM-VM/.cache \
|
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-TPM-VM/.config \
|
|
/usr/bin/qemu-system-ppc64 \
|
|
-name guest=TPM-VM,debug-threads=on \
|
|
-S \
|
|
-object secret,id=masterKey0,format=raw,file=/tmp/lib/domain--1-TPM-VM/master-key.aes \
|
|
-machine pseries-5.0,accel=tcg,usb=off,dump-guest-core=off,memory-backend=ppc_spapr.ram \
|
|
-cpu POWER9 \
|
|
-m 2048 \
|
|
-object memory-backend-ram,id=ppc_spapr.ram,size=2147483648 \
|
|
-overcommit mem-lock=off \
|
|
-smp 1,sockets=1,cores=1,threads=1 \
|
|
-uuid 11d7cd22-da89-3094-6212-079a48a309a1 \
|
|
-display none \
|
|
-no-user-config \
|
|
-nodefaults \
|
|
-chardev socket,id=charmonitor,fd=1729,server=on,wait=off \
|
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
|
-rtc base=utc \
|
|
-no-shutdown \
|
|
-boot menu=on,strict=on \
|
|
-device pci-ohci,id=usb,bus=pci.0,addr=0x1 \
|
|
-device spapr-vscsi,id=scsi0,reg=8192 \
|
|
-device spapr-vscsi,id=scsi1,reg=12288 \
|
|
-blockdev '{"driver":"file","filename":"/tmp/scsidisk.img","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
|
|
-blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw","file":"libvirt-1-storage"}' \
|
|
-device scsi-hd,bus=scsi1.0,channel=0,scsi-id=0,lun=0,device_id=drive-scsi1-0-0-0,drive=libvirt-1-format,id=scsi1-0-0-0,bootindex=1 \
|
|
-chardev pty,id=charserial0 \
|
|
-device spapr-vty,chardev=charserial0,id=serial0,reg=0x30000000 \
|
|
-chardev pty,id=charserial1 \
|
|
-device spapr-vty,chardev=charserial1,id=serial1,reg=0x30001000 \
|
|
-tpmdev emulator,id=tpm-tpm0,chardev=chrtpm \
|
|
-chardev socket,id=chrtpm,path=/dev/test \
|
|
-device tpm-spapr,tpmdev=tpm-tpm0,id=tpm0,reg=0x00005000 \
|
|
-audiodev id=audio1,driver=none \
|
|
-global spapr-nvram.reg=0x4000 \
|
|
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
|
|
-msg timestamp=on
|