HW42 2016-08-30 12:08:45 +02:00 committed by Marek Marczykowski-Górecki
parent 0e24d803f5
commit 32b4f9d4a4
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -101,6 +101,7 @@ XEN_EXTRA=`cat $TEMP_DIR/xl-info |grep xen_extra |cut -d: -f2 |tr -d ' '`
QUBES=`cat $TEMP_DIR/qubes-release |cut -d '(' -f2 |cut -d ')' -f1` QUBES=`cat $TEMP_DIR/qubes-release |cut -d '(' -f2 |cut -d ')' -f1`
XL_VTX=`cat $TEMP_DIR/xl-info |grep xen_caps | grep hvm` XL_VTX=`cat $TEMP_DIR/xl-info |grep xen_caps | grep hvm`
XL_VTD=`cat $TEMP_DIR/xl-info |grep virt_caps |grep hvm_directio` XL_VTD=`cat $TEMP_DIR/xl-info |grep virt_caps |grep hvm_directio`
XL_HAP=`cat $TEMP_DIR/xl-dmesg |grep 'HVM: Hardware Assisted Paging (HAP) detected'`
PCRS=`find /sys/devices/ -name pcrs` PCRS=`find /sys/devices/ -name pcrs`
FILENAME="Qubes-HCL-${BRAND//[^[:alnum:]]/_}-${PRODUCT//[^[:alnum:]]/_}-$DATE" FILENAME="Qubes-HCL-${BRAND//[^[:alnum:]]/_}-${PRODUCT//[^[:alnum:]]/_}-$DATE"
@ -127,6 +128,12 @@ if [[ $XL_VTD ]]
fi fi
if [ -n "$XL_HAP" ]; then
HAP="yes"
else
HAP="no"
fi
if [[ $PCRS ]] if [[ $PCRS ]]
then then
# try tu run tcsd and: grep the logs, try get version info. # try tu run tcsd and: grep the logs, try get version info.
@ -152,6 +159,7 @@ echo -e "Net:\n$NET\n"
echo -e "SCSI:\n$SCSI\n" echo -e "SCSI:\n$SCSI\n"
echo -e "HVM:\t\t$VTX" echo -e "HVM:\t\t$VTX"
echo -e "I/O MMU:\t$VTD" echo -e "I/O MMU:\t$VTD"
echo -e "HAP/SLAT:\t${HAP^}"
echo -e "TPM:\t\t$TPM" echo -e "TPM:\t\t$TPM"
echo echo
@ -164,6 +172,8 @@ hvm:
'$HVM' '$HVM'
iommu: iommu:
'$IOMMU' '$IOMMU'
slat:
'$HAP'
tpm: tpm:
'$TPM_s' '$TPM_s'
brand: | brand: |