Lines Matching refs:vm
68 static inline void snippet_init(struct vm *vm, const char *gbin, in snippet_init() argument
71 uint64_t mso = vm->sblk->mso; in snippet_init()
77 vm->sblk->gpsw = snippet_psw; in snippet_init()
83 vm->sblk->ictl = ICTL_OPEREXC | ICTL_PINT; in snippet_init()
98 static inline void snippet_pv_init(struct vm *vm, const char *gbin, in snippet_pv_init() argument
103 uint64_t mso = vm->sblk->mso; in snippet_pv_init()
106 snippet_init(vm, gbin, gbin_len, off); in snippet_pv_init()
108 uv_create_guest(vm); in snippet_pv_init()
109 uv_set_se_hdr(vm->uv.vm_handle, (void *)hdr, hdr_len); in snippet_pv_init()
112 uv_unpack(vm, off, gbin_len, tweak[0]); in snippet_pv_init()
113 uv_verify_load(vm); in snippet_pv_init()
121 uv_import(vm->uv.vm_handle, mso + PAGE_SIZE * i); in snippet_pv_init()
126 static inline void snippet_setup_guest(struct vm *vm, bool is_pv) in snippet_setup_guest() argument
132 sie_guest_create(vm, (uint64_t)guest_start, guest_size); in snippet_setup_guest()
136 sie_guest_sca_create(vm); in snippet_setup_guest()