/illumos-gate/usr/src/lib/libvmmapi/common/ |
H A D | vmmapi.h | 60 struct vmctx; 106 int vm_get_memseg(struct vmctx *ctx, int ident, size_t *lenp, char *name, 115 int vm_mmap_getnext(struct vmctx *ctx, vm_paddr_t *gpa, int *segid, 119 int vm_get_guestmem_from_ctx(struct vmctx *ctx, char **guest_baseaddr, 128 void *vm_create_devmem(struct vmctx *ctx, int segid, const char *name, 135 int vm_get_devmem_offset(struct vmctx *ctx, int segid, off_t *mapoff); 142 int vm_mmap_memseg(struct vmctx *ctx, vm_paddr_t gpa, int segid, 145 int vm_munmap_memseg(struct vmctx *ctx, vm_paddr_t gpa, size_t len); 152 struct vmctx *vm_open(const char *name); 153 void vm_close(struct vmctx *ctx); [all …]
|
H A D | vmmapi.c | 97 struct vmctx { struct 175 struct vmctx * 178 struct vmctx *vm; in vm_open() 181 vm = malloc(sizeof(struct vmctx) + strlen(name) + 1); in vm_open() 203 vm_close(struct vmctx *vm) in vm_close() 212 vm_destroy(struct vmctx *vm) in vm_destroy() 224 vm_close(struct vmctx *vm) in vm_close() 235 vm_destroy(struct vmctx *vm) in vm_destroy() 250 vm_vcpu_open(struct vmctx *ctx, int vcpuid) in vm_vcpu_open() 276 struct vmctx * [all …]
|
H A D | internal.h | 10 struct vmctx; 13 struct vmctx *ctx;
|
/illumos-gate/usr/src/cmd/bhyve/amd64/ |
H A D | pm.c | 60 struct vmctx *pwr_ctx; 74 reset_handler(struct vmctx *ctx __unused, int in, in reset_handler() 104 sci_assert(struct vmctx *ctx) in sci_assert() 114 sci_deassert(struct vmctx *ctx) in sci_deassert() 146 sci_update(struct vmctx *ctx) in sci_update() 172 pm1_status_handler(struct vmctx *ctx, int in, in pm1_status_handler() 196 pm1_enable_handler(struct vmctx *ctx, int in, in pm1_enable_handler() 225 struct vmctx *ctx; in power_button_handler() 279 pm1_control_handler(struct vmctx *ctx, int in, in pm1_control_handler() 316 acpi_raise_gpe(struct vmctx *ctx, unsigned bit) in acpi_raise_gpe() [all …]
|
H A D | vmexit.c | 177 vmexit_inout(struct vmctx *ctx, struct vcpu *vcpu, struct vm_exit *vme) in vmexit_inout() 210 vmexit_rdmsr(struct vmctx *ctx __unused, struct vcpu *vcpu, struct vm_exit *vme) in vmexit_rdmsr() 239 vmexit_wrmsr(struct vmctx *ctx __unused, struct vcpu *vcpu, struct vm_exit *vme) in vmexit_wrmsr() 324 vmexit_run_state(struct vmctx *ctx __unused, struct vcpu *vcpu __unused, in vmexit_run_state() 336 vmexit_paging(struct vmctx *ctx __unused, struct vcpu *vcpu, in vmexit_paging() 373 vmexit_vmx(struct vmctx *ctx, struct vcpu *vcpu, struct vm_exit *vme) in vmexit_vmx() 406 vmexit_svm(struct vmctx *ctx __unused, struct vcpu *vcpu, struct vm_exit *vme) in vmexit_svm() 419 vmexit_bogus(struct vmctx *ctx __unused, struct vcpu *vcpu __unused, in vmexit_bogus() 429 vmexit_hlt(struct vmctx *ctx __unused, struct vcpu *vcpu __unused, in vmexit_hlt() 442 vmexit_pause(struct vmctx *ctx __unused, struct vcpu *vcpu __unused, in vmexit_pause() [all …]
|
H A D | inout.h | 47 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 D | atkbdc.h | 31 struct vmctx; 33 void atkbdc_init(struct vmctx *ctx);
|
/illumos-gate/usr/src/test/bhyve-tests/tests/common/ |
H A D | in_guest.h | 21 struct vmctx *test_initialize(const char *); 22 struct vmctx *test_initialize_plain(const char *); 23 struct vmctx *test_initialize_flags(const char *, uint64_t); 24 void test_reinitialize(struct vmctx *, uint64_t); 31 const char *test_msg_get(struct vmctx *); 32 void test_msg_print(struct vmctx *);
|
H A D | in_guest.c | 62 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 static struct vmctx * 372 struct vmctx *ctx; in test_initialize_opts() 418 struct vmctx * [all …]
|
H A D | common.h | 20 struct vmctx *create_test_vm(const char *); 21 int alloc_memseg(struct vmctx *, int, size_t, const char *);
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | bhyverun.h | 53 struct vmctx; 56 extern void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len); 64 typedef int (*vmexit_handler_t)(struct vmctx *, struct vcpu *, 67 extern int vmexit_task_switch(struct vmctx *, struct vcpu *, struct vm_exit *); 73 int bhyve_init_platform(struct vmctx *ctx, struct vcpu *bsp); 74 int bhyve_init_platform_late(struct vmctx *ctx, struct vcpu *bsp);
|
H A D | acpi.h | 54 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 D | bootrom.h | 39 struct vmctx; 41 void init_bootrom(struct vmctx *ctx); 46 int bootrom_alloc(struct vmctx *ctx, size_t len, int prot, int flags, 49 int bootrom_loadrom(struct vmctx *ctx);
|
H A D | pctestdev.c | 73 static int pctestdev_debugexit_io(struct vmctx *ctx, int in, 78 static int pctestdev_ioport_io(struct vmctx *ctx, int in, 80 static int pctestdev_irq_io(struct vmctx *ctx, int in, 90 pctestdev_init(struct vmctx *ctx) in pctestdev_init() 179 pctestdev_debugexit_io(struct vmctx *ctx __unused, int in, in pctestdev_debugexit_io() 212 pctestdev_ioport_io(struct vmctx *ctx __unused, int in, in pctestdev_ioport_io() 235 pctestdev_irq_io(struct vmctx *ctx, int in, int port, in pctestdev_irq_io()
|
H A D | acpi.c | 319 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 D | pctestdev.h | 35 struct vmctx; 38 int pctestdev_init(struct vmctx *ctx);
|
H A D | smbiostbl.h | 36 struct vmctx; 38 int smbios_build(struct vmctx *ctx);
|
H A D | tpm_device.h | 16 int tpm_device_create(struct tpm_device **new_dev, struct vmctx *vm_ctx, 20 int init_tpm(struct vmctx *ctx);
|
H A D | gdb.h | 35 void init_gdb(struct vmctx *ctx); 37 void init_mdb(struct vmctx *ctx);
|
H A D | pci_irq.h | 37 void pci_irq_init(struct vmctx *ctx); 43 void pirq_write(struct vmctx *ctx, int pin, uint8_t val);
|
H A D | bhyverun.c | 120 static void vm_loop(struct vmctx *ctx, struct vcpu *vcpu); 123 struct vmctx *ctx; 358 paddr_guest2host(struct vmctx *ctx, uintptr_t gaddr, size_t len) in paddr_guest2host() 458 vm_loop(struct vmctx *ctx, struct vcpu *vcpu) in vm_loop() 507 num_vcpus_allowed(struct vmctx *ctx, struct vcpu *vcpu) in num_vcpus_allowed() 533 static struct vmctx * 536 struct vmctx *ctx; in do_open() 681 struct vmctx *ctx; in main()
|
H A D | tpm_device.c | 37 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 D | acpi_device.h | 15 struct vmctx; 48 struct vmctx *vm_ctx, const struct acpi_device_emul *emul);
|
/illumos-gate/usr/src/test/bhyve-tests/tests/vmm/ |
H A D | npt_ops.c | 39 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 D | entry_exit.c | 50 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()
|