]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-i386: Replace MSI_SPACE_SIZE with APIC_SPACE_SIZE
authorIgor Mammedov <imammedo@redhat.com>
Thu, 25 Apr 2013 14:05:29 +0000 (16:05 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 1 May 2013 11:04:19 +0000 (13:04 +0200)
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>
hw/i386/kvm/apic.c
hw/intc/apic.c
hw/xen/xen_apic.c
include/hw/i386/apic_internal.h
target-i386/cpu.h

index c6ff9821e33cb6534a692ce911d0084820a8541e..8f80425ccc65c6a1e322f9e3ef8596dd36c55354 100644 (file)
@@ -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;
index 2d79a9ea7f69cd2fa7c7054196e591ed060d7b02..756dff008d56bf4e1b06c1313c52bc49554324b5 100644 (file)
@@ -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;
index a2eb8a159a0333c7b8f06aff8737f899c7209201..a95878227262db2f531f31845566888dd7b2068c 100644 (file)
@@ -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
index 578241f861c19684c8205618e882a69c4c456c31..aac62902b77ccd1ecea053206e3f4f0abab90f71 100644 (file)
@@ -66,8 +66,6 @@
 
 #define MAX_APICS 255
 
-#define MSI_SPACE_SIZE                  0x100000
-
 typedef struct APICCommonState APICCommonState;
 
 #define TYPE_APIC_COMMON "apic-common"
index a1614e8e50bad6bec98c7418ebd0cf2ee43d6aa6..ab151d5414e963ecd94adcb4704cc939bbf2dd31 100644 (file)
@@ -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 */