| /freebsd-14.2/lib/libvmmapi/ |
| H A D | vmmapi.h | 48 struct vmctx; 120 struct vmctx *vm_open(const char *name); 121 void vm_close(struct vmctx *ctx); 122 void vm_destroy(struct vmctx *ctx); 123 int vm_limit_rights(struct vmctx *ctx); 141 int vm_get_memflags(struct vmctx *ctx); 142 const char *vm_get_name(struct vmctx *ctx); 158 int vm_reinit(struct vmctx *ctx); 242 int vm_resume_all_cpus(struct vmctx *ctx); 267 int vm_restore_time(struct vmctx *ctx); [all …]
|
| H A D | vmmapi.c | 73 struct vmctx { struct 113 struct vmctx * 116 struct vmctx *vm; in vm_open() 140 vm_close(struct vmctx *vm) in vm_close() 149 vm_destroy(struct vmctx *vm) in vm_destroy() 229 vm_get_memflags(struct vmctx *ctx) in vm_get_memflags() 528 vm_get_name(struct vmctx *ctx) in vm_get_name() 733 vm_reinit(struct vmctx *ctx) in vm_reinit() 1720 vm_restore_time(struct vmctx *ctx) in vm_restore_time() 1729 vm_set_topology(struct vmctx *ctx, in vm_set_topology() [all …]
|
| H A D | internal.h | 10 struct vmctx; 13 struct vmctx *ctx;
|
| /freebsd-14.2/usr.sbin/bhyve/amd64/ |
| H A D | pm.c | 61 reset_handler(struct vmctx *ctx __unused, int in, in reset_handler() 91 sci_assert(struct vmctx *ctx) in sci_assert() 101 sci_deassert(struct vmctx *ctx) in sci_deassert() 133 sci_update(struct vmctx *ctx) in sci_update() 159 pm1_status_handler(struct vmctx *ctx, int in, in pm1_status_handler() 183 pm1_enable_handler(struct vmctx *ctx, int in, in pm1_enable_handler() 211 struct vmctx *ctx; in power_button_handler() 236 pm1_control_handler(struct vmctx *ctx, int in, in pm1_control_handler() 271 acpi_raise_gpe(struct vmctx *ctx, unsigned bit) in acpi_raise_gpe() 310 gpe0_en(struct vmctx *ctx, int in, int port __unused, in gpe0_en() [all …]
|
| H A D | vmexit.c | 73 vmexit_inout(struct vmctx *ctx, struct vcpu *vcpu, struct vm_run *vmrun) in vmexit_inout() 97 vmexit_rdmsr(struct vmctx *ctx __unused, struct vcpu *vcpu, in vmexit_rdmsr() 130 vmexit_wrmsr(struct vmctx *ctx __unused, struct vcpu *vcpu, in vmexit_wrmsr() 289 vmexit_bogus(struct vmctx *ctx __unused, struct vcpu *vcpu __unused, in vmexit_bogus() 307 vmexit_hlt(struct vmctx *ctx __unused, struct vcpu *vcpu __unused, in vmexit_hlt() 319 vmexit_pause(struct vmctx *ctx __unused, struct vcpu *vcpu __unused, in vmexit_pause() 326 vmexit_mtrap(struct vmctx *ctx __unused, struct vcpu *vcpu, in vmexit_mtrap() 343 vmexit_inst_emul(struct vmctx *ctx __unused, struct vcpu *vcpu, in vmexit_inst_emul() 423 vmexit_debug(struct vmctx *ctx __unused, struct vcpu *vcpu, in vmexit_debug() 457 vmexit_breakpoint(struct vmctx *ctx __unused, struct vcpu *vcpu, in vmexit_breakpoint() [all …]
|
| H A D | inout.h | 35 struct vmctx; 41 typedef int (*inout_func_t)(struct vmctx *ctx, int in, int port, 74 int emulate_inout(struct vmctx *ctx, struct vcpu *vcpu, struct vm_exit *vmexit);
|
| H A D | atkbdc.h | 32 struct vmctx; 34 void atkbdc_init(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_machdep.c | 140 bhyve_init_platform(struct vmctx *ctx, struct vcpu *bsp __unused) in bhyve_init_platform() 162 bhyve_init_platform_late(struct vmctx *ctx, struct vcpu *bsp __unused) in bhyve_init_platform_late()
|
| H A D | pci_irq.c | 99 pirq_write(struct vmctx *ctx, int pin, uint8_t val) in pirq_write() 137 pci_irq_init(struct vmctx *ctx __unused) in pci_irq_init() 204 struct vmctx *ctx = pi->pi_vmctx; in pirq_alloc_pin()
|
| /freebsd-14.2/usr.sbin/bhyve/ |
| H A D | bhyverun.h | 41 struct vmctx; 44 void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len); 46 uintptr_t paddr_host2guest(struct vmctx *ctx, void *addr); 57 typedef int (*vmexit_handler_t)(struct vmctx *, struct vcpu *, struct vm_run *); 63 int bhyve_init_platform(struct vmctx *ctx, struct vcpu *bsp); 64 int bhyve_init_platform_late(struct vmctx *ctx, struct vcpu *bsp);
|
| H A D | snapshot.h | 46 struct vmctx; 62 struct vmctx *ctx; 93 int restore_vm_mem(struct vmctx *ctx, struct restore_state *rstate); 94 int vm_restore_kern_structs(struct vmctx *ctx, struct restore_state *rstate); 100 int get_checkpoint_msg(int conn_fd, struct vmctx *ctx); 102 int init_checkpoint_thread(struct vmctx *ctx); 106 int vm_snapshot_guest2host_addr(struct vmctx *ctx, void **addrp, size_t len,
|
| 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, 48 int bootrom_loadrom(struct vmctx *ctx, const nvlist_t *nvl);
|
| 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);
|
| H A D | pctestdev.c | 75 static int pctestdev_debugexit_io(struct vmctx *ctx, int in, 80 static int pctestdev_ioport_io(struct vmctx *ctx, int in, 82 static int pctestdev_irq_io(struct vmctx *ctx, int in, 92 pctestdev_init(struct vmctx *ctx) in pctestdev_init() 181 pctestdev_debugexit_io(struct vmctx *ctx __unused, int in, in pctestdev_debugexit_io() 214 pctestdev_ioport_io(struct vmctx *ctx __unused, int in, in pctestdev_ioport_io() 237 pctestdev_irq_io(struct vmctx *ctx, int in, int port, in pctestdev_irq_io()
|
| H A D | acpi.c | 320 basl_load(struct vmctx *ctx, int fd) in basl_load() 347 basl_compile(struct vmctx *ctx, int (*fwrite_section)(FILE *)) in basl_compile() 437 build_dsdt(struct vmctx *const ctx) in build_dsdt() 445 build_facs(struct vmctx *const ctx) in build_facs() 463 build_fadt(struct vmctx *const ctx) in build_fadt() 537 build_hpet(struct vmctx *const ctx) in build_hpet() 566 build_madt(struct vmctx *const ctx) in build_madt() 641 build_mcfg(struct vmctx *const ctx) in build_mcfg() 666 build_rsdp(struct vmctx *const ctx) in build_rsdp() 703 build_spcr(struct vmctx *const ctx) in build_spcr() [all …]
|
| H A D | smbiostbl.h | 32 struct vmctx; 34 int smbios_build(struct vmctx *ctx);
|
| H A D | pctestdev.h | 35 struct vmctx; 38 int pctestdev_init(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 | bhyverun.c | 109 static void vm_loop(struct vmctx *ctx, struct vcpu *vcpu); 112 struct vmctx *ctx; 384 paddr_guest2host(struct vmctx *ctx, uintptr_t gaddr, size_t len) in paddr_guest2host() 392 paddr_host2guest(struct vmctx *ctx, void *addr) in paddr_host2guest() 496 vm_loop(struct vmctx *ctx, struct vcpu *vcpu) in vm_loop() 538 num_vcpus_allowed(struct vmctx *ctx, struct vcpu *vcpu) in num_vcpus_allowed() 558 static struct vmctx * 561 struct vmctx *ctx; in do_open() 698 struct vmctx *ctx; in main()
|
| H A D | acpi_device.h | 15 struct vmctx; 48 struct vmctx *vm_ctx, const struct acpi_device_emul *emul);
|
| H A D | snapshot.c | 779 restore_vm_mem(struct vmctx *ctx, struct restore_state *rstate) in restore_vm_mem() 793 vm_restore_kern_structs(struct vmctx *ctx, struct restore_state *rstate) in vm_restore_kern_structs() 929 vm_save_kern_struct(struct vmctx *ctx, int data_fd, xo_handle_t *xop, in vm_save_kern_struct() 969 vm_save_kern_structs(struct vmctx *ctx, int data_fd, xo_handle_t *xop) in vm_save_kern_structs() 1194 vm_vcpu_pause(struct vmctx *ctx) in vm_vcpu_pause() 1206 vm_vcpu_resume(struct vmctx *ctx) in vm_vcpu_resume() 1217 vm_checkpoint(struct vmctx *ctx, int fddir, const char *checkpoint_file, in vm_checkpoint() 1336 handle_message(struct vmctx *ctx, nvlist_t *nvl) in handle_message() 1381 vm_do_checkpoint(struct vmctx *ctx, const nvlist_t *nvl) in vm_do_checkpoint() 1403 init_checkpoint_thread(struct vmctx *ctx) in init_checkpoint_thread() [all …]
|
| H A D | tpm_device.c | 33 struct vmctx *vm_ctx; 126 tpm_device_create(struct tpm_device **const new_dev, struct vmctx *const vm_ctx, in tpm_device_create() 239 init_tpm(struct vmctx *ctx) in init_tpm()
|
| H A D | bootrom.c | 119 init_bootrom(struct vmctx *ctx) in init_bootrom() 130 bootrom_alloc(struct vmctx *ctx, size_t len, int prot, int flags, in bootrom_alloc() 192 bootrom_loadrom(struct vmctx *ctx, const nvlist_t *nvl) in bootrom_loadrom()
|
| H A D | basl.h | 70 int basl_init(struct vmctx *ctx); 98 int basl_table_create(struct basl_table **table, struct vmctx *ctx,
|