RE: [PATCH 2 of 2] kvm: ppc: Rename "struct tlbe" to "structkvmppc_44x_tlbe"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Hollis Blanchard [mailto:hollisb@xxxxxxxxxx] 
> Sent: Friday, September 12, 2008 3:49 AM
> To: kvm-ppc@xxxxxxxxxxxxxxx
> Cc: Liu Yu-B13201
> Subject: [PATCH 2 of 2] kvm: ppc: Rename "struct tlbe" to 
> "structkvmppc_44x_tlbe"
> 
> # HG changeset patch
> # User Hollis Blanchard <hollisb@xxxxxxxxxx>
> # Date 1221162418 18000
> # Node ID b09c4d295a8e971b63bcd8409d544498fc71503c
> # Parent  0f01a4354a6aac06b3fe7062e6d4ee538286c405
> kvm: ppc: Rename "struct tlbe" to "struct kvmppc_44x_tlbe"
> 
> This will ease ports to other cores.
> 
> Also remove unused "struct kvm_tlb" while we're at it.
> 
> Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
> 
> ---
> 6 files changed, 33 insertions(+), 34 deletions(-)
> arch/powerpc/include/asm/kvm_host.h |    6 +++---
> arch/powerpc/include/asm/kvm_ppc.h  |    5 -----
> arch/powerpc/kernel/asm-offsets.c   |    2 +-
> arch/powerpc/kvm/44x_tlb.c          |   22 ++++++++++++----------
> arch/powerpc/kvm/44x_tlb.h          |   24 +++++++++++++-----------
> arch/powerpc/kvm/booke_guest.c      |    8 ++++----
> 
> diff --git a/arch/powerpc/include/asm/kvm_host.h 
> b/arch/powerpc/include/asm/kvm_host.h
> --- a/arch/powerpc/include/asm/kvm_host.h
> +++ b/arch/powerpc/include/asm/kvm_host.h
> @@ -64,7 +64,7 @@ struct kvm_vcpu_stat {
>  	u32 halt_wakeup;
>  };
>  
> -struct tlbe {
> +struct kvmppc_44x_tlbe {
>  	u32 tid; /* Only the low 8 bits are used. */
>  	u32 word0;
>  	u32 word1;
> @@ -76,9 +76,9 @@ struct kvm_arch {
>  
>  struct kvm_vcpu_arch {
>  	/* Unmodified copy of the guest's TLB. */
> -	struct tlbe guest_tlb[PPC44x_TLB_SIZE];
> +	struct kvmppc_44x_tlbe guest_tlb[PPC44x_TLB_SIZE];
>  	/* TLB that's actually used when the guest is running. */
> -	struct tlbe shadow_tlb[PPC44x_TLB_SIZE];
> +	struct kvmppc_44x_tlbe shadow_tlb[PPC44x_TLB_SIZE];
>  	/* Pages which are referenced in the shadow TLB. */
>  	struct page *shadow_pages[PPC44x_TLB_SIZE];
>  

I have been thinking about merge kvm_vcpu_arch of 44x and e500.
But I'm not sure whether it's worth doing this.
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux