Patchwork [1/2] KVM: PPC: Fix kvm_exit_names array

login
register
mail settings
Submitter Mihai Caraman
Date July 3, 2013, 1:30 p.m.
Message ID <1372858255-19708-1-git-send-email-mihai.caraman@freescale.com>
Download mbox | patch
Permalink /patch/256634/
State Not Applicable
Headers show

Comments

Mihai Caraman - July 3, 2013, 1:30 p.m.
Some exit ids where left out from kvm_exit_names array.

Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
---
 arch/powerpc/kvm/timing.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
Alexander Graf - July 8, 2013, 6:39 p.m.
On 03.07.2013, at 15:30, Mihai Caraman wrote:

> Some exit ids where left out from kvm_exit_names array.
> 
> Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
> ---
> arch/powerpc/kvm/timing.c |    4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/powerpc/kvm/timing.c b/arch/powerpc/kvm/timing.c
> index 07b6110..c392d26 100644
> --- a/arch/powerpc/kvm/timing.c
> +++ b/arch/powerpc/kvm/timing.c
> @@ -135,7 +135,9 @@ static const char *kvm_exit_names[__NUMBER_OF_KVM_EXIT_TYPES] = {
> 	[USR_PR_INST] =             "USR_PR_INST",
> 	[FP_UNAVAIL] =              "FP_UNAVAIL",
> 	[DEBUG_EXITS] =             "DEBUG",
> -	[TIMEINGUEST] =             "TIMEINGUEST"
> +	[TIMEINGUEST] =             "TIMEINGUEST",
> +	[DBELL_EXITS] =             "DBELL",
> +	[GDBELL_EXITS] =            "GDBELL"

Please add a comma at the end here, so that we don't have to uselessly touch the entry next time again.


Alex

Patch

diff --git a/arch/powerpc/kvm/timing.c b/arch/powerpc/kvm/timing.c
index 07b6110..c392d26 100644
--- a/arch/powerpc/kvm/timing.c
+++ b/arch/powerpc/kvm/timing.c
@@ -135,7 +135,9 @@  static const char *kvm_exit_names[__NUMBER_OF_KVM_EXIT_TYPES] = {
 	[USR_PR_INST] =             "USR_PR_INST",
 	[FP_UNAVAIL] =              "FP_UNAVAIL",
 	[DEBUG_EXITS] =             "DEBUG",
-	[TIMEINGUEST] =             "TIMEINGUEST"
+	[TIMEINGUEST] =             "TIMEINGUEST",
+	[DBELL_EXITS] =             "DBELL",
+	[GDBELL_EXITS] =            "GDBELL"
 };
 
 static int kvmppc_exit_timing_show(struct seq_file *m, void *private)