History log of /dflybsd-src/sys/dev/virtual/nvmm/Makefile (Results 1 – 9 of 9)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 8f1cce7a 18-Jan-2024 Aaron LI <aly@aaronly.me>

nvmm: Add KCFLAGS in Makefile to improve standalone module build

When a module is build alone, the '-g -DINVARIANTS' flags are not
present in the default compiler flags, which can hurts developing a

nvmm: Add KCFLAGS in Makefile to improve standalone module build

When a module is build alone, the '-g -DINVARIANTS' flags are not
present in the default compiler flags, which can hurts developing and
debuging the module. Add these flags via 'KCFLAGS' to help it.

show more ...


Revision tags: v6.4.0, v6.4.0rc1, v6.5.0, v6.2.2, v6.2.1, v6.3.0
# ac8179b5 25-Nov-2021 Sascha Wildner <saw@online.de>

kernel: Rename BUILDING_WITH_KERNEL to KERNBUILDDIR.

Fits better with e.g. KERNCONFDIR.

Add a small paragraph in kmod.mk which was taken from FreeBSD.


Revision tags: v6.0.1
# 32219ebd 23-Jul-2021 Sascha Wildner <saw@online.de>

kernel/nvmm: Fix doing just 'make depend' in the module directory.

*_if.h and opt_*.h have to be generated before assym.s.


# 11755db6 21-Jul-2021 Aaron LI <aly@aaronly.me>

nvmm: Fix building nvmm into kernel

* Remove 'DIAGNOSTIC' define from 'nvmm_os.h'. First, 'DIAGNOSTIC' and
'INVARIANTS' are different options. Secondly, 'DIAGNOSTIC' should be
defined in kerne

nvmm: Fix building nvmm into kernel

* Remove 'DIAGNOSTIC' define from 'nvmm_os.h'. First, 'DIAGNOSTIC' and
'INVARIANTS' are different options. Secondly, 'DIAGNOSTIC' should be
defined in kernel configs, e.g., LINT64 defines it.
* Remove 'LOCORE' define from 'nvmm_x86_{svmfunc,vmxfunc}.S'. It's
already defined on the command line, when compiling ASM source files
with the kernel (i.e., building the module into the kernel).
* Manually define 'LOCORE' for 'nvmm_x86_{svmfunc,vmxfunc}.o'
compilation in the Makefile, fixing building as a standalone module.

This fixes building nvmm into kernel, like LINT64.

Thanks swildner for reporting the issue and helping with the fix.

show more ...


# df3af4c9 18-Jul-2021 Aaron LI <aly@aaronly.me>

nvmm: Reorganize OS-specific code in nvmm_os.c

Split the OS-specific code in 'nvmm_os.c' into two separate source
files: nvmm_dragonfly.c and nvmm_netbsd.c, one for each supported OS.

Update Makefi

nvmm: Reorganize OS-specific code in nvmm_os.c

Split the OS-specific code in 'nvmm_os.c' into two separate source
files: nvmm_dragonfly.c and nvmm_netbsd.c, one for each supported OS.

Update Makefile and sys/conf/files accordingly.

show more ...


# 42862644 04-Jul-2021 Aaron LI <aly@aaronly.me>

nvmm: More OS independence

* Abstract out various OS-specific defines and functions and organize
them in 'nvmm_os.h' and 'nvmm_os.c'. This provides more flexibility
for us to port NVMM to Drago

nvmm: More OS independence

* Abstract out various OS-specific defines and functions and organize
them in 'nvmm_os.h' and 'nvmm_os.c'. This provides more flexibility
for us to port NVMM to DragonFly and other OSes.
* Remove 'nvmm_compat.h' and merge the code into the above new files.

Some local changes specific to DragonFly are not abstracted out, and
there also exists some NetBSD-specific code. The current version only
builds and works on DragonFly.

The OS-dependent code in nvmm_os.* and nvmm_x86.h is a bit messy at the
moment. I'll further clean them up later.

show more ...


# 32a277d9 29-May-2021 Aaron LI <aly@aaronly.me>

nvmm: Improve makefile to allow standalone build

This change makes the nvmm kernel module is buildable in its own
directory. This helps debug the module.


# 634ba020 09-May-2021 Aaron LI <aly@aaronly.me>

nvmm: Rewrite makefiles and hook to build

Note that kernel header files are install by the top-level
'include/Makefile'. However, it will install all found header
files in the specified directories

nvmm: Rewrite makefiles and hook to build

Note that kernel header files are install by the top-level
'include/Makefile'. However, it will install all found header
files in the specified directories, including 'nvmm_compat.h'
and 'nvmm_internal.h'. Therefore, add a guard to prevent them
from including by userland utilities (e.g., libnvmm, nvmmctl).

show more ...


# 6d65b43d 05-May-2021 Aaron LI <aly@aaronly.me>

Import nvmm(4) from NetBSD 9-stable

This is the kernel driver that provides support for hardware-accelerated
virtualization. It is made of an MI frontend with the following two MD
backends:
- x86 I

Import nvmm(4) from NetBSD 9-stable

This is the kernel driver that provides support for hardware-accelerated
virtualization. It is made of an MI frontend with the following two MD
backends:
- x86 Intel VMX
- x86 AMD SVM

Branch: NetBSD 9-stable
Date: Fri Apr 30 14:08:16 2021 +0000
Path: sys/dev/nvmm

show more ...