[edk2] [PATCH 0/2] Re: exec: fix regression by making system-memory region UINT64_MAX size

Subject: [edk2] [PATCH 0/2] Re: exec: fix regression by making system-memory region UINT64_MAX size

From: Laszlo Ersek <lersek@redhat.com>

To: qemu-devel@nongnu.org, peter.maydell@linaro.org, edk2-devel@lists.sourceforge.net, mst@redhat.com, jan.kiszka@siemens.com, marcel.a@redhat.com, anthony@codemonkey.ws, pbonzini@redhat.com, jljusten@gmail.com, afaerber@suse.de, rth@twiddle.net

Date: 2013-11-08 07:23:57

  • 2013-11-08 07:23:57  Laszlo Ersek   [edk2] [PATCH 0/2] Re: exec: fix regression by making system-memory region UINT64_MAX size
On 11/07/13 22:24, Marcel Apfelbaum wrote:

> Why pci-hole and system.flash collide? IMHO we should not play with
> priorities here, better solve the collision.

What about this "beautiful" series? It produces

memory
0000000000000000-000fffffffffffff (prio 0, RW): system
  [...]
  0000000060000000-00000000ffdfffff (prio 0, RW): alias pci-hole @pci
  0000000060000000-00000000ffdfffff
  [...]
  00000000ffe00000-00000000ffffffff (prio 0, R-): system.flash

and I can run OVMF with it. It also stays within i386/pc.

Re 2/2, note that "below_4g_mem_size" never exceeds 0xe0000000 in
pc_init1(), so the subtraction is safe.

Thanks
Laszlo

Laszlo Ersek (2):
  i386/pc: propagate flash size from pc_system_flash_init() to
    pc_init1()
  i386/pc_piix: the pci-hole should end where the system flash starts

 include/hw/i386/pc.h |  6 ++++--
 hw/i386/pc.c         |  5 +++--
 hw/i386/pc_piix.c    |  5 +++--
 hw/i386/pc_q35.c     |  3 ++-
 hw/i386/pc_sysfw.c   | 10 +++++++---
 5 files changed, 19 insertions(+), 10 deletions(-)

-- 
1.8.3.1


------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel