Formatting cleanups in libvirt hook bash script
Just doing some whitespace and variable expansion cleanups in the bash script that were highlighted while doing a previous review. Change-Id: I6a5a1e80057fbf6cb292fc0ed5415a26fb780958 Signed-off-by: Chris Friesen <chris.friesen@windriver.com>
This commit is contained in:
parent
f2e4b83ed2
commit
3d2642e639
@ -19,30 +19,30 @@ GUEST_NAME=$1
|
|||||||
shift
|
shift
|
||||||
OPERATION=$*
|
OPERATION=$*
|
||||||
|
|
||||||
logger -p info -t $0 "hook qemu file guest $GUEST_NAME with operation $OPERATION"
|
logger -p info -t ${0} "hook qemu file guest ${GUEST_NAME} with operation ${OPERATION}"
|
||||||
|
|
||||||
# CPU Low latency setup:
|
# CPU Low latency setup:
|
||||||
#
|
#
|
||||||
# A cpu is set to low latency when:
|
# A cpu is set to low latency when:
|
||||||
# 1) host is set to subfunction=lowlatency in platform.conf and
|
# 1) host is set to subfunction=lowlatency in platform.conf and
|
||||||
# 2) domain has dedicated pinning
|
# 2) domain has dedicated pinning
|
||||||
#
|
#
|
||||||
# example of <cputune> section when domain has dedicated pinning:
|
# example of <cputune> section when domain has dedicated pinning:
|
||||||
# <cputune>
|
# <cputune>
|
||||||
# <vcpupin vcpu='0' cpuset='5'/>
|
# <vcpupin vcpu='0' cpuset='5'/>
|
||||||
# <vcpupin vcpu='1' cpuset='6'/>
|
# <vcpupin vcpu='1' cpuset='6'/>
|
||||||
# <vcpupin vcpu='2' cpuset='7'/>
|
# <vcpupin vcpu='2' cpuset='7'/>
|
||||||
# <emulatorpin cpuset='5'/>
|
# <emulatorpin cpuset='5'/>
|
||||||
# </cputune>
|
# </cputune>
|
||||||
#
|
#
|
||||||
# example of <cputune> section when domain has shared pinning:
|
# example of <cputune> section when domain has shared pinning:
|
||||||
# <cputune>
|
# <cputune>
|
||||||
# <shares>4096</shares>
|
# <shares>4096</shares>
|
||||||
# <vcpupin vcpu='0' cpuset='5-21'/>
|
# <vcpupin vcpu='0' cpuset='5-21'/>
|
||||||
# <vcpupin vcpu='1' cpuset='5-21'/>
|
# <vcpupin vcpu='1' cpuset='5-21'/>
|
||||||
# <vcpupin vcpu='2' cpuset='5-21'/>
|
# <vcpupin vcpu='2' cpuset='5-21'/>
|
||||||
# <vcpupin vcpu='3' cpuset='5-21'/>
|
# <vcpupin vcpu='3' cpuset='5-21'/>
|
||||||
# <emulatorpin cpuset='5-21'/>
|
# <emulatorpin cpuset='5-21'/>
|
||||||
# </cputune>
|
# </cputune>
|
||||||
|
|
||||||
if [ "${OPERATION}" == "prepare begin -" ] || [ "${OPERATION}" == "stopped end -" ]; then
|
if [ "${OPERATION}" == "prepare begin -" ] || [ "${OPERATION}" == "stopped end -" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user