forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: PPC: fix exit accounting for SPRs, tlbwe, tlbsx
The exit type setting for mfspr/mtspr is moved from 44x to toplevel SPR emulation. This enables it on e500, and makes sure that all SPRs are covered. Exit accounting for tlbwe and tlbsx is added to e500. Signed-off-by: Stuart Yoder <[email protected]> Signed-off-by: Scott Wood <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
- Loading branch information
Showing
3 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (C) 2008 Freescale Semiconductor, Inc. All rights reserved. | ||
* Copyright (C) 2008-2011 Freescale Semiconductor, Inc. All rights reserved. | ||
* | ||
* Author: Yu Liu, [email protected] | ||
* | ||
|
@@ -24,6 +24,7 @@ | |
#include "../mm/mmu_decl.h" | ||
#include "e500_tlb.h" | ||
#include "trace.h" | ||
#include "timing.h" | ||
|
||
#define to_htlb1_esel(esel) (tlb1_entry_num - (esel) - 1) | ||
|
||
|
@@ -506,6 +507,7 @@ int kvmppc_e500_emul_tlbsx(struct kvm_vcpu *vcpu, int rb) | |
vcpu_e500->mas7 = 0; | ||
} | ||
|
||
kvmppc_set_exit_type(vcpu, EMULATED_TLBSX_EXITS); | ||
return EMULATE_DONE; | ||
} | ||
|
||
|
@@ -571,6 +573,7 @@ int kvmppc_e500_emul_tlbwe(struct kvm_vcpu *vcpu) | |
write_host_tlbe(vcpu_e500, stlbsel, sesel); | ||
} | ||
|
||
kvmppc_set_exit_type(vcpu, EMULATED_TLBWE_EXITS); | ||
return EMULATE_DONE; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters