[PATCH 1/8] add thread id to vcpu structure

Glauber Costa
2008-03-04T16:21:54Z

This allow us to track which thread is currently running the cpu
Signed-off-by: Glauber Costa <gcosta@redhat.com>
---
qemu/qemu-kvm.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
index 051946e..43e0f2e 100644
--- a/qemu/qemu-kvm.c
+++ b/qemu/qemu-kvm.c
@@ -47,6 +47,7 @@ struct vcpu_info {
int signalled;
int stop;
int stopped;
+ int thread_id;
} vcpu_info[256];

CPUState *qemu_kvm_cpu_env(int index)
--
1.5.0.6