target-i386: Replace MSI_SPACE_SIZE with APIC_SPACE_SIZE
Put APIC_SPACE_SIZE in a public header so that it can be reused elsewhere later. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
8d6d4980c9
commit
baaeda08ff
@ -174,7 +174,7 @@ static const MemoryRegionOps kvm_apic_io_ops = {
|
||||
static void kvm_apic_init(APICCommonState *s)
|
||||
{
|
||||
memory_region_init_io(&s->io_memory, &kvm_apic_io_ops, s, "kvm-apic-msi",
|
||||
MSI_SPACE_SIZE);
|
||||
APIC_SPACE_SIZE);
|
||||
|
||||
if (kvm_has_gsi_routing()) {
|
||||
msi_supported = true;
|
||||
|
@ -874,7 +874,7 @@ static const MemoryRegionOps apic_io_ops = {
|
||||
static void apic_init(APICCommonState *s)
|
||||
{
|
||||
memory_region_init_io(&s->io_memory, &apic_io_ops, s, "apic-msi",
|
||||
MSI_SPACE_SIZE);
|
||||
APIC_SPACE_SIZE);
|
||||
|
||||
s->timer = qemu_new_timer_ns(vm_clock, apic_timer, s);
|
||||
local_apics[s->idx] = s;
|
||||
|
@ -39,7 +39,7 @@ static const MemoryRegionOps xen_apic_io_ops = {
|
||||
static void xen_apic_init(APICCommonState *s)
|
||||
{
|
||||
memory_region_init_io(&s->io_memory, &xen_apic_io_ops, s, "xen-apic-msi",
|
||||
MSI_SPACE_SIZE);
|
||||
APIC_SPACE_SIZE);
|
||||
|
||||
#if defined(CONFIG_XEN_CTRL_INTERFACE_VERSION) \
|
||||
&& CONFIG_XEN_CTRL_INTERFACE_VERSION >= 420
|
||||
|
@ -66,8 +66,6 @@
|
||||
|
||||
#define MAX_APICS 255
|
||||
|
||||
#define MSI_SPACE_SIZE 0x100000
|
||||
|
||||
typedef struct APICCommonState APICCommonState;
|
||||
|
||||
#define TYPE_APIC_COMMON "apic-common"
|
||||
|
@ -1270,5 +1270,6 @@ uint32_t x86_cpu_apic_id_from_index(unsigned int cpu_index);
|
||||
void enable_compat_apic_id_mode(void);
|
||||
|
||||
#define APIC_DEFAULT_ADDRESS 0xfee00000
|
||||
#define APIC_SPACE_SIZE 0x100000
|
||||
|
||||
#endif /* CPU_I386_H */
|
||||
|
Loading…
Reference in New Issue
Block a user