forked from Minki/linux
Merge branch 'kvm-ppc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into kvm-master
Two commits which fix host crashes. Signed-off-by: Paolo BOnzini <pbonzini@redhat.com>
This commit is contained in:
commit
7b5e0a4e82
@ -164,8 +164,10 @@ long kvmppc_alloc_reset_hpt(struct kvm *kvm, int order)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (kvm->arch.hpt.virt)
|
||||
if (kvm->arch.hpt.virt) {
|
||||
kvmppc_free_hpt(&kvm->arch.hpt);
|
||||
kvmppc_rmap_reset(kvm);
|
||||
}
|
||||
|
||||
err = kvmppc_allocate_hpt(&info, order);
|
||||
if (err < 0)
|
||||
|
@ -3211,6 +3211,8 @@ static int kvmppc_vcpu_run_hv(struct kvm_run *run, struct kvm_vcpu *vcpu)
|
||||
run->fail_entry.hardware_entry_failure_reason = 0;
|
||||
return -EINVAL;
|
||||
}
|
||||
/* Enable TM so we can read the TM SPRs */
|
||||
mtmsr(mfmsr() | MSR_TM);
|
||||
current->thread.tm_tfhar = mfspr(SPRN_TFHAR);
|
||||
current->thread.tm_tfiar = mfspr(SPRN_TFIAR);
|
||||
current->thread.tm_texasr = mfspr(SPRN_TEXASR);
|
||||
|
Loading…
Reference in New Issue
Block a user