diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-07-27 03:16:56 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:20 -0400 |
commit | fb3f0f51d92d1496f9628ca6f0fb06a48dc9ed2a (patch) | |
tree | 38da1073dae5f30fd8f162669bb5a86959f8ace5 /drivers/kvm/kvm_svm.h | |
parent | a2fa3e9f52d875f7d4ca98434603b8756be71ba8 (diff) |
KVM: Dynamically allocate vcpus
This patch converts the vcpus array in "struct kvm" to a pointer
array, and changes the "vcpu_create" and "vcpu_setup" hooks into one
"vcpu_create" call which does the allocation and initialization of the
vcpu (calling back into the kvm_vcpu_init core helper).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm_svm.h')
-rw-r--r-- | drivers/kvm/kvm_svm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_svm.h b/drivers/kvm/kvm_svm.h index 82e5d77acbba..a0e415daef5b 100644 --- a/drivers/kvm/kvm_svm.h +++ b/drivers/kvm/kvm_svm.h | |||
@@ -23,7 +23,7 @@ static const u32 host_save_user_msrs[] = { | |||
23 | struct kvm_vcpu; | 23 | struct kvm_vcpu; |
24 | 24 | ||
25 | struct vcpu_svm { | 25 | struct vcpu_svm { |
26 | struct kvm_vcpu *vcpu; | 26 | struct kvm_vcpu vcpu; |
27 | struct vmcb *vmcb; | 27 | struct vmcb *vmcb; |
28 | unsigned long vmcb_pa; | 28 | unsigned long vmcb_pa; |
29 | struct svm_cpu_data *svm_data; | 29 | struct svm_cpu_data *svm_data; |