diff options
author | Alexander Graf <agraf@suse.de> | 2010-04-19 20:49:46 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:18:55 -0400 |
commit | af7b4d104b36e782a5a97dd55958c3c63964e088 (patch) | |
tree | 6c727f71eb6c094d289d504a472a4f1a4f49d1bd /arch/powerpc/kvm/book3s.c | |
parent | 4f84139037b0c006c906cacbe904b25ccd4dfff9 (diff) |
KVM: PPC: Convert u64 -> ulong
There are some pieces in the code that I overlooked that still use
u64s instead of longs. This slows down 32 bit hosts unnecessarily, so
let's just move them to ulong.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/book3s.c')
-rw-r--r-- | arch/powerpc/kvm/book3s.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c index ec0a6512ab09..6ee9c5e1ffe2 100644 --- a/arch/powerpc/kvm/book3s.c +++ b/arch/powerpc/kvm/book3s.c | |||
@@ -813,12 +813,12 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu, | |||
813 | * so we can't use the NX bit inside the guest. Let's cross our fingers, | 813 | * so we can't use the NX bit inside the guest. Let's cross our fingers, |
814 | * that no guest that needs the dcbz hack does NX. | 814 | * that no guest that needs the dcbz hack does NX. |
815 | */ | 815 | */ |
816 | kvmppc_mmu_pte_flush(vcpu, kvmppc_get_pc(vcpu), ~0xFFFULL); | 816 | kvmppc_mmu_pte_flush(vcpu, kvmppc_get_pc(vcpu), ~0xFFFUL); |
817 | r = RESUME_GUEST; | 817 | r = RESUME_GUEST; |
818 | } else { | 818 | } else { |
819 | vcpu->arch.msr |= to_svcpu(vcpu)->shadow_srr1 & 0x58000000; | 819 | vcpu->arch.msr |= to_svcpu(vcpu)->shadow_srr1 & 0x58000000; |
820 | kvmppc_book3s_queue_irqprio(vcpu, exit_nr); | 820 | kvmppc_book3s_queue_irqprio(vcpu, exit_nr); |
821 | kvmppc_mmu_pte_flush(vcpu, kvmppc_get_pc(vcpu), ~0xFFFULL); | 821 | kvmppc_mmu_pte_flush(vcpu, kvmppc_get_pc(vcpu), ~0xFFFUL); |
822 | r = RESUME_GUEST; | 822 | r = RESUME_GUEST; |
823 | } | 823 | } |
824 | break; | 824 | break; |
@@ -844,7 +844,7 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu, | |||
844 | vcpu->arch.dear = dar; | 844 | vcpu->arch.dear = dar; |
845 | to_book3s(vcpu)->dsisr = to_svcpu(vcpu)->fault_dsisr; | 845 | to_book3s(vcpu)->dsisr = to_svcpu(vcpu)->fault_dsisr; |
846 | kvmppc_book3s_queue_irqprio(vcpu, exit_nr); | 846 | kvmppc_book3s_queue_irqprio(vcpu, exit_nr); |
847 | kvmppc_mmu_pte_flush(vcpu, vcpu->arch.dear, ~0xFFFULL); | 847 | kvmppc_mmu_pte_flush(vcpu, vcpu->arch.dear, ~0xFFFUL); |
848 | r = RESUME_GUEST; | 848 | r = RESUME_GUEST; |
849 | } | 849 | } |
850 | break; | 850 | break; |