diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:49:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:49:04 +0000 |
commit | 16f504a9dca3fe3b70568f67b7d41241ae485288 (patch) | |
tree | c60f36ada0496ba928b7161059ba5ab1ab224f9d /src/VBox/VMM/Config.kmk | |
parent | Initial commit. (diff) | |
download | virtualbox-16f504a9dca3fe3b70568f67b7d41241ae485288.tar.xz virtualbox-16f504a9dca3fe3b70568f67b7d41241ae485288.zip |
Adding upstream version 7.0.6-dfsg.upstream/7.0.6-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/VMM/Config.kmk')
-rw-r--r-- | src/VBox/VMM/Config.kmk | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/src/VBox/VMM/Config.kmk b/src/VBox/VMM/Config.kmk new file mode 100644 index 00000000..0e2c47ed --- /dev/null +++ b/src/VBox/VMM/Config.kmk @@ -0,0 +1,99 @@ +# $Id: Config.kmk $ +## @file +# kBuild Configuration file for the VMM. +# + +# +# Copyright (C) 2006-2022 Oracle and/or its affiliates. +# +# This file is part of VirtualBox base platform packages, as +# available from https://www.virtualbox.org. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation, in version 3 of the +# License. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see <https://www.gnu.org/licenses>. +# +# SPDX-License-Identifier: GPL-3.0-only +# + +VBOX_VMM_CONFIG_KMK_INCLUDED = 1 + +# Include the top-level configure file. +ifndef VBOX_ROOT_CONFIG_KMK_INCLUDED + include $(PATH_ROOT)/Config.kmk +endif + +# +# Globals +# + +## DEFS variable that is picked up by all three VMM targets (R0, R3, RC). +# Can be prepended to by setting it in LocalConfig.kmk +VMM_COMMON_DEFS := USING_VMM_COMMON_DEFS +ifdef VBOX_WITH_HWVIRT + VMM_COMMON_DEFS += VBOX_WITH_HWVIRT +endif +ifdef VBOX_WITH_NESTED_HWVIRT_SVM + VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_SVM +endif +ifdef VBOX_WITH_IEM_TLB ## @todo VMX code doesn't compile with TLBs enabled. + VMM_COMMON_DEFS += IEM_WITH_CODE_TLB IEM_WITH_DATA_TLB +else + ifdef VBOX_WITH_NESTED_HWVIRT_VMX + VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_VMX + endif + ifdef VBOX_WITH_NESTED_HWVIRT_VMX_EPT + VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_VMX_EPT + endif + ifdef VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM + VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM + endif +endif +ifdef IEM_WITHOUT_ASSEMBLY + VMM_COMMON_DEFS += IEM_WITHOUT_ASSEMBLY +endif +# part of global DEFS +ifdef VBOX_WITH_MULTI_CORE + VMM_COMMON_DEFS += VBOX_WITH_MULTI_CORE +endif +ifdef VBOX_WITH_R0_LOGGING + VMM_COMMON_DEFS += VBOX_WITH_R0_LOGGING +endif +ifdef VBOX_WITH_PCI_PASSTHROUGH + VMM_COMMON_DEFS += VBOX_WITH_PCI_PASSTHROUGH +endif +ifdef VBOX_WITH_DTRACE_RC + VMM_COMMON_DEFS += VBOX_WITH_DTRACE_RC +endif +ifdef VBOX_WITH_SAFE_STR + VMM_COMMON_DEFS += VBOX_WITH_SAFE_STR +endif +ifdef VBOX_WITH_64ON32_CMOS_DEBUG + VMM_COMMON_DEFS += VBOX_WITH_64ON32_CMOS_DEBUG +endif +ifdef VBOXSTRICTRC_STRICT_ENABLED + VMM_COMMON_DEFS += VBOXSTRICTRC_STRICT_ENABLED +endif +if defined(VBOX_WITH_NATIVE_NEM) || !defined(VBOX_WITHOUT_PGM_NEM_MODE) + VMM_COMMON_DEFS += VBOX_WITH_PGM_NEM_MODE +endif +ifdef VBOX_WITH_NATIVE_NEM + if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), darwin.amd64 linux.amd64 win.amd64) + VMM_COMMON_DEFS += VBOX_WITH_NATIVE_NEM VBOX_WITH_NEM_R0 + endif +endif +if1of ($(KBUILD_TARGET), freebsd linux solaris) # Hosts that implements SUPR0HCPhysToVirt. + VMM_COMMON_DEFS += VBOX_WITH_LINEAR_HOST_PHYS_MEM +endif + +# VMM_COMMON_DEFS += VBOX_WITH_NS_ACCOUNTING_STATS + |