Lines Matching defs:shape
279 struct kvm_vm *____vm_create(struct vm_shape shape)
291 vm->mode = shape.mode;
292 vm->type = shape.type;
470 static bool is_guest_memfd_required(struct vm_shape shape)
473 return shape.type == KVM_X86_SNP_VM;
479 struct kvm_vm *__vm_create(struct vm_shape shape, uint32_t nr_runnable_vcpus,
482 uint64_t nr_pages = vm_nr_pages_required(shape.mode, nr_runnable_vcpus,
491 vm_guest_mode_string(shape.mode), shape.type, nr_pages);
493 vm = ____vm_create(shape);
500 if (is_guest_memfd_required(shape))
549 struct kvm_vm *__vm_create_with_vcpus(struct vm_shape shape, uint32_t nr_vcpus,
558 vm = __vm_create(shape, nr_vcpus, extra_mem_pages);
567 struct kvm_vm *__vm_create_shape_with_one_vcpu(struct vm_shape shape,
575 vm = __vm_create_with_vcpus(shape, 1, extra_mem_pages, guest_code, vcpus);