diff options
author | Bharat Bhushan <Bharat.Bhushan@freescale.com> | 2014-07-21 01:53:26 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-07-28 09:23:14 -0400 |
commit | 99e99d19a86dc596703ed79dcecf9ca6b32a6a8a (patch) | |
tree | 9b7f2622633ad9f922a569b3403d18b83f7ede6f /arch/powerpc/kernel/asm-offsets.c | |
parent | f5250471b2d6ad27d536cb34ce39d76b91b2b36b (diff) |
kvm: ppc: bookehv: Save restore SPRN_SPRG9 on guest entry exit
SPRN_SPRG is used by debug interrupt handler, so this is required for
debug support.
Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kernel/asm-offsets.c')
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index 17ffcb4f27f9..ab9ae0411e8f 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c | |||
@@ -668,6 +668,7 @@ int main(void) | |||
668 | DEFINE(VCPU_LR, offsetof(struct kvm_vcpu, arch.lr)); | 668 | DEFINE(VCPU_LR, offsetof(struct kvm_vcpu, arch.lr)); |
669 | DEFINE(VCPU_CTR, offsetof(struct kvm_vcpu, arch.ctr)); | 669 | DEFINE(VCPU_CTR, offsetof(struct kvm_vcpu, arch.ctr)); |
670 | DEFINE(VCPU_PC, offsetof(struct kvm_vcpu, arch.pc)); | 670 | DEFINE(VCPU_PC, offsetof(struct kvm_vcpu, arch.pc)); |
671 | DEFINE(VCPU_SPRG9, offsetof(struct kvm_vcpu, arch.sprg9)); | ||
671 | DEFINE(VCPU_LAST_INST, offsetof(struct kvm_vcpu, arch.last_inst)); | 672 | DEFINE(VCPU_LAST_INST, offsetof(struct kvm_vcpu, arch.last_inst)); |
672 | DEFINE(VCPU_FAULT_DEAR, offsetof(struct kvm_vcpu, arch.fault_dear)); | 673 | DEFINE(VCPU_FAULT_DEAR, offsetof(struct kvm_vcpu, arch.fault_dear)); |
673 | DEFINE(VCPU_FAULT_ESR, offsetof(struct kvm_vcpu, arch.fault_esr)); | 674 | DEFINE(VCPU_FAULT_ESR, offsetof(struct kvm_vcpu, arch.fault_esr)); |