]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target-i386/cpu.h
target-i386: Use uint32_t for X86CPU.apic_id
[mirror_qemu.git] / target-i386 / cpu.h
index b2ab8bf4be63456cbf62c43e2ed7ba2addb56097..10d562d4eadb0398df0f4cc0b98748de4d5a5a17 100644 (file)
@@ -845,6 +845,11 @@ typedef struct {
 
 #define NB_OPMASK_REGS 8
 
+/* CPU can't have 0xFFFFFFFF APIC ID, use that value to distinguish
+ * that APIC ID hasn't been set yet
+ */
+#define UNASSIGNED_APIC_ID 0xFFFFFFFF
+
 typedef union X86LegacyXSaveArea {
     struct {
         uint16_t fcw;
@@ -1174,7 +1179,7 @@ struct X86CPU {
     bool expose_kvm;
     bool migratable;
     bool host_features;
-    int64_t apic_id;
+    uint32_t apic_id;
 
     /* if true the CPUID code directly forward host cache leaves to the guest */
     bool cache_info_passthrough;