xref: /illumos-gate/usr/src/uts/intel/io/vmm/vmm_util.h (revision 32640292339b07090f10ce34d455f98711077343)
17c8c0b82SPatrick Mooney /*-
2*32640292SAndy Fiddaman  * SPDX-License-Identifier: BSD-2-Clause
37c8c0b82SPatrick Mooney  *
47c8c0b82SPatrick Mooney  * Copyright (c) 2011 NetApp, Inc.
57c8c0b82SPatrick Mooney  * All rights reserved.
67c8c0b82SPatrick Mooney  *
77c8c0b82SPatrick Mooney  * Redistribution and use in source and binary forms, with or without
87c8c0b82SPatrick Mooney  * modification, are permitted provided that the following conditions
97c8c0b82SPatrick Mooney  * are met:
107c8c0b82SPatrick Mooney  * 1. Redistributions of source code must retain the above copyright
117c8c0b82SPatrick Mooney  *    notice, this list of conditions and the following disclaimer.
127c8c0b82SPatrick Mooney  * 2. Redistributions in binary form must reproduce the above copyright
137c8c0b82SPatrick Mooney  *    notice, this list of conditions and the following disclaimer in the
147c8c0b82SPatrick Mooney  *    documentation and/or other materials provided with the distribution.
157c8c0b82SPatrick Mooney  *
167c8c0b82SPatrick Mooney  * THIS SOFTWARE IS PROVIDED BY NETAPP, INC ``AS IS'' AND
177c8c0b82SPatrick Mooney  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
187c8c0b82SPatrick Mooney  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
197c8c0b82SPatrick Mooney  * ARE DISCLAIMED.  IN NO EVENT SHALL NETAPP, INC OR CONTRIBUTORS BE LIABLE
207c8c0b82SPatrick Mooney  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
217c8c0b82SPatrick Mooney  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
227c8c0b82SPatrick Mooney  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
237c8c0b82SPatrick Mooney  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
247c8c0b82SPatrick Mooney  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
257c8c0b82SPatrick Mooney  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
267c8c0b82SPatrick Mooney  * SUCH DAMAGE.
277c8c0b82SPatrick Mooney  */
287c8c0b82SPatrick Mooney 
297c8c0b82SPatrick Mooney #ifndef _VMM_UTIL_H_
307c8c0b82SPatrick Mooney #define	_VMM_UTIL_H_
317c8c0b82SPatrick Mooney 
327c8c0b82SPatrick Mooney struct trapframe;
337c8c0b82SPatrick Mooney 
347c8c0b82SPatrick Mooney bool		vmm_is_intel(void);
357c8c0b82SPatrick Mooney bool		vmm_is_svm(void);
367c8c0b82SPatrick Mooney bool		vmm_supports_1G_pages(void);
377c8c0b82SPatrick Mooney 
387c8c0b82SPatrick Mooney void		dump_trapframe(struct trapframe *tf);
397c8c0b82SPatrick Mooney 
407c8c0b82SPatrick Mooney #endif
41