diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-03-15 12:26:31 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-03-16 17:11:07 -0300 |
commit | dc7a09cfe47679d89289101cc9eb387c45e48fe7 (patch) | |
tree | b55b3021443336fdb313dc41efe287355e3f21ea /cpu-defs.h | |
parent | f2574737f6a1218b4f4809ad6c8aba935126d90f (diff) |
Expose thread_id in info cpus
Based on patch by Glauber Costa:
To allow management applications like libvirt to apply CPU affinities to
the VCPU threads, expose their ID via info cpus. This patch provides the
pre-existing and used interface from qemu-kvm.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.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 2b59fa6fb..db48a7afe 100644 --- a/cpu-defs.h +++ b/cpu-defs.h @@ -203,6 +203,7 @@ typedef struct CPUWatchpoint { int nr_cores; /* number of cores within this CPU package */ \ int nr_threads;/* number of threads within this CPU */ \ int running; /* Nonzero if cpu is currently running(usermode). */ \ + int thread_id; \ /* user data */ \ void *opaque; \ \ |