HVM SMBIOS v3 [4/5]
PATCH 1/1 HVM SMBIOS v3 [4/5]
[HVM] Add code to generate SMBIOS tables to hvmloader.
Signed-off-by Andrew D. Ball <[email protected]>
tools/firmware/hvmloader/Makefile +2 -2
@@ -31,7 +31,7 @@ DEFINES =-DDEBUG DEFINES =-DDEBUG XENINC =-I$(XEN_ROOT)/tools/libxc -OBJECTS = hvmloader.o acpi_madt.o +OBJECTS = hvmloader.o acpi_madt.o smbios.o # Disable PIE/SSP if GCC supports them. They can break us. CFLAGS += $(call test-gcc-flag,$(CC),-nopie)
@@ -42,7 +42,7 @@ CFLAGS += $(DEFINES) -I. $(XENINC) -fno CFLAGS += $(DEFINES) -I. $(XENINC) -fno-builtin -O2 -msoft-float LDFLAGS = -m32 -nostdlib -Wl,-N -Wl,-Ttext -Wl,$(LOADADDR) -SRCS = hvmloader.c acpi_madt.c mp_tables.c util.c +SRCS = hvmloader.c acpi_madt.c mp_tables.c util.c smbios.c OBJS = $(patsubst %.c,%.o,$(SRCS)) .PHONY: all
tools/firmware/hvmloader/hvmloader.c +4 -0
@@ -25,6 +25,7 @@#include "../acpi/acpi2_0.h" /* for ACPI_PHYSICAL_ADDRESS */ #include "hypercall.h" #include "util.h" +#include "smbios.h" #include <xen/version.h> #include <xen/hvm/params.h>
@@ -200,6 +201,9 @@ main(void) } } +puts ("Writing SMBIOS tables ...\n" ); +hvm_write_smbios_tables (); +if (check_amd ()) {/* AMD implies this is SVM */ puts ("SVM go ...\n" );
tools/firmware/hvmloader/smbios.c new file +617 -0
617 lines not on this page · raw message
tools/firmware/hvmloader/smbios.h new file +48 -0
48 lines not on this page · raw message
tools/firmware/hvmloader/smbios_types.h new file +192 -0
192 lines not on this page · raw message