blob: d7ab702104532408a028926264b7a9653a1534ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# $Id: Config.kmk $
## @file
# kBuild Configuration file for the VMM.
#
#
# Copyright (C) 2006-2020 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
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_3RD_IEM_STEP
VMM_COMMON_DEFS += VBOX_WITH_3RD_IEM_STEP
endif
ifdef VBOX_WITH_NESTED_HWVIRT_SVM
VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_SVM
endif
ifdef VBOX_WITH_NESTED_HWVIRT_VMX
VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_VMX
endif
ifdef VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM
VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM
endif
#ifdef VBOX_WITH_IEM
# VMM_COMMON_DEFS += VBOX_WITH_IEM
#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_VMMR0_DISABLE_LAPIC_NMI
VMM_COMMON_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
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_IDT
VMM_COMMON_DEFS += VBOX_WITH_64ON32_IDT
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
ifeq ($(KBUILD_TARGET),amd64)
VMM_COMMON_DEFS += VBOX_WITH_MORE_RING0_MEM_MAPPINGS
endif
ifdef VBOX_WITH_NATIVE_NEM
if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.amd64)
VMM_COMMON_DEFS += VBOX_WITH_NATIVE_NEM VBOX_WITH_NEM_R0
endif
endif
ifdef VBOX_WITH_RAM_IN_KERNEL
VMM_COMMON_DEFS += VBOX_WITH_RAM_IN_KERNEL
if1of ($(KBUILD_TARGET), linux solaris) # Hosts that implements SUPR0HCPhysToVirt.
VMM_COMMON_DEFS += VBOX_WITH_LINEAR_HOST_PHYS_MEM
endif
endif
# VMM_COMMON_DEFS += VBOX_WITH_NS_ACCOUNTING_STATS
|