]> git.proxmox.com Git - mirror_qemu.git/commitdiff
loader: rename in_ram/has_mr
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 9 Mar 2014 16:42:06 +0000 (18:42 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 9 Mar 2014 19:09:38 +0000 (21:09 +0200)
we put copy of ROMs in MR for migration.
but the name rom_in_ram makes one think we
load it in guest RAM.
Rename has_mr to make intent clearer.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/core/loader.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/loader.h

index b323c0c7b83a55c6607fe8a89540056137002ab4..13e98d8dbbc3a820a99dc66c3b0ed7a64512e9f4 100644 (file)
@@ -54,7 +54,7 @@
 
 #include <zlib.h>
 
-bool rom_file_in_ram = true;
+bool rom_file_has_mr = true;
 
 static int roms_loaded;
 
@@ -694,7 +694,7 @@ int rom_add_file(const char *file, const char *fw_dir,
                  basename);
         snprintf(devpath, sizeof(devpath), "/rom@%s", fw_file_name);
 
-        if (rom_file_in_ram) {
+        if (rom_file_has_mr) {
             data = rom_set_mr(rom, OBJECT(fw_cfg), devpath);
         } else {
             data = rom->data;
@@ -738,7 +738,7 @@ void *rom_add_blob(const char *name, const void *blob, size_t len,
 
         snprintf(devpath, sizeof(devpath), "/rom@%s", fw_file_name);
 
-        if (rom_file_in_ram) {
+        if (rom_file_has_mr) {
             data = rom_set_mr(rom, OBJECT(fw_cfg), devpath);
         } else {
             data = rom->data;
index ae1699d6dbf50c050b9e9d90c38789a790e9ef00..fb2d636a7837f8f2abefc4c64c335a71c68e177d 100644 (file)
@@ -272,7 +272,7 @@ static void pc_compat_1_6(QEMUMachineInitArgs *args)
 {
     pc_compat_1_7(args);
     has_pci_info = false;
-    rom_file_in_ram = false;
+    rom_file_has_mr = false;
     has_acpi_build = false;
 }
 
index a7f626096a689b4889da2ab83231a02bd36e9ec4..eb55ae4823728477c2febb553f19b7a61cc4d12f 100644 (file)
@@ -250,7 +250,7 @@ static void pc_compat_1_6(QEMUMachineInitArgs *args)
 {
     pc_compat_1_7(args);
     has_pci_info = false;
-    rom_file_in_ram = false;
+    rom_file_has_mr = false;
     has_acpi_build = false;
 }
 
index aaf08c377ea07b34bae3c9fda7fc14d6838efcab..3dc5b948cfb95d304f2f59d7fa85406543b9c93c 100644 (file)
@@ -49,7 +49,7 @@ void pstrcpy_targphys(const char *name,
                       hwaddr dest, int buf_size,
                       const char *source);
 
-extern bool rom_file_in_ram;
+extern bool rom_file_has_mr;
 
 int rom_add_file(const char *file, const char *fw_dir,
                  hwaddr addr, int32_t bootindex);