OSDN Git Service

hw/i386: add 4g boundary start to X86MachineState
authorJoao Martins <joao.m.martins@oracle.com>
Tue, 19 Jul 2022 17:00:04 +0000 (18:00 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Jul 2022 14:40:58 +0000 (10:40 -0400)
commit4ab4c33014b4876bc6d7888efecd6bfcca0d045a
treece71ccf56576058d5ee12cc7787540f340d77812
parentcb70b7e8712e17e5761a7447defdce5572cd4b80
hw/i386: add 4g boundary start to X86MachineState

Rather than hardcoding the 4G boundary everywhere, introduce a
X86MachineState field @above_4g_mem_start and use it
accordingly.

This is in preparation for relocating ram-above-4g to be
dynamically start at 1T on AMD platforms.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20220719170014.27028-2-joao.m.martins@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c
hw/i386/pc.c
hw/i386/sgx.c
hw/i386/x86.c
include/hw/i386/x86.h