From: Paul Mackerras Date: Mon, 4 Feb 2013 18:10:51 +0000 (+0000) Subject: powerpc/kvm/book3s_hv: Preserve guest CFAR register value X-Git-Tag: v3.9-rc1~100^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0acb91112a148fbb31678e66839ef757f3be3aa4;p=pandora-kernel.git powerpc/kvm/book3s_hv: Preserve guest CFAR register value The CFAR (Come-From Address Register) is a useful debugging aid that exists on POWER7 processors. Currently HV KVM doesn't save or restore the CFAR register for guest vcpus, making the CFAR of limited use in guests. This adds the necessary code to capture the CFAR value saved in the early exception entry code (it has to be saved before any branch is executed), save it in the vcpu.arch struct, and restore it on entry to the guest. Signed-off-by: Paul Mackerras Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed