KVM: SMP: Add vcpu_id field in struct vcpu
authorQing He <qing.he@intel.com>
Thu, 12 Jul 2007 09:33:56 +0000 (12:33 +0300)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:17 +0000 (10:18 +0200)
commitdad3795d2baa4e02cbfd161d9089c73dea16b4ba
tree56bedc042a5ba0a2b92eecc4e488b0328a35db54
parentcd0d91379776cb6850c7b11c0a8843ca75967558
KVM: SMP: Add vcpu_id field in struct vcpu

This patch adds a `vcpu_id' field in `struct vcpu', so we can
differentiate BSP and APs without pointer comparison or arithmetic.

Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/svm.c
drivers/kvm/vmx.c