Home
last modified time | relevance | path

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

1234

/devicemodel/include/
A Dvmmapi.h48 struct vmctx { struct
75 void (*update_gvt_bar)(struct vmctx *ctx); argument
97 bool vm_allow_dmabuf(struct vmctx *ctx);
104 void vm_pause(struct vmctx *ctx);
105 void vm_reset(struct vmctx *ctx);
111 void vm_clear_ioreq(struct vmctx *ctx);
118 void vm_destroy(struct vmctx *ctx);
123 void vm_unsetup_memory(struct vmctx *ctx);
132 int vm_run(struct vmctx *ctx);
157 void vm_stop_watchdog(struct vmctx *ctx);
[all …]
A Dacpi.h105 struct vmctx;
107 int acpi_build(struct vmctx *ctx, int ncpu);
114 void sci_init(struct vmctx *ctx);
115 void pm_write_dsdt(struct vmctx *ctx, int ncpu);
116 void pm_backto_wakeup(struct vmctx *ctx);
117 void inject_power_button_event(struct vmctx *ctx);
118 void power_button_init(struct vmctx *ctx);
119 void power_button_deinit(struct vmctx *ctx);
130 void osc_write_ospm_dsdt(struct vmctx *ctx, int ncpu);
A Dsw_load.h74 uint32_t acrn_create_e820_table(struct vmctx *ctx, struct e820_entry *e820);
78 int acrn_sw_load_bzimage(struct vmctx *ctx);
79 int acrn_sw_load_elf(struct vmctx *ctx);
80 int acrn_sw_load_vsbl(struct vmctx *ctx);
81 int acrn_sw_load_ovmf(struct vmctx *ctx);
82 int acrn_writeback_ovmf_nvstorage(struct vmctx *ctx);
83 int acrn_sw_load(struct vmctx *ctx);
A Drtc.h43 struct vmctx;
45 int vrtc_init(struct vmctx *ctx);
46 void vrtc_suspend(struct vmctx *ctx);
48 void vrtc_deinit(struct vmctx *ctx);
51 int vrtc_addr_handler(struct vmctx *ctx, int vcpu, int in, int port,
53 int vrtc_data_handler(struct vmctx *ctx, int vcpu, int in, int port,
A Dpci_core.h57 struct vmctx;
65 int (*vdev_init)(struct vmctx *, struct pci_vdev *,
69 void (*vdev_deinit)(struct vmctx *, struct pci_vdev *,
76 void (*vdev_phys_access)(struct vmctx *ctx, struct pci_vdev *dev);
79 int (*vdev_cfgwrite)(struct vmctx *ctx, int vcpu,
82 int (*vdev_cfgread)(struct vmctx *ctx, int vcpu,
87 void (*vdev_barwrite)(struct vmctx *ctx, int vcpu,
90 uint64_t (*vdev_barread)(struct vmctx *ctx, int vcpu,
143 struct vmctx *vmctx; member
310 int init_pci(struct vmctx *ctx);
[all …]
A Dmmio_dev.h23 void (*write_dsdt)(struct vmctx *);
32 void acpi_dev_write_dsdt(struct vmctx *ctx);
37 int init_mmio_devs(struct vmctx *ctx);
38 void deinit_mmio_devs(struct vmctx *ctx);
A Datkbdc.h82 struct vmctx;
99 struct vmctx *ctx;
116 void atkbdc_init(struct vmctx *ctx);
117 void atkbdc_deinit(struct vmctx *ctx);
A Dvga.h189 int vga_port_in_handler(struct vmctx *ctx, int in, int port, int bytes,
191 int vga_port_out_handler(struct vmctx *ctx, int in, int port, int bytes,
193 void vga_ioport_write(struct vmctx *ctx, int vcpu, struct vga *vga,
195 uint64_t vga_ioport_read(struct vmctx *ctx, int vcpu, struct vga *vga,
197 void vga_vbe_write(struct vmctx *ctx, int vcpu, struct vga *vga,
199 uint64_t vga_vbe_read(struct vmctx *ctx, int vcpu, struct vga *vga,
A Dpm.h24 struct vmctx;
25 int wait_for_resume(struct vmctx *ctx);
26 int vm_resume(struct vmctx *ctx);
A Dirq.h37 void pci_irq_init(struct vmctx *ctx);
38 void pci_irq_deinit(struct vmctx *ctx);
44 void pirq_write(struct vmctx *ctx, int pin, uint8_t val);
A Dmem.h34 struct vmctx;
36 typedef int (*mem_func_t)(struct vmctx *ctx, int vcpu, int dir, uint64_t addr,
53 int emulate_mem(struct vmctx *ctx, struct acrn_mmio_request *mmio_req);
A Dinout.h34 struct vmctx;
39 typedef int (*inout_func_t)(struct vmctx *ctx, int vcpu, int in, int port,
73 int emulate_inout(struct vmctx *ctx, int *pvcpu, struct acrn_pio_request *req);
A Dtpm.h18 int basl_fwrite_tpm2(FILE *fp, struct vmctx *ctx);
61 void init_vtpm2(struct vmctx *ctx);
64 void deinit_vtpm2(struct vmctx *ctx);
A Dpm_vuart.h15 int pm_by_vuart_init(struct vmctx *ctx, bool trigger_s5);
16 void pm_by_vuart_deinit(struct vmctx *ctx);
A Dhpet.h40 int vhpet_init(struct vmctx *ctx);
41 void vhpet_deinit(struct vmctx *ctx);
/devicemodel/core/
A Dvmmapi.c147 struct vmctx *
150 struct vmctx *ctx; in vm_create()
285 vm_destroy(struct vmctx *ctx) in vm_destroy()
347 vm_get_lowmem_limit(struct vmctx *ctx) in vm_get_lowmem_limit()
393 vm_unsetup_memory(struct vmctx *ctx) in vm_unsetup_memory()
447 vm_get_lowmem_size(struct vmctx *ctx) in vm_get_lowmem_size()
453 vm_get_highmem_size(struct vmctx *ctx) in vm_get_highmem_size()
459 vm_run(struct vmctx *ctx) in vm_run()
471 vm_pause(struct vmctx *ctx) in vm_pause()
479 vm_reset(struct vmctx *ctx) in vm_reset()
[all …]
A Dpm.c16 wait_for_resume(struct vmctx *ctx) in wait_for_resume()
28 vm_resume(struct vmctx *ctx) in vm_resume()
42 struct vmctx *ctx = (struct vmctx *)arg; in vm_monitor_resume()
A Dmain.c118 static void vm_loop(struct vmctx *ctx);
139 struct vmctx *mt_ctx;
143 static struct vmctx *_ctx;
534 vm_init_vdevs(struct vmctx *ctx) in vm_init_vdevs()
614 vm_deinit_vdevs(struct vmctx *ctx) in vm_deinit_vdevs()
643 vm_reset_vdevs(struct vmctx *ctx) in vm_reset_vdevs()
699 vm_system_reset(struct vmctx *ctx) in vm_system_reset()
743 vm_suspend_resume(struct vmctx *ctx) in vm_suspend_resume()
798 vm_loop(struct vmctx *ctx) in vm_loop()
845 num_vcpus_allowed(struct vmctx *ctx) in num_vcpus_allowed()
[all …]
A Dvm_event.c38 typedef void (*vm_event_handler)(struct vmctx *ctx, struct vm_event *event);
47 static void general_event_handler(struct vmctx *ctx, struct vm_event *event);
48 static void rtc_chg_event_handler(struct vmctx *ctx, struct vm_event *event);
144 static void vm_event_throttle_init(struct vmctx *ctx) in vm_event_throttle_init()
217 static void emit_vm_event(struct vmctx *ctx, struct vm_event *event) in emit_vm_event()
228 static void general_event_handler(struct vmctx *ctx, struct vm_event *event) in general_event_handler()
258 static void rtc_chg_event_handler(struct vmctx *ctx, struct vm_event *event) in rtc_chg_event_handler()
287 struct vmctx *ctx = arg; in rtc_chg_timer_cb()
312 struct vmctx *ctx = param; in vm_event_thread()
363 static int create_event_tunnel(struct vmctx *ctx, struct vm_event_tunnel *tunnel, int epoll_fd) in create_event_tunnel()
[all …]
/devicemodel/arch/x86/
A Dpm.c58 reset_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in reset_handler()
91 sci_assert(struct vmctx *ctx) in sci_assert()
100 sci_deassert(struct vmctx *ctx) in sci_deassert()
139 sci_update(struct vmctx *ctx) in sci_update()
169 pm1_status_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in pm1_status_handler()
193 pm_backto_wakeup(struct vmctx *ctx) in pm_backto_wakeup()
202 pm1_enable_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in pm1_enable_handler()
228 inject_power_button_event(struct vmctx *ctx) in inject_power_button_event()
255 pm1_control_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in pm1_control_handler()
297 smi_cmd_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in smi_cmd_handler()
[all …]
/devicemodel/hw/mmio/
A Dcore.c32 int (*init)(struct vmctx *, struct acrn_mmiodev *);
33 void (*deinit)(struct vmctx *, struct acrn_mmiodev *);
194 void acpi_dev_write_dsdt(struct vmctx *ctx) in acpi_dev_write_dsdt()
245 int init_mmio_dev(struct vmctx *ctx, struct mmio_dev_ops *ops, struct acrn_mmiodev *mmiodev) in init_mmio_dev()
263 void deinit_mmio_dev(struct vmctx *ctx, struct mmio_dev_ops *ops, struct acrn_mmiodev *mmiodev) in deinit_mmio_dev()
268 int init_mmio_devs(struct vmctx *ctx) in init_mmio_devs()
298 void deinit_mmio_devs(struct vmctx *ctx) in deinit_mmio_devs()
311 static int init_pt_mmiodev(struct vmctx *ctx, struct acrn_mmiodev *dev) in init_pt_mmiodev()
316 static void deinit_pt_mmiodev(struct vmctx *ctx, struct acrn_mmiodev *dev) in deinit_pt_mmiodev()
/devicemodel/hw/platform/acpi/
A Dacpi_pm.c15 static inline int get_vcpu_pm_info(struct vmctx *ctx, int vcpu_id, in get_vcpu_pm_info()
25 static inline int get_vcpu_px_cnt(struct vmctx *ctx, int vcpu_id, uint8_t *px_cnt) in get_vcpu_px_cnt()
36 uint8_t get_vcpu_cx_cnt(struct vmctx *ctx, int vcpu_id) in get_vcpu_cx_cnt()
47 static int get_vcpu_px_data(struct vmctx *ctx, int vcpu_id, in get_vcpu_px_data()
76 int get_vcpu_cx_data(struct vmctx *ctx, int vcpu_id, in get_vcpu_cx_data()
144 void dsdt_write_cst(struct vmctx *ctx, int vcpu_id) in dsdt_write_cst()
257 static int dsdt_write_pss(struct vmctx *ctx, int vcpu_id) in dsdt_write_pss()
360 void pm_write_dsdt(struct vmctx *ctx, int ncpu) in pm_write_dsdt()
439 void osc_write_ospm_dsdt(struct vmctx *ctx, int ncpu) in osc_write_ospm_dsdt()
/devicemodel/hw/pci/
A Dlpc.c138 vm_set_gsi_irq(lpc_bridge->vmctx, in lpc_uart_intr_assert()
153 lpc_uart_io_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in lpc_uart_io_handler()
185 lpc_deinit(struct vmctx *ctx) in lpc_deinit()
215 lpc_init(struct vmctx *ctx) in lpc_init()
388 pci_lpc_cfgwrite(struct vmctx *ctx, int vcpu, struct pci_vdev *pi, in pci_lpc_cfgwrite()
409 pci_lpc_write(struct vmctx *ctx, int vcpu, struct pci_vdev *pi, in pci_lpc_write()
415 pci_lpc_read(struct vmctx *ctx, int vcpu, struct pci_vdev *pi, in pci_lpc_read()
425 pci_lpc_init(struct vmctx *ctx, struct pci_vdev *pi, char *opts) in pci_lpc_init()
460 pci_lpc_deinit(struct vmctx *ctx, struct pci_vdev *pi, char *opts) in pci_lpc_deinit()
498 pci_igd_lpc_init(struct vmctx *ctx, struct pci_vdev *pi, char *opts) in pci_igd_lpc_init()
A Dwdt_i6300esb.c201 pci_wdt_cfg_read(struct vmctx *ctx, int vcpu, struct pci_vdev *dev, in pci_wdt_cfg_read()
219 pci_wdt_cfg_write(struct vmctx *ctx, int vcpu, struct pci_vdev *dev, in pci_wdt_cfg_write()
253 pci_wdt_bar_write(struct vmctx *ctx, int vcpu, struct pci_vdev *dev, in pci_wdt_bar_write()
304 pci_wdt_bar_read(struct vmctx *ctx, int vcpu, struct pci_vdev *dev, in pci_wdt_bar_read()
332 pci_wdt_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts) in pci_wdt_init()
380 pci_wdt_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *opts) in pci_wdt_deinit()
399 vm_stop_watchdog(struct vmctx *ctx) in vm_stop_watchdog()
405 vm_reset_watchdog(struct vmctx *ctx) in vm_reset_watchdog()
A Divshmem.c83 create_ivshmem_from_dm(struct vmctx *ctx, struct pci_vdev *vdev, in create_ivshmem_from_dm()
148 create_ivshmem_from_hv(struct vmctx *ctx, struct pci_vdev *vdev, in create_ivshmem_from_hv()
175 pci_ivshmem_write(struct vmctx *ctx, int vcpu, struct pci_vdev *dev, in pci_ivshmem_write()
203 pci_ivshmem_read(struct vmctx *ctx, int vcpu, struct pci_vdev *dev, in pci_ivshmem_read()
251 pci_ivshmem_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts) in pci_ivshmem_init()
358 destroy_ivshmem_from_hv(struct vmctx *ctx, struct pci_vdev *vdev) in destroy_ivshmem_from_hv()
370 pci_ivshmem_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *opts) in pci_ivshmem_deinit()

Completed in 30 milliseconds

1234