Lines Matching defs:kva
803 * free page_cnt pages, using any combination of mfns, pfns, and kva as long
806 * before giving them back to the hypervisor. kva space is not free'd up in
810 balloon_free_pages(uint_t page_cnt, mfn_t *mfns, caddr_t kva, pfn_t *pfns)
820 /* make sure kva is page aligned and maps to first pfn */
821 if (kva != NULL) {
822 ASSERT(((uintptr_t)kva & PAGEOFFSET) == 0);
824 ASSERT(hat_getpfnum(kas.a_hat, kva) == pfns[0]);
829 /* if we have a kva, we can clean all pages with just one bzero */
830 if ((kva != NULL) && balloon_zero_memory) {
831 bzero(kva, (page_cnt * PAGESIZE));
834 /* if we were given a kva and/or a pfn */
835 if ((kva != NULL) || (pfns != NULL)) {
838 * All the current callers only pass 1 page when using kva or
852 (kva + (PAGESIZE * i)));
861 if ((kva == NULL) && (balloon_zero_memory)) {
866 * unmap the pfn. We don't free up the kva vmem space
870 if (kva != NULL) {
871 hat_unload(kas.a_hat, (kva + (PAGESIZE * i)),