···764764 *765765 * Return: None766766 *767767- * Creates and adds to the VM specified by vm and virtual CPU with768768- * the ID given by vcpuid.767767+ * Adds a virtual CPU to the VM specified by vm with the ID given by vcpuid.768768+ * No additional VCPU setup is done.769769 */770770-void vm_vcpu_add(struct kvm_vm *vm, uint32_t vcpuid, int pgd_memslot,771771- int gdt_memslot)770770+void vm_vcpu_add(struct kvm_vm *vm, uint32_t vcpuid)772771{773772 struct vcpu *vcpu;774773···801802 vm->vcpu_head->prev = vcpu;802803 vcpu->next = vm->vcpu_head;803804 vm->vcpu_head = vcpu;804804-805805- vcpu_setup(vm, vcpuid, pgd_memslot, gdt_memslot);806805}807806808807/*
···3434 int vcpu_id = first_vcpu_id + i;35353636 /* This asserts that the vCPU was created. */3737- vm_vcpu_add(vm, vcpu_id, 0, 0);3737+ vm_vcpu_add(vm, vcpu_id);3838 }39394040 kvm_vm_free(vm);