gacpi_add_table()

Updated: October 28, 2024

Format and add an ACPI table to the guest (x86)

Synopsis:

#include <qvm/firmware.h>
void gacpi_add_table(struct guest_system *gsp,
                     void *table,
                     size_t len,
                     uint32_t sig,
                     uint8_t rev,
                     const char *table_id,
                     uint32_t oem_rev)

Arguments:

gsp
A pointer to the guest system.
table
A pointer to an ACPI table to be added.
len
The total length of the table, in bytes.
sig
The table's signature.
rev
The table's revision number.
table_id
The informational OEM ID, in string form.
oem_rev
The informational OEM revision.

Description:

This function fills out the ACPI table header, and computes the checksum and adds it to the XSDT table.

  翻译: