diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-03-05 17:01:09 -0300 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-03-06 08:53:53 +0200 |
commit | 80d52776b077014180227427526f66e83ad71515 (patch) | |
tree | 5ed99b84ccaf5cf8ad8b78da600e6eb1584dcb68 /cpu-defs.h | |
parent | Pass block device size to extboot (diff) | |
download | qemu-kvm-80d52776b077014180227427526f66e83ad71515.tar.gz qemu-kvm-80d52776b077014180227427526f66e83ad71515.tar.bz2 qemu-kvm-80d52776b077014180227427526f66e83ad71515.zip |
Add a thread id variable
This patch introduces a "thread_id" variable to CPUState.
It's duty will be to hold the process, or more generally, thread
id of the current executing cpu
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'cpu-defs.h')
-rw-r--r-- | cpu-defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpu-defs.h b/cpu-defs.h index 6979c1145..6387a2fb4 100644 --- a/cpu-defs.h +++ b/cpu-defs.h @@ -162,6 +162,7 @@ typedef struct CPUTLBEntry { \ void *next_cpu; /* next CPU sharing TB cache */ \ int cpu_index; /* CPU index (informative) */ \ + int thread_id; \ /* user data */ \ void *opaque; \ \ |