target-i386: Add socket/core/thread properties to X86CPU

These properties will be used by as address where to plug
CPU with help -device/device_add commands.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
Igor Mammedov 2016-07-06 08:20:42 +02:00 committed by Eduardo Habkost
parent 2da00e3176
commit d89c2b8b98
3 changed files with 39 additions and 0 deletions

View file

@ -1219,6 +1219,10 @@ struct X86CPU {
Notifier machine_done;
struct kvm_msrs *kvm_msr_buf;
int32_t socket_id;
int32_t core_id;
int32_t thread_id;
};
static inline X86CPU *x86_env_get_cpu(CPUX86State *env)