VirtualBox

source: vbox/trunk/src/VBox/VMM/Config.kmk@ 96407

Last change on this file since 96407 was 96407, checked in by vboxsync, 2 years ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1# $Id: Config.kmk 96407 2022-08-22 17:43:14Z vboxsync $
2## @file
3# kBuild Configuration file for the VMM.
4#
5
6#
7# Copyright (C) 2006-2022 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28VBOX_VMM_CONFIG_KMK_INCLUDED = 1
29
30# Include the top-level configure file.
31ifndef VBOX_ROOT_CONFIG_KMK_INCLUDED
32 include $(PATH_ROOT)/Config.kmk
33endif
34
35#
36# Globals
37#
38
39## DEFS variable that is picked up by all three VMM targets (R0, R3, RC).
40# Can be prepended to by setting it in LocalConfig.kmk
41VMM_COMMON_DEFS := USING_VMM_COMMON_DEFS
42ifdef VBOX_WITH_HWVIRT
43 VMM_COMMON_DEFS += VBOX_WITH_HWVIRT
44endif
45ifdef VBOX_WITH_NESTED_HWVIRT_SVM
46 VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_SVM
47endif
48ifdef VBOX_WITH_IEM_TLB ## @todo VMX code doesn't compile with TLBs enabled.
49 VMM_COMMON_DEFS += IEM_WITH_CODE_TLB IEM_WITH_DATA_TLB
50else
51 ifdef VBOX_WITH_NESTED_HWVIRT_VMX
52 VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_VMX
53 endif
54 ifdef VBOX_WITH_NESTED_HWVIRT_VMX_EPT
55 VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_VMX_EPT
56 endif
57 ifdef VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM
58 VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM
59 endif
60endif
61ifdef IEM_WITHOUT_ASSEMBLY
62 VMM_COMMON_DEFS += IEM_WITHOUT_ASSEMBLY
63endif
64# part of global DEFS
65ifdef VBOX_WITH_MULTI_CORE
66 VMM_COMMON_DEFS += VBOX_WITH_MULTI_CORE
67endif
68ifdef VBOX_WITH_R0_LOGGING
69 VMM_COMMON_DEFS += VBOX_WITH_R0_LOGGING
70endif
71ifdef VBOX_WITH_PCI_PASSTHROUGH
72 VMM_COMMON_DEFS += VBOX_WITH_PCI_PASSTHROUGH
73endif
74ifdef VBOX_WITH_DTRACE_RC
75 VMM_COMMON_DEFS += VBOX_WITH_DTRACE_RC
76endif
77ifdef VBOX_WITH_SAFE_STR
78 VMM_COMMON_DEFS += VBOX_WITH_SAFE_STR
79endif
80ifdef VBOX_WITH_64ON32_CMOS_DEBUG
81 VMM_COMMON_DEFS += VBOX_WITH_64ON32_CMOS_DEBUG
82endif
83ifdef VBOXSTRICTRC_STRICT_ENABLED
84 VMM_COMMON_DEFS += VBOXSTRICTRC_STRICT_ENABLED
85endif
86if defined(VBOX_WITH_NATIVE_NEM) || !defined(VBOX_WITHOUT_PGM_NEM_MODE)
87 VMM_COMMON_DEFS += VBOX_WITH_PGM_NEM_MODE
88endif
89ifdef VBOX_WITH_NATIVE_NEM
90 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), darwin.amd64 linux.amd64 win.amd64)
91 VMM_COMMON_DEFS += VBOX_WITH_NATIVE_NEM VBOX_WITH_NEM_R0
92 endif
93endif
94if1of ($(KBUILD_TARGET), freebsd linux solaris) # Hosts that implements SUPR0HCPhysToVirt.
95 VMM_COMMON_DEFS += VBOX_WITH_LINEAR_HOST_PHYS_MEM
96endif
97
98# VMM_COMMON_DEFS += VBOX_WITH_NS_ACCOUNTING_STATS
99
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette