xref: /freebsd/sys/x86/include/bhyve.h (revision 49b6254b3e09ee741f456617111ecb18803459fb)
1*49b6254bSColin Percival /*-
2*49b6254bSColin Percival  * SPDX-License-Identifier: BSD-2-Clause
3*49b6254bSColin Percival  *
4*49b6254bSColin Percival  * Copyright © 2025 Amazon.com, Inc. or its affiliates.
5*49b6254bSColin Percival  *
6*49b6254bSColin Percival  * Redistribution and use in source and binary forms, with or without
7*49b6254bSColin Percival  * modification, are permitted provided that the following conditions
8*49b6254bSColin Percival  * are met:
9*49b6254bSColin Percival  * 1. Redistributions of source code must retain the above copyright
10*49b6254bSColin Percival  *    notice, this list of conditions and the following disclaimer.
11*49b6254bSColin Percival  * 2. Redistributions in binary form must reproduce the above copyright
12*49b6254bSColin Percival  *    notice, this list of conditions and the following disclaimer in the
13*49b6254bSColin Percival  *    documentation and/or other materials provided with the distribution.
14*49b6254bSColin Percival  *
15*49b6254bSColin Percival  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16*49b6254bSColin Percival  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17*49b6254bSColin Percival  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18*49b6254bSColin Percival  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19*49b6254bSColin Percival  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*49b6254bSColin Percival  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*49b6254bSColin Percival  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*49b6254bSColin Percival  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23*49b6254bSColin Percival  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*49b6254bSColin Percival  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25*49b6254bSColin Percival  * SUCH DAMAGE.
26*49b6254bSColin Percival  */
27*49b6254bSColin Percival 
28*49b6254bSColin Percival #ifndef _X86_BHYVE_H_
29*49b6254bSColin Percival #define	_X86_BHYVE_H_
30*49b6254bSColin Percival 
31*49b6254bSColin Percival /* Bhyve feature detection */
32*49b6254bSColin Percival #define CPUID_BHYVE_FEATURES		0x40000001
33*49b6254bSColin Percival #define CPUID_BHYVE_FEAT_EXT_DEST_ID	(1UL << 0) /* MSI Extended Dest ID */
34*49b6254bSColin Percival 
35*49b6254bSColin Percival #endif
36