Skip to contentSkip to conversation

hvmloader: Load proper ACPI tables with OVMF

PATCH In review Anthony PERARD 4 participants 4 messages Dec 14, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hvmloader: Load proper ACPI tables with OVMF

This patch loads the ACPI tables associated with QEMU instead of the one for qemu-traditional.

---
 tools/firmware/hvmloader/ovmf.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
tools/firmware/hvmloader/ovmf.c +4 -4
index bb3da93..db9fa7a 100644
@@ -47,8 +47,8 @@
 #define LOWCHUNK_END            (OVMF_BEGIN + OVMF_SIZE)
 #define OVMF_INFO_PHYSICAL_ADDRESS 0x00001000
 
-extern unsigned char dsdt_anycpu[];
-extern int dsdt_anycpu_len;
+extern unsigned char dsdt_anycpu_qemu_xen[];
+extern int dsdt_anycpu_qemu_xen_len;
 
 #define OVMF_INFO_MAX_TABLES 4
 struct ovmf_info {
@@ -119,8 +119,8 @@ static void ovmf_load(const struct bios_config *config)
 static void ovmf_acpi_build_tables(void)
 {
     struct acpi_config config = {
-        .dsdt_anycpu = dsdt_anycpu,
-        .dsdt_anycpu_len = dsdt_anycpu_len,
+        .dsdt_anycpu = dsdt_anycpu_qemu_xen,
+        .dsdt_anycpu_len = dsdt_anycpu_qemu_xen_len,
         .dsdt_15cpu = NULL, 
         .dsdt_15cpu_len = 0
     };
Signature · 1 line
Anthony PERARD
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Anthony PERARD

This patch loads the ACPI tables associated with QEMU instead of the one for qemu-traditional.

I'd add "... we only support OVMF with qemu-xen" or something, just to make it clear why this is correct.

Quoted 1 line
Quoted 30 lines

---
 tools/firmware/hvmloader/ovmf.c | 8 ++++----

 1 file changed, 4 insertions(+), 4 deletions(-)
tools/firmware/hvmloader/ovmf.c +0 -0
index bb3da93..db9fa7a 100644
@@ -47,8 +47,8 @@
  #define LOWCHUNK_END            (OVMF_BEGIN + OVMF_SIZE)
  #define OVMF_INFO_PHYSICAL_ADDRESS 0x00001000

tools/firmware/hvmloader/ovmf.c +2 -2
-extern unsigned char dsdt_anycpu[];
-extern int dsdt_anycpu_len;
+extern unsigned char dsdt_anycpu_qemu_xen[];
+extern int dsdt_anycpu_qemu_xen_len;


 #define OVMF_INFO_MAX_TABLES 4
 struct ovmf_info {

tools/firmware/hvmloader/ovmf.c +2 -2
@@ -119,8 +119,8 @@ static void ovmf_load(const struct bios_config
 *config)
  static void ovmf_acpi_build_tables(void)
  {
      struct acpi_config config = {
-        .dsdt_anycpu = dsdt_anycpu,
-        .dsdt_anycpu_len = dsdt_anycpu_len,
+        .dsdt_anycpu = dsdt_anycpu_qemu_xen,
+        .dsdt_anycpu_len = dsdt_anycpu_qemu_xen_len,
          .dsdt_15cpu = NULL, 
Quoted 2 lines

         .dsdt_15cpu_len = 0
     };

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 5 lines · Ian Campbell
Quoted 2 lines · Anthony PERARD

This patch loads the ACPI tables associated with QEMU instead of the one for qemu-traditional.

I'd add "... we only support OVMF with qemu-xen" or something, just to make it clear why this is correct.

Seconded.

Quoted 3 lines
Quoted 2 lines

With that fixed, Reviewed-by: Andrew Cooper <[email protected]>

#3 lore raw
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 14.12.15 at 17:23, <[email protected]> wrote:
Quoted 5 lines · Ian Campbell
Quoted 2 lines · Anthony PERARD

This patch loads the ACPI tables associated with QEMU instead of the one for qemu-traditional.

I'd add "... we only support OVMF with qemu-xen" or something, just to make it clear why this is correct.

Quoted 7 lines

Seconded.

Quoted 3 lines
Quoted 2 lines

With that fixed, Reviewed-by: Andrew Cooper <[email protected]>

I'll take care of extending the description upon commit; no need to re-submit.

Jan