/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/sysmacros.h>
#include <sys/machsystm.h>
#include <sys/machcpuvar.h>
#include <vm/hat_sfmmu.h>
#include <sys/hypervisor_api.h>
void
{
}
int
{
/*
* This routine will return with an error return if any
* contig_mem_alloc() fails. It is expected that the caller will
* call cpu_intrq_cleanup() (or cleanup_cpu_common() which will).
* That will cleanly free only those blocks that were alloc'd.
*/
/*
* Allocate mondo data for xcalls.
*/
return (ENOMEM);
}
/*
* va_to_pa() is too expensive to call for every crosscall
* so we do it here at init time and save it in machcpu.
*/
/*
* Allocate a per-cpu list of ncpu_guest_max for xcalls
*/
if (size < INTR_REPORT_SIZE)
/*
* contig_mem_alloc() requires size to be a power of 2.
* Increase size to a power of 2 if necessary.
*/
}
return (ENOMEM);
}
/*
* Allocate sun4v interrupt and error queues.
*/
return (ENOMEM);
}
/*
* Allocate device queues
*/
return (ENOMEM);
}
/*
* Allocate resumable queue and its kernel buffer
*/
return (ENOMEM);
}
/* zero out the memory */
/*
* Allocate non-resumable queues
*/
return (ENOMEM);
}
/* zero out the memory */
return (0);
}
void
{
int cpu_list_size;
/*
* Free mondo data for xcalls.
*/
if (mcpup->mondo_data) {
}
/*
* Free per-cpu list of ncpu_guest_max for xcalls
*/
if (cpu_list_size < INTR_REPORT_SIZE)
/*
* contig_mem_alloc() requires size to be a power of 2.
* Increase size to a power of 2 if necessary.
*/
if (!ISP2(cpu_list_size)) {
}
}
/*
* Free sun4v interrupt and error queues.
*/
mcpup->cpu_q_size = 0;
}
mcpup->dev_q_size = 0;
}
mcpup->cpu_rq_size = 0;
}
if (mcpup->cpu_nrq_va) {
mcpup->cpu_nrq_size = 0;
}
}