Lines Matching refs:nib
351 static int vfio_ap_validate_nib(struct kvm_vcpu *vcpu, dma_addr_t *nib) in vfio_ap_validate_nib() argument
353 *nib = vcpu->run->s.regs.gprs[2]; in vfio_ap_validate_nib()
355 if (!*nib) in vfio_ap_validate_nib()
357 if (kvm_is_error_hva(gfn_to_hva(vcpu->kvm, *nib >> PAGE_SHIFT))) in vfio_ap_validate_nib()
416 dma_addr_t nib; in vfio_ap_irq_enable() local
420 if (vfio_ap_validate_nib(vcpu, &nib)) { in vfio_ap_irq_enable()
422 __func__, &nib, q->apqn); in vfio_ap_irq_enable()
428 ret = vfio_pin_pages(&q->matrix_mdev->vdev, nib, 1, in vfio_ap_irq_enable()
436 __func__, ret, &nib, q->apqn); in vfio_ap_irq_enable()
445 h_nib = page_to_phys(h_page) | (nib & ~PAGE_MASK); in vfio_ap_irq_enable()
451 vfio_unpin_pages(&q->matrix_mdev->vdev, nib, 1); in vfio_ap_irq_enable()
461 vfio_unpin_pages(&q->matrix_mdev->vdev, nib, 1); in vfio_ap_irq_enable()
475 q->saved_iova = nib; in vfio_ap_irq_enable()
484 vfio_unpin_pages(&q->matrix_mdev->vdev, nib, 1); in vfio_ap_irq_enable()