Home
last modified time | relevance | path

Searched refs:vmctx (Results 1 – 25 of 102) sorted by relevance

12345

/illumos-gate/usr/src/lib/libvmmapi/common/
H A Dvmmapi.h60 struct vmctx;
152 struct vmctx *vm_open(const char *name);
153 void vm_close(struct vmctx *ctx);
154 void vm_destroy(struct vmctx *ctx);
156 int vm_limit_rights(struct vmctx *ctx);
162 struct vmctx *vcpu_ctx(struct vcpu *vcpu);
180 int vm_get_memflags(struct vmctx *ctx);
181 const char *vm_get_name(struct vmctx *ctx);
203 int vm_reinit(struct vmctx *ctx);
346 int vm_wrlock_cycle(struct vmctx *ctx);
[all …]
H A Dvmmapi.c94 struct vmctx { struct
172 struct vmctx *
175 struct vmctx *vm; in vm_open()
200 vm_close(struct vmctx *vm) in vm_close()
209 vm_destroy(struct vmctx *vm) in vm_destroy()
221 vm_close(struct vmctx *vm) in vm_close()
232 vm_destroy(struct vmctx *vm) in vm_destroy()
273 struct vmctx *
667 vm_get_name(struct vmctx *ctx) in vm_get_name()
952 vm_reinit(struct vmctx *ctx) in vm_reinit()
[all …]
H A Dinternal.h10 struct vmctx;
13 struct vmctx *ctx;
/illumos-gate/usr/src/cmd/bhyve/
H A Dpm.c61 struct vmctx *pwr_ctx;
75 reset_handler(struct vmctx *ctx __unused, int in, in reset_handler()
105 sci_assert(struct vmctx *ctx) in sci_assert()
115 sci_deassert(struct vmctx *ctx) in sci_deassert()
147 sci_update(struct vmctx *ctx) in sci_update()
173 pm1_status_handler(struct vmctx *ctx, int in, in pm1_status_handler()
197 pm1_enable_handler(struct vmctx *ctx, int in, in pm1_enable_handler()
226 struct vmctx *ctx; in power_button_handler()
280 pm1_control_handler(struct vmctx *ctx, int in, in pm1_control_handler()
420 sci_init(struct vmctx *ctx) in sci_init()
[all …]
H A Dacpi.h54 struct vmctx;
56 int acpi_build(struct vmctx *ctx, int ncpu);
57 void acpi_raise_gpe(struct vmctx *ctx, unsigned bit);
65 void sci_init(struct vmctx *ctx);
67 void pmtmr_init(struct vmctx *ctx);
H A Dbootrom.h39 struct vmctx;
41 void init_bootrom(struct vmctx *ctx);
46 int bootrom_alloc(struct vmctx *ctx, size_t len, int prot, int flags,
48 int bootrom_loadrom(struct vmctx *ctx, const nvlist_t *nvl);
H A Dinout.h47 struct vmctx;
56 typedef int (*inout_func_t)(struct vmctx *ctx, int in, int port,
90 int emulate_inout(struct vmctx *, struct vcpu *vcpu, struct vm_exit *vmexit);
92 int emulate_inout(struct vmctx *, struct vcpu *vcpu, struct vm_inout *inout);
H A Dpctestdev.c74 static int pctestdev_debugexit_io(struct vmctx *ctx, int in,
79 static int pctestdev_ioport_io(struct vmctx *ctx, int in,
81 static int pctestdev_irq_io(struct vmctx *ctx, int in,
91 pctestdev_init(struct vmctx *ctx) in pctestdev_init()
180 pctestdev_debugexit_io(struct vmctx *ctx __unused, int in, in pctestdev_debugexit_io()
213 pctestdev_ioport_io(struct vmctx *ctx __unused, int in, in pctestdev_ioport_io()
236 pctestdev_irq_io(struct vmctx *ctx, int in, int port, in pctestdev_irq_io()
H A Dbhyverun.c199 static void vm_loop(struct vmctx *ctx, struct vcpu *vcpu);
206 struct vmctx *ctx;
512 paddr_guest2host(struct vmctx *ctx, uintptr_t gaddr, size_t len) in paddr_guest2host()
756 vmexit_paging(struct vmctx *ctx __unused, struct vcpu *vcpu, in vmexit_paging()
881 vmexit_inst_emul(struct vmctx *ctx __unused, struct vcpu *vcpu, in vmexit_inst_emul()
977 vmexit_debug(struct vmctx *ctx __unused, struct vcpu *vcpu, in vmexit_debug()
1055 vm_loop(struct vmctx *ctx, struct vcpu *vcpu) in vm_loop()
1103 num_vcpus_allowed(struct vmctx *ctx, struct vcpu *vcpu) in num_vcpus_allowed()
1188 static struct vmctx *
1191 struct vmctx *ctx; in do_open()
[all …]
H A Dbhyverun.h51 struct vmctx;
54 void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len);
58 int vmexit_task_switch(struct vmctx *, struct vcpu *, struct vm_exit *);
H A Dacpi.c320 basl_load(struct vmctx *ctx, int fd) in basl_load()
346 basl_compile(struct vmctx *ctx, int (*fwrite_section)(FILE *)) in basl_compile()
436 build_dsdt(struct vmctx *const ctx) in build_dsdt()
444 build_facs(struct vmctx *const ctx) in build_facs()
461 build_fadt(struct vmctx *const ctx) in build_fadt()
534 build_hpet(struct vmctx *const ctx) in build_hpet()
556 build_madt(struct vmctx *const ctx) in build_madt()
631 build_mcfg(struct vmctx *const ctx) in build_mcfg()
656 build_rsdp(struct vmctx *const ctx) in build_rsdp()
693 build_spcr(struct vmctx *const ctx) in build_spcr()
[all …]
H A Dpctestdev.h35 struct vmctx;
38 int pctestdev_init(struct vmctx *ctx);
H A Dsmbiostbl.h36 struct vmctx;
38 int smbios_build(struct vmctx *ctx);
H A Datkbdc.h31 struct vmctx;
33 void atkbdc_init(struct vmctx *ctx);
H A Dtpm_device.h16 int tpm_device_create(struct tpm_device **new_dev, struct vmctx *vm_ctx,
20 int init_tpm(struct vmctx *ctx);
H A Dgdb.h35 void init_gdb(struct vmctx *ctx);
37 void init_mdb(struct vmctx *ctx);
H A Dpci_irq.h37 void pci_irq_init(struct vmctx *ctx);
43 void pirq_write(struct vmctx *ctx, int pin, uint8_t val);
H A Dtpm_device.c37 struct vmctx *vm_ctx;
130 tpm_device_create(struct tpm_device **const new_dev, struct vmctx *const vm_ctx, in tpm_device_create()
244 init_tpm(struct vmctx *ctx) in init_tpm()
264 init_tpm(struct vmctx *ctx __unused) in init_tpm()
H A Dacpi_device.h15 struct vmctx;
48 struct vmctx *vm_ctx, const struct acpi_device_emul *emul);
/illumos-gate/usr/src/test/bhyve-tests/tests/common/
H A Din_guest.h21 struct vmctx *test_initialize(const char *);
22 struct vmctx *test_initialize_flags(const char *, uint64_t);
23 void test_reinitialize(struct vmctx *, uint64_t);
30 const char *test_msg_get(struct vmctx *);
31 void test_msg_print(struct vmctx *);
H A Din_guest.c62 static struct vmctx *test_vmctx = NULL;
68 setup_rom(struct vmctx *ctx) in setup_rom()
90 populate_identity_table(struct vmctx *ctx) in populate_identity_table()
123 populate_desc_tables(struct vmctx *ctx) in populate_desc_tables()
299 test_msg_get(struct vmctx *ctx) in test_msg_get()
338 test_msg_print(struct vmctx *ctx) in test_msg_print()
348 load_payload(struct vmctx *ctx) in load_payload()
367 struct vmctx *
373 struct vmctx *
378 struct vmctx *ctx; in test_initialize_flags()
[all …]
H A Dcommon.h20 struct vmctx *create_test_vm(const char *);
21 int alloc_memseg(struct vmctx *, int, size_t, const char *);
/illumos-gate/usr/src/test/bhyve-tests/tests/vmm/
H A Dnpt_ops.c39 static struct vmctx *
56 struct vmctx *ctx = vm_open(vmname); in check_vmm_capability()
85 legacy_clear_dirty(struct vmctx *ctx) in legacy_clear_dirty()
114 test_legacy(struct vmctx *ctx) in test_legacy()
146 test_toggle_tracking(struct vmctx *ctx) in test_toggle_tracking()
186 test_inval_args(struct vmctx *ctx) in test_inval_args()
228 test_op_get_dirty(struct vmctx *ctx) in test_op_get_dirty()
273 test_op_set_dirty(struct vmctx *ctx) in test_op_set_dirty()
300 test_op_reset_dirty(struct vmctx *ctx) in test_op_reset_dirty()
363 struct vmctx *ctx; in main()
/illumos-gate/usr/src/test/bhyve-tests/tests/perf/
H A Dentry_exit.c50 query_cpu_freq(struct vmctx *ctx) in query_cpu_freq()
74 print_result(struct vmctx *ctx, uintptr_t gpa, uint_t test_idx) in print_result()
101 handle_exit(struct vmctx *ctx, const struct vm_exit *vexit, in handle_exit()
179 struct vmctx *ctx = NULL; in main()
/illumos-gate/usr/src/test/bhyve-tests/tests/inst_emul/
H A Dpage_dirty.c40 read_dirty_bitmap(struct vmctx *ctx, uint8_t *bitmap) in read_dirty_bitmap()
111 struct vmctx *ctx = NULL; in test_dirty_tracking_disabled()
150 struct vmctx *ctx = NULL; in main()

12345