qubes-hcl-report: add check for HAP/SLAT
bassed on https://wiki.xenproject.org/wiki/Xen_Common_Problems#How_can_I_check_if_my_CPU_supports_HAP_.28Hardware_Assisted_Paging.29_.3F
This commit is contained in:
parent
0e24d803f5
commit
32b4f9d4a4
@ -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: |
|
||||||
|
Loading…
Reference in New Issue
Block a user