qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 4/6] hw/i386/x86: Don't leak "pc.bios" memory region


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 4/6] hw/i386/x86: Don't leak "pc.bios" memory region
Date: Tue, 30 Apr 2024 17:31:05 +0200
User-agent: Mozilla Thunderbird

On 30/4/24 17:06, Bernhard Beschow wrote:
Fix the leaking in x86_bios_rom_init() by adding a "bios" attribute to
X86MachineState. Note that it is only used in the -bios case.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
  include/hw/i386/x86.h |  1 +
  hw/i386/x86.c         | 13 ++++++-------
  2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/hw/i386/x86.h b/include/hw/i386/x86.h
index 271ad50470..fb41263b9d 100644
--- a/include/hw/i386/x86.h
+++ b/include/hw/i386/x86.h
@@ -52,6 +52,7 @@ struct X86MachineState {
      DeviceState *ioapic2;
      GMappedFile *initrd_mapped_file;
      HotplugHandler *acpi_dev;
+    MemoryRegion bios;
      MemoryRegion isa_bios;

Do you mind describing what is each in a small comment?

Otherwise,
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]