Lines Matching refs:shape
291 struct kvm_vm *____vm_create(struct vm_shape shape) in ____vm_create() argument
303 vm->mode = shape.mode; in ____vm_create()
304 vm->type = shape.type; in ____vm_create()
465 static bool is_guest_memfd_required(struct vm_shape shape) in is_guest_memfd_required() argument
468 return shape.type == KVM_X86_SNP_VM; in is_guest_memfd_required()
474 struct kvm_vm *__vm_create(struct vm_shape shape, uint32_t nr_runnable_vcpus, in __vm_create() argument
477 uint64_t nr_pages = vm_nr_pages_required(shape.mode, nr_runnable_vcpus, in __vm_create()
486 vm_guest_mode_string(shape.mode), shape.type, nr_pages); in __vm_create()
488 vm = ____vm_create(shape); in __vm_create()
495 if (is_guest_memfd_required(shape)) in __vm_create()
544 struct kvm_vm *__vm_create_with_vcpus(struct vm_shape shape, uint32_t nr_vcpus, in __vm_create_with_vcpus() argument
553 vm = __vm_create(shape, nr_vcpus, extra_mem_pages); in __vm_create_with_vcpus()
561 struct kvm_vm *__vm_create_shape_with_one_vcpu(struct vm_shape shape, in __vm_create_shape_with_one_vcpu() argument
569 vm = __vm_create_with_vcpus(shape, 1, extra_mem_pages, guest_code, vcpus); in __vm_create_shape_with_one_vcpu()