vmm: Attempt to backtrace the guest on error
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 5 Oct 2017 15:49:03 +0000 (11:49 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 5 Oct 2017 15:49:03 +0000 (11:49 -0400)
commit4b916f80c337675c7fd1b05ddfacf8ef261a33ad
treebc4be474ae84b3634de63999acb5957b45fd3210
parent416de0097f4f0101c444e0ebae9c956f4a6b800e
vmm: Attempt to backtrace the guest on error

Build the guest with CONFIG_FRAME_POINTER.

You can backtrace it with the usual bt-akaros.sh.  You'll need to point
bt-akaros's BIN_PATH to your vmlinux.  Here's what I do:

BIN_PREFIX=PATH_TO_THE_REPO/linux-guest/ ~/scripts/bt-akaros.sh

e.g.

echo '#01 Addr 0xffffffff81480cda is in vmlinux at offset 0xffffffff81480cda
 #02 Addr 0xffffffff81480d0f is in vmlinux at offset 0xffffffff81480d0f
 #03 Addr 0xffffffff813f8e37 is in vmlinux at offset 0xffffffff813f8e37'
 | BIN_PREFIX=../linux-guest/ ~/scripts/bt-akaros.sh

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/vmm/include/vmm/util.h
user/vmm/util.c
user/vmm/vmx.c