• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/amd64/vmm/io/

Lines Matching defs:vm

89 	struct vm	*vm;			/* owner of this device */
179 if (ppt->vm != NULL)
202 ppt_find(struct vm *vm, int bus, int slot, int func, struct pptdev **pptp)
219 if (ppt->vm != vm) /* Make sure we own this device */
226 ppt_unmap_mmio(struct vm *vm, struct pptdev *ppt)
235 (void)vm_unmap_mmio(vm, seg->gpa, seg->len);
335 ppt_assigned_devices(struct vm *vm)
342 if (ppt->vm == vm)
349 ppt_is_mmio(struct vm *vm, vm_paddr_t gpa)
356 if (ppt->vm != vm)
383 ppt_assign_device(struct vm *vm, int bus, int slot, int func)
396 ppt->vm = vm;
397 iommu_add_device(vm_iommu_domain(vm), pci_get_rid(ppt->dev));
402 ppt_unassign_device(struct vm *vm, int bus, int slot, int func)
407 error = ppt_find(vm, bus, slot, func, &ppt);
414 ppt_unmap_mmio(vm, ppt);
417 iommu_remove_device(vm_iommu_domain(vm), pci_get_rid(ppt->dev));
418 ppt->vm = NULL;
423 ppt_unassign_all(struct vm *vm)
430 if (ppt->vm == vm) {
435 vm_unassign_pptdev(vm, bus, slot, func);
443 ppt_map_mmio(struct vm *vm, int bus, int slot, int func,
450 error = ppt_find(vm, bus, slot, func, &ppt);
457 error = vm_map_mmio(vm, gpa, len, hpa);
477 if (ppt->vm != NULL)
478 lapic_intr_msi(ppt->vm, pptarg->addr, pptarg->msg_data);
497 ppt_setup_msi(struct vm *vm, int vcpu, int bus, int slot, int func,
507 error = ppt_find(vm, bus, slot, func, &ppt);
590 ppt_setup_msix(struct vm *vm, int vcpu, int bus, int slot, int func,
598 error = ppt_find(vm, bus, slot, func, &ppt);
701 ppt_disable_msix(struct vm *vm, int bus, int slot, int func)
706 error = ppt_find(vm, bus, slot, func, &ppt);