Home
last modified time | relevance | path

Searched refs:intel_gvt_host (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/i915/gvt/
Dmpt.h56 if (!intel_gvt_host.mpt->host_init) in intel_gvt_hypervisor_host_init()
59 return intel_gvt_host.mpt->host_init(dev, gvt, ops); in intel_gvt_hypervisor_host_init()
69 if (!intel_gvt_host.mpt->host_exit) in intel_gvt_hypervisor_host_exit()
72 intel_gvt_host.mpt->host_exit(dev, gvt); in intel_gvt_hypervisor_host_exit()
85 if (!intel_gvt_host.mpt->attach_vgpu) in intel_gvt_hypervisor_attach_vgpu()
88 return intel_gvt_host.mpt->attach_vgpu(vgpu, &vgpu->handle); in intel_gvt_hypervisor_attach_vgpu()
101 if (!intel_gvt_host.mpt->detach_vgpu) in intel_gvt_hypervisor_detach_vgpu()
104 intel_gvt_host.mpt->detach_vgpu(vgpu->handle); in intel_gvt_hypervisor_detach_vgpu()
138 ret = intel_gvt_host.mpt->inject_msi(vgpu->handle, addr, data); in intel_gvt_hypervisor_inject_msi()
153 return intel_gvt_host.mpt->from_virt_to_mfn(p); in intel_gvt_hypervisor_virt_to_mfn()
[all …]
Dgvt.c42 struct intel_gvt_host intel_gvt_host; variable
204 if (intel_gvt_host.initialized) in intel_gvt_init_host()
214 intel_gvt_host.mpt = try_then_request_module( in intel_gvt_init_host()
216 intel_gvt_host.hypervisor_type = INTEL_GVT_HYPERVISOR_XEN; in intel_gvt_init_host()
220 intel_gvt_host.mpt = try_then_request_module( in intel_gvt_init_host()
222 intel_gvt_host.hypervisor_type = INTEL_GVT_HYPERVISOR_KVM; in intel_gvt_init_host()
227 if (!intel_gvt_host.mpt) in intel_gvt_init_host()
231 supported_hypervisors[intel_gvt_host.hypervisor_type]); in intel_gvt_init_host()
233 intel_gvt_host.initialized = true; in intel_gvt_init_host()
360 if (WARN_ON(!intel_gvt_host.initialized)) in intel_gvt_init_device()
Dopregion.c303 switch (intel_gvt_host.hypervisor_type) { in intel_vgpu_opregion_base_write_handler()
341 if (intel_gvt_host.hypervisor_type == INTEL_GVT_HYPERVISOR_XEN) { in intel_vgpu_clean_opregion()
344 } else if (intel_gvt_host.hypervisor_type == INTEL_GVT_HYPERVISOR_KVM) { in intel_vgpu_clean_opregion()
475 switch (intel_gvt_host.hypervisor_type) { in intel_vgpu_emulate_opregion_request()
540 switch (intel_gvt_host.hypervisor_type) { in intel_vgpu_emulate_opregion_request()
Dgvt.h60 struct intel_gvt_host { struct
66 extern struct intel_gvt_host intel_gvt_host; argument