-
-
Save zengxinhui/2bf39b14d16bcc22db520fa28dc65ebc to your computer and use it in GitHub Desktop.
Revisions
-
Informatic revised this gist
Aug 5, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> <!-- ... --> <qemu:commandline> <qemu:arg value='-acpitable'/> -
Informatic created this gist
Aug 5, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ <domain type='kvm' id='5' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> <!-- ... --> <qemu:commandline> <qemu:arg value='-acpitable'/> <qemu:arg value='file=/some/path/slic.bin'/> <qemu:arg value='-acpitable'/> <qemu:arg value='file=/some/path/msdm.bin'/> <qemu:arg value='-smbios'/> <qemu:arg value='file=/some/path/smbios_type_0.bin'/> <qemu:arg value='-smbios'/> <qemu:arg value='file=/some/path/smbios_type_1.bin'/> </qemu:commandline> </domain> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #!/bin/bash set -e cat /sys/firmware/acpi/tables/SLIC > slic.bin cat /sys/firmware/acpi/tables/MSDM > msdm.bin dmidecode -t 0 -u | grep $'^\t\t[^"]' | xargs -n1 | perl -lne 'printf "%c", hex($_)' > smbios_type_0.bin dmidecode -t 1 -u | grep $'^\t\t[^"]' | xargs -n1 | perl -lne 'printf "%c", hex($_)' > smbios_type_1.bin