libkvm - Add ability to access userspace from kgdb on cores
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 23 Oct 2010 02:32:01 +0000 (19:32 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 23 Oct 2010 02:32:01 +0000 (19:32 -0700)
commitc0202573cb1aa5547d680cc54e1b6fc8cb94e7e1
treeee18ce161e164f01e972d9baf4559b8c2155024e
parent79b7159f45d7d7636e4c877fa0069eff3b20d6d4
libkvm - Add ability to access userspace from kgdb on cores

* Use %cr3 from the dumppcb instead of KPML4phys on x86_64, and similarly
  for i386, to access the full page table as of when the panic occured
  instead of just the kernel page table.

* minidumps do not dump userspace so userspace will still not be available,
  but this gives us the option of sysctl'ing off minidumps when userspace
  access is desired, and kgdb will then be able to access the current
  userspace context as of the panic, as well.
lib/libkvm/kvm_i386.c
lib/libkvm/kvm_x86_64.c