Skip to content

Instantly share code, notes, and snippets.

@zengxinhui
Forked from Informatic/domain.xml
Created February 4, 2024 03:49
Show Gist options
  • Save zengxinhui/2bf39b14d16bcc22db520fa28dc65ebc to your computer and use it in GitHub Desktop.
Save zengxinhui/2bf39b14d16bcc22db520fa28dc65ebc to your computer and use it in GitHub Desktop.

Revisions

  1. @Informatic Informatic revised this gist Aug 5, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion domain.xml
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    <domain type='kvm' id='5' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
    <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
    <!-- ... -->
    <qemu:commandline>
    <qemu:arg value='-acpitable'/>
  2. @Informatic Informatic created this gist Aug 5, 2018.
    14 changes: 14 additions & 0 deletions domain.xml
    Original 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>

    8 changes: 8 additions & 0 deletions slic-dump
    Original 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