From: David Daney <ddaney.cavm@gmail.com>
To: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
Cc: pbonzini@redhat.com, gleb@kernel.org, kvm@vger.kernel.org,
sanjayl@kymasys.com, james.hogan@imgtec.com, ralf@linux-mips.org,
linux-mips@linux-mips.org
Subject: Re: [PATCH v4 5/7] MIPS: KVM: Rename files to remove the prefix "kvm_" and "kvm_mips_"
Date: Thu, 26 Jun 2014 12:28:38 -0700 [thread overview]
Message-ID: <53AC7466.6070401@gmail.com> (raw)
In-Reply-To: <1403809900-17454-6-git-send-email-dengcheng.zhu@imgtec.com>
On 06/26/2014 12:11 PM, Deng-Cheng Zhu wrote:
> From: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
>
> Since all the files are in arch/mips/kvm/, there's no need of the prefixes
> "kvm_" and "kvm_mips_".
>
I don't like this change.
It will leads me to confuse arch/mips/kvm/interrupt.h with
include/linux/interrupt.h
x86 calls these things irq.c and irq.h, perhaps that would be a little
better.
There is precedence in x86 for some of the names though.
But really why churn up the code in the first place? the kvm_mips
prefix does tell us exactly what we are dealing with.
> Reviewed-by: James Hogan <james.hogan@imgtec.com>
> Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
> ---
> arch/mips/kvm/Makefile | 8 ++++----
> arch/mips/kvm/{kvm_cb.c => callback.c} | 0
> arch/mips/kvm/{kvm_mips_commpage.c => commpage.c} | 2 +-
> arch/mips/kvm/{kvm_mips_comm.h => commpage.h} | 0
> arch/mips/kvm/{kvm_mips_dyntrans.c => dyntrans.c} | 2 +-
> arch/mips/kvm/{kvm_mips_emul.c => emulate.c} | 6 +++---
> arch/mips/kvm/{kvm_mips_int.c => interrupt.c} | 2 +-
> arch/mips/kvm/{kvm_mips_int.h => interrupt.h} | 0
> arch/mips/kvm/{kvm_locore.S => locore.S} | 0
> arch/mips/kvm/{kvm_mips.c => mips.c} | 6 +++---
> arch/mips/kvm/{kvm_mips_opcode.h => opcode.h} | 0
> arch/mips/kvm/{kvm_mips_stats.c => stats.c} | 0
> arch/mips/kvm/{kvm_tlb.c => tlb.c} | 0
> arch/mips/kvm/{kvm_trap_emul.c => trap_emul.c} | 4 ++--
> 14 files changed, 15 insertions(+), 15 deletions(-)
> rename arch/mips/kvm/{kvm_cb.c => callback.c} (100%)
> rename arch/mips/kvm/{kvm_mips_commpage.c => commpage.c} (97%)
> rename arch/mips/kvm/{kvm_mips_comm.h => commpage.h} (100%)
> rename arch/mips/kvm/{kvm_mips_dyntrans.c => dyntrans.c} (99%)
> rename arch/mips/kvm/{kvm_mips_emul.c => emulate.c} (99%)
> rename arch/mips/kvm/{kvm_mips_int.c => interrupt.c} (99%)
> rename arch/mips/kvm/{kvm_mips_int.h => interrupt.h} (100%)
> rename arch/mips/kvm/{kvm_locore.S => locore.S} (100%)
> rename arch/mips/kvm/{kvm_mips.c => mips.c} (99%)
> rename arch/mips/kvm/{kvm_mips_opcode.h => opcode.h} (100%)
> rename arch/mips/kvm/{kvm_mips_stats.c => stats.c} (100%)
> rename arch/mips/kvm/{kvm_tlb.c => tlb.c} (100%)
> rename arch/mips/kvm/{kvm_trap_emul.c => trap_emul.c} (99%)
>
> diff --git a/arch/mips/kvm/Makefile b/arch/mips/kvm/Makefile
> index 78d87bb..401fe02 100644
> --- a/arch/mips/kvm/Makefile
> +++ b/arch/mips/kvm/Makefile
> @@ -5,9 +5,9 @@ common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
>
> EXTRA_CFLAGS += -Ivirt/kvm -Iarch/mips/kvm
>
> -kvm-objs := $(common-objs) kvm_mips.o kvm_mips_emul.o kvm_locore.o \
> - kvm_mips_int.o kvm_mips_stats.o kvm_mips_commpage.o \
> - kvm_mips_dyntrans.o kvm_trap_emul.o
> +kvm-objs := $(common-objs) mips.o emulate.o locore.o \
> + interrupt.o stats.o commpage.o \
> + dyntrans.o trap_emul.o
>
> obj-$(CONFIG_KVM) += kvm.o
> -obj-y += kvm_cb.o kvm_tlb.o
> +obj-y += callback.o tlb.o
> diff --git a/arch/mips/kvm/kvm_cb.c b/arch/mips/kvm/callback.c
> similarity index 100%
> rename from arch/mips/kvm/kvm_cb.c
> rename to arch/mips/kvm/callback.c
> diff --git a/arch/mips/kvm/kvm_mips_commpage.c b/arch/mips/kvm/commpage.c
> similarity index 97%
> rename from arch/mips/kvm/kvm_mips_commpage.c
> rename to arch/mips/kvm/commpage.c
> index 4b5612b..61b9c04 100644
> --- a/arch/mips/kvm/kvm_mips_commpage.c
> +++ b/arch/mips/kvm/commpage.c
> @@ -22,7 +22,7 @@
>
> #include <linux/kvm_host.h>
>
> -#include "kvm_mips_comm.h"
> +#include "commpage.h"
>
> void kvm_mips_commpage_init(struct kvm_vcpu *vcpu)
> {
> diff --git a/arch/mips/kvm/kvm_mips_comm.h b/arch/mips/kvm/commpage.h
> similarity index 100%
> rename from arch/mips/kvm/kvm_mips_comm.h
> rename to arch/mips/kvm/commpage.h
> diff --git a/arch/mips/kvm/kvm_mips_dyntrans.c b/arch/mips/kvm/dyntrans.c
> similarity index 99%
> rename from arch/mips/kvm/kvm_mips_dyntrans.c
> rename to arch/mips/kvm/dyntrans.c
> index fa7184d..521121b 100644
> --- a/arch/mips/kvm/kvm_mips_dyntrans.c
> +++ b/arch/mips/kvm/dyntrans.c
> @@ -18,7 +18,7 @@
> #include <linux/bootmem.h>
> #include <asm/cacheflush.h>
>
> -#include "kvm_mips_comm.h"
> +#include "commpage.h"
>
> #define SYNCI_TEMPLATE 0x041f0000
> #define SYNCI_BASE(x) (((x) >> 21) & 0x1f)
> diff --git a/arch/mips/kvm/kvm_mips_emul.c b/arch/mips/kvm/emulate.c
> similarity index 99%
> rename from arch/mips/kvm/kvm_mips_emul.c
> rename to arch/mips/kvm/emulate.c
> index f9b4f0f..1a60688 100644
> --- a/arch/mips/kvm/kvm_mips_emul.c
> +++ b/arch/mips/kvm/emulate.c
> @@ -29,9 +29,9 @@
> #include <asm/r4kcache.h>
> #define CONFIG_MIPS_MT
>
> -#include "kvm_mips_opcode.h"
> -#include "kvm_mips_int.h"
> -#include "kvm_mips_comm.h"
> +#include "opcode.h"
> +#include "interrupt.h"
> +#include "commpage.h"
>
> #include "trace.h"
>
> diff --git a/arch/mips/kvm/kvm_mips_int.c b/arch/mips/kvm/interrupt.c
> similarity index 99%
> rename from arch/mips/kvm/kvm_mips_int.c
> rename to arch/mips/kvm/interrupt.c
> index d458c04..9b44459 100644
> --- a/arch/mips/kvm/kvm_mips_int.c
> +++ b/arch/mips/kvm/interrupt.c
> @@ -20,7 +20,7 @@
>
> #include <linux/kvm_host.h>
>
> -#include "kvm_mips_int.h"
> +#include "interrupt.h"
>
> void kvm_mips_queue_irq(struct kvm_vcpu *vcpu, uint32_t priority)
> {
> diff --git a/arch/mips/kvm/kvm_mips_int.h b/arch/mips/kvm/interrupt.h
> similarity index 100%
> rename from arch/mips/kvm/kvm_mips_int.h
> rename to arch/mips/kvm/interrupt.h
> diff --git a/arch/mips/kvm/kvm_locore.S b/arch/mips/kvm/locore.S
> similarity index 100%
> rename from arch/mips/kvm/kvm_locore.S
> rename to arch/mips/kvm/locore.S
> diff --git a/arch/mips/kvm/kvm_mips.c b/arch/mips/kvm/mips.c
> similarity index 99%
> rename from arch/mips/kvm/kvm_mips.c
> rename to arch/mips/kvm/mips.c
> index 289b4d2..d687c6e 100644
> --- a/arch/mips/kvm/kvm_mips.c
> +++ b/arch/mips/kvm/mips.c
> @@ -21,8 +21,8 @@
>
> #include <linux/kvm_host.h>
>
> -#include "kvm_mips_int.h"
> -#include "kvm_mips_comm.h"
> +#include "interrupt.h"
> +#include "commpage.h"
>
> #define CREATE_TRACE_POINTS
> #include "trace.h"
> @@ -1188,7 +1188,7 @@ int __init kvm_mips_init(void)
> /*
> * On MIPS, kernel modules are executed from "mapped space", which
> * requires TLBs. The TLB handling code is statically linked with
> - * the rest of the kernel (kvm_tlb.c) to avoid the possibility of
> + * the rest of the kernel (tlb.c) to avoid the possibility of
> * double faulting. The issue is that the TLB code references
> * routines that are part of the the KVM module, which are only
> * available once the module is loaded.
> diff --git a/arch/mips/kvm/kvm_mips_opcode.h b/arch/mips/kvm/opcode.h
> similarity index 100%
> rename from arch/mips/kvm/kvm_mips_opcode.h
> rename to arch/mips/kvm/opcode.h
> diff --git a/arch/mips/kvm/kvm_mips_stats.c b/arch/mips/kvm/stats.c
> similarity index 100%
> rename from arch/mips/kvm/kvm_mips_stats.c
> rename to arch/mips/kvm/stats.c
> diff --git a/arch/mips/kvm/kvm_tlb.c b/arch/mips/kvm/tlb.c
> similarity index 100%
> rename from arch/mips/kvm/kvm_tlb.c
> rename to arch/mips/kvm/tlb.c
> diff --git a/arch/mips/kvm/kvm_trap_emul.c b/arch/mips/kvm/trap_emul.c
> similarity index 99%
> rename from arch/mips/kvm/kvm_trap_emul.c
> rename to arch/mips/kvm/trap_emul.c
> index bd2f6bc..fd7257b 100644
> --- a/arch/mips/kvm/kvm_trap_emul.c
> +++ b/arch/mips/kvm/trap_emul.c
> @@ -16,8 +16,8 @@
>
> #include <linux/kvm_host.h>
>
> -#include "kvm_mips_opcode.h"
> -#include "kvm_mips_int.h"
> +#include "opcode.h"
> +#include "interrupt.h"
>
> static gpa_t kvm_trap_emul_gva_to_gpa_cb(gva_t gva)
> {
>
next prev parent reply other threads:[~2014-06-26 19:28 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-26 19:11 [PATCH v4 0/7] MIPS: KVM: Bugfixes and cleanups Deng-Cheng Zhu
2014-06-26 19:11 ` Deng-Cheng Zhu
2014-06-26 19:11 ` [PATCH v4 1/7] MIPS: KVM: Reformat code and comments Deng-Cheng Zhu
2014-06-26 19:11 ` Deng-Cheng Zhu
2014-06-26 19:11 ` [PATCH v4 2/7] MIPS: KVM: Use KVM internal logger Deng-Cheng Zhu
2014-06-26 19:11 ` Deng-Cheng Zhu
2014-06-26 19:11 ` [PATCH v4 3/7] MIPS: KVM: Simplify functions by removing redundancy Deng-Cheng Zhu
2014-06-26 19:11 ` Deng-Cheng Zhu
2014-06-26 19:11 ` [PATCH v4 4/7] MIPS: KVM: Remove unneeded volatile Deng-Cheng Zhu
2014-06-26 19:11 ` Deng-Cheng Zhu
2014-06-26 19:11 ` [PATCH v4 5/7] MIPS: KVM: Rename files to remove the prefix "kvm_" and "kvm_mips_" Deng-Cheng Zhu
2014-06-26 19:11 ` Deng-Cheng Zhu
2014-06-26 19:28 ` David Daney [this message]
2014-06-26 19:55 ` Deng-Cheng Zhu
2014-06-26 19:55 ` Deng-Cheng Zhu
2014-06-26 21:55 ` David Daney
2014-06-26 22:44 ` Deng-Cheng Zhu
2014-06-26 22:44 ` Deng-Cheng Zhu
2014-06-26 23:53 ` Deng-Cheng Zhu
2014-06-26 23:53 ` Deng-Cheng Zhu
2014-06-27 14:27 ` Paolo Bonzini
2014-06-26 23:21 ` James Hogan
2014-06-27 0:32 ` David Daney
2014-06-26 19:11 ` [PATCH v4 6/7] MIPS: KVM: Skip memory cleaning in kvm_mips_commpage_init() Deng-Cheng Zhu
2014-06-26 19:11 ` Deng-Cheng Zhu
2014-06-26 19:11 ` [PATCH v4 7/7] MIPS: KVM: Remove dead code of TLB index error in kvm_mips_emul_tlbwr() Deng-Cheng Zhu
2014-06-26 19:11 ` Deng-Cheng Zhu
2014-06-27 14:22 ` [PATCH v4 0/7] MIPS: KVM: Bugfixes and cleanups James Hogan
2014-06-27 14:22 ` James Hogan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53AC7466.6070401@gmail.com \
--to=ddaney.cavm@gmail.com \
--cc=dengcheng.zhu@imgtec.com \
--cc=gleb@kernel.org \
--cc=james.hogan@imgtec.com \
--cc=kvm@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=pbonzini@redhat.com \
--cc=ralf@linux-mips.org \
--cc=sanjayl@kymasys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox