aboutsummaryrefslogtreecommitdiffstats
path: root/include/paths.h
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2016-12-27 10:17:56 +0000
committerAndriy Gapon <avg@FreeBSD.org>2016-12-27 10:17:56 +0000
commit7502cc401b7da56535a38b4f7c8b2d0d86b990c5 (patch)
tree34ba99c61d0c85fb7e7442fafbf73c29a4cad14e /include/paths.h
parent44fcad033fb5e910f1b38381fab447b37dca765c (diff)
downloadsrc-7502cc401b7da56535a38b4f7c8b2d0d86b990c5.tar.gz
src-7502cc401b7da56535a38b4f7c8b2d0d86b990c5.zip
libkvm: support access to vmm guest memory, allow writes to fwmem and vmm
This change consists of two parts: - allow libkvm to recognize /dev/vmm/* character devices as devices that provide access to the physical memory of a system (similarly to /dev/fwmem*) - allow libkvm to recognize that /dev/vmm/* and /dev/fwmem* devices provide access to the physical memory of live remote systems and, thus, the memory is writable As a result, it should be possible to run commands like $ kgdb -w /path/to/kernel /dev/fwmem0.0 $ kgdb /path/to/kernel /dev/vmm/guest Reviewed by: kib, jhb MFC after: 2 weeks Relnotes: yes Sponsored by: Panzura Differential Revision: https://reviews.freebsd.org/D8679
Notes
Notes: svn path=/head/; revision=310630
Diffstat (limited to 'include/paths.h')
-rw-r--r--include/paths.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/paths.h b/include/paths.h
index 3fa54dc10814..709e96d008b1 100644
--- a/include/paths.h
+++ b/include/paths.h
@@ -99,6 +99,7 @@
#define _PATH_VARDB "/var/db/"
#define _PATH_VARRUN "/var/run/"
#define _PATH_VARTMP "/var/tmp/"
+#define _PATH_DEVVMM "/dev/vmm/"
#define _PATH_YP "/var/yp/"
#define _PATH_UUCPLOCK "/var/spool/lock/"