qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] This series changes the "isa-bios" MemoryRegion to be an alias rather than a
@ 2024-04-30 15:06 Bernhard Beschow
  2024-04-30 15:06 ` [PATCH v2 1/6] hw/i386/x86: Eliminate two if statements in x86_bios_rom_init() Bernhard Beschow
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Bernhard Beschow @ 2024-04-30 15:06 UTC (permalink / raw)
  To: qemu-devel
  Cc: Michael S. Tsirkin, Richard Henderson,
	Philippe Mathieu-Daudé, Eduardo Habkost, Sergio Lopez,
	Marcel Apfelbaum, Michael Roth, Paolo Bonzini, Bernhard Beschow

region which matches real hardware and which some real-world legacy bioses I'm
running rely on. Furthermore, aliasing in the isa-bios area is already the
current behavior in the bios (a.k.a. ROM) case, so this series consolidates
behavior.

For migration compatibility the aliasing is only performed on new versions of
the q34 and pc machine types.

v2:
* Don't leak bios memory regions (Phil)
* Add compat machinery (Michael)

Testing done:
* `make check` with qemu-system-x86_64 (QEMU 8.2.2) installed. All tests
  including migration tests pass.
* `make check-avocado`

Best regards,
Bernhard

Bernhard Beschow (6):
  hw/i386/x86: Eliminate two if statements in x86_bios_rom_init()
  hw/i386: Have x86_bios_rom_init() take X86MachineState rather than
    MachineState
  hw/i386/x86: Don't leak "isa-bios" memory regions
  hw/i386/x86: Don't leak "pc.bios" memory region
  hw/i386/x86: Extract x86_isa_bios_init() from x86_bios_rom_init()
  hw/i386/pc_sysfw: Alias rather than copy isa-bios region

 include/hw/i386/pc.h  |  1 +
 include/hw/i386/x86.h |  7 ++++++-
 hw/i386/microvm.c     |  2 +-
 hw/i386/pc.c          |  1 +
 hw/i386/pc_piix.c     |  3 +++
 hw/i386/pc_q35.c      |  2 ++
 hw/i386/pc_sysfw.c    | 17 ++++++++++------
 hw/i386/x86.c         | 45 ++++++++++++++++++++++---------------------
 8 files changed, 48 insertions(+), 30 deletions(-)

-- 
2.45.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-05-08 18:00 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-30 15:06 [PATCH v2 0/6] This series changes the "isa-bios" MemoryRegion to be an alias rather than a Bernhard Beschow
2024-04-30 15:06 ` [PATCH v2 1/6] hw/i386/x86: Eliminate two if statements in x86_bios_rom_init() Bernhard Beschow
2024-04-30 15:06 ` [PATCH v2 2/6] hw/i386: Have x86_bios_rom_init() take X86MachineState rather than MachineState Bernhard Beschow
2024-04-30 15:36   ` Philippe Mathieu-Daudé
2024-04-30 15:06 ` [PATCH v2 3/6] hw/i386/x86: Don't leak "isa-bios" memory regions Bernhard Beschow
2024-04-30 15:29   ` Philippe Mathieu-Daudé
2024-04-30 15:06 ` [PATCH v2 4/6] hw/i386/x86: Don't leak "pc.bios" memory region Bernhard Beschow
2024-04-30 15:31   ` Philippe Mathieu-Daudé
2024-04-30 15:06 ` [PATCH v2 5/6] hw/i386/x86: Extract x86_isa_bios_init() from x86_bios_rom_init() Bernhard Beschow
2024-04-30 15:33   ` Philippe Mathieu-Daudé
2024-04-30 15:06 ` [PATCH v2 6/6] hw/i386/pc_sysfw: Alias rather than copy isa-bios region Bernhard Beschow
2024-04-30 15:39   ` Philippe Mathieu-Daudé
2024-05-08  8:17     ` Bernhard Beschow
2024-05-08  9:58       ` Philippe Mathieu-Daudé
2024-05-08 15:56     ` Paolo Bonzini
2024-05-08 14:53 ` [PATCH v2 0/6] This series changes the "isa-bios" MemoryRegion to be an alias rather than a Philippe Mathieu-Daudé
2024-05-08 18:00   ` Bernhard Beschow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).