|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 3/3] tools/libxl: Only allocate 64 bytes for RSDP
RSDP's size is 64 bytes and later in the function, its buffer is
hardcoded to be 64 bytes long. Don't bother to allocate a whole page.
Signed-off-by: Kevin Stefanov <kevin.stefanov@xxxxxxxxxx>
---
CC: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CC: Ian Jackson <iwj@xxxxxxxxxxxxxx>
CC: Wei Liu <wl@xxxxxxx>
CC: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
tools/libs/light/libxl_x86_acpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/libs/light/libxl_x86_acpi.c
b/tools/libs/light/libxl_x86_acpi.c
index 0a82e7cacd..2aea1eca31 100644
--- a/tools/libs/light/libxl_x86_acpi.c
+++ b/tools/libs/light/libxl_x86_acpi.c
@@ -183,7 +183,7 @@ int libxl__dom_load_acpi(libxl__gc *gc,
goto out;
}
- config.rsdp = (unsigned long)libxl__malloc(gc, libxl_ctxt.page_size);
+ config.rsdp = (unsigned long)libxl__malloc(gc, 64);
config.infop = (unsigned long)libxl__malloc(gc, libxl_ctxt.page_size);
/* Pages to hold ACPI tables */
acpi_pages = libxl__malloc(gc, (NUM_ACPI_PAGES + 1) *
--
2.25.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |