Message ID | 1519439425-27883-2-git-send-email-babu.moger@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
2018-02-23 21:30-0500, Babu Moger: > Changed KVM_CPUID_FLAG_SIGNIFCANT_INDEX to KVM_CPUID_FLAG_SIGNIFICANT_INDEX > > Signed-off-by: Babu Moger <babu.moger@amd.com> > --- > linux-headers/asm-x86/kvm.h | 2 +- > target/i386/kvm.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm-x86/kvm.h > index f3a9604..6aec661 100644 > --- a/linux-headers/asm-x86/kvm.h > +++ b/linux-headers/asm-x86/kvm.h > @@ -220,7 +220,7 @@ struct kvm_cpuid_entry2 { > __u32 padding[3]; > }; > > -#define KVM_CPUID_FLAG_SIGNIFCANT_INDEX (1 << 0) The typo is in the original kernel header and we periodically copy it over with scripts/update-linux-headers.sh, so this change would only add overhead in the long run. I'd keep the typo. (The alternative is to add KVM_CPUID_FLAG_SIGNIFICANT_INDEX to the linux header, so there would be both variants and use the correct one here.) Thanks. > +#define KVM_CPUID_FLAG_SIGNIFICANT_INDEX (1 << 0) > #define KVM_CPUID_FLAG_STATEFUL_FUNC (1 << 1) > #define KVM_CPUID_FLAG_STATE_READ_NEXT (1 << 2) > > diff --git a/target/i386/kvm.c b/target/i386/kvm.c > index ad4b159..85856b6 100644 > --- a/target/i386/kvm.c > +++ b/target/i386/kvm.c > @@ -844,7 +844,7 @@ int kvm_arch_init_vcpu(CPUState *cs) > break; > } > c->function = i; > - c->flags = KVM_CPUID_FLAG_SIGNIFCANT_INDEX; > + c->flags = KVM_CPUID_FLAG_SIGNIFICANT_INDEX; > c->index = j; > cpu_x86_cpuid(env, i, j, &c->eax, &c->ebx, &c->ecx, &c->edx); > > -- > 1.8.3.1 >
On 02/28/2018 11:38 AM, Radim Krčmář wrote: > 2018-02-23 21:30-0500, Babu Moger: In the subject line: s/reviwing/reviewing/ [It's never a good sign when a fix claiming to fix a typo introduces a typo ;) ] Or go for a shorter subject: target/i386: Fix a minor typo >> Changed KVM_CPUID_FLAG_SIGNIFCANT_INDEX to KVM_CPUID_FLAG_SIGNIFICANT_INDEX >> >> Signed-off-by: Babu Moger <babu.moger@amd.com> >> ---
> -----Original Message----- > From: Radim Krčmář [mailto:rkrcmar@redhat.com] > Sent: Wednesday, February 28, 2018 11:38 AM > To: Moger, Babu <Babu.Moger@amd.com> > Cc: pbonzini@redhat.com; rth@twiddle.net; ehabkost@redhat.com; > mtosatti@redhat.com; qemu-devel@nongnu.org; kvm@vger.kernel.org; > pixo@polepetko.eu; Hook, Gary <Gary.Hook@amd.com> > Subject: Re: [PATCH v2 1/5] target/i386: Fix a minor typo found while > reviwing > > 2018-02-23 21:30-0500, Babu Moger: > > Changed KVM_CPUID_FLAG_SIGNIFCANT_INDEX to > KVM_CPUID_FLAG_SIGNIFICANT_INDEX > > > > Signed-off-by: Babu Moger <babu.moger@amd.com> > > --- > > linux-headers/asm-x86/kvm.h | 2 +- > > target/i386/kvm.c | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm-x86/kvm.h > > index f3a9604..6aec661 100644 > > --- a/linux-headers/asm-x86/kvm.h > > +++ b/linux-headers/asm-x86/kvm.h > > @@ -220,7 +220,7 @@ struct kvm_cpuid_entry2 { > > __u32 padding[3]; > > }; > > > > -#define KVM_CPUID_FLAG_SIGNIFCANT_INDEX (1 << 0) > > The typo is in the original kernel header and we periodically copy it > over with scripts/update-linux-headers.sh, so this change would only add > overhead in the long run. Yes. I see that now. > > I'd keep the typo. Sure. I will drop this patch. Let me not complicate things. > > (The alternative is to add KVM_CPUID_FLAG_SIGNIFICANT_INDEX to the > linux > header, so there would be both variants and use the correct one here.) > > Thanks. > > > +#define KVM_CPUID_FLAG_SIGNIFICANT_INDEX (1 << 0) > > #define KVM_CPUID_FLAG_STATEFUL_FUNC (1 << 1) > > #define KVM_CPUID_FLAG_STATE_READ_NEXT (1 << 2) > > > > diff --git a/target/i386/kvm.c b/target/i386/kvm.c > > index ad4b159..85856b6 100644 > > --- a/target/i386/kvm.c > > +++ b/target/i386/kvm.c > > @@ -844,7 +844,7 @@ int kvm_arch_init_vcpu(CPUState *cs) > > break; > > } > > c->function = i; > > - c->flags = KVM_CPUID_FLAG_SIGNIFCANT_INDEX; > > + c->flags = KVM_CPUID_FLAG_SIGNIFICANT_INDEX; > > c->index = j; > > cpu_x86_cpuid(env, i, j, &c->eax, &c->ebx, &c->ecx, &c->edx); > > > > -- > > 1.8.3.1 > >
> -----Original Message----- > From: Eric Blake [mailto:eblake@redhat.com] > Sent: Wednesday, February 28, 2018 12:49 PM > To: Radim Krčmář <rkrcmar@redhat.com>; Moger, Babu > <Babu.Moger@amd.com> > Cc: ehabkost@redhat.com; kvm@vger.kernel.org; mtosatti@redhat.com; > Hook, Gary <Gary.Hook@amd.com>; qemu-devel@nongnu.org; > pbonzini@redhat.com; pixo@polepetko.eu; rth@twiddle.net > Subject: Re: [Qemu-devel] [PATCH v2 1/5] target/i386: Fix a minor typo > found while reviwing > > On 02/28/2018 11:38 AM, Radim Krčmář wrote: > > 2018-02-23 21:30-0500, Babu Moger: > > In the subject line: s/reviwing/reviewing/ [It's never a good sign when > a fix claiming to fix a typo introduces a typo ;) ] Good catch Eric. Sorry about that. We don’t need this patch anymore. Thanks. > > Or go for a shorter subject: > target/i386: Fix a minor typo > > >> Changed KVM_CPUID_FLAG_SIGNIFCANT_INDEX to > KVM_CPUID_FLAG_SIGNIFICANT_INDEX > >> > >> Signed-off-by: Babu Moger <babu.moger@amd.com> > >> --- > -- > Eric Blake, Principal Software Engineer > Red Hat, Inc. +1-919-301-3266 > Virtualization: qemu.org | libvirt.org
diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm-x86/kvm.h index f3a9604..6aec661 100644 --- a/linux-headers/asm-x86/kvm.h +++ b/linux-headers/asm-x86/kvm.h @@ -220,7 +220,7 @@ struct kvm_cpuid_entry2 { __u32 padding[3]; }; -#define KVM_CPUID_FLAG_SIGNIFCANT_INDEX (1 << 0) +#define KVM_CPUID_FLAG_SIGNIFICANT_INDEX (1 << 0) #define KVM_CPUID_FLAG_STATEFUL_FUNC (1 << 1) #define KVM_CPUID_FLAG_STATE_READ_NEXT (1 << 2) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index ad4b159..85856b6 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -844,7 +844,7 @@ int kvm_arch_init_vcpu(CPUState *cs) break; } c->function = i; - c->flags = KVM_CPUID_FLAG_SIGNIFCANT_INDEX; + c->flags = KVM_CPUID_FLAG_SIGNIFICANT_INDEX; c->index = j; cpu_x86_cpuid(env, i, j, &c->eax, &c->ebx, &c->ecx, &c->edx);
Changed KVM_CPUID_FLAG_SIGNIFCANT_INDEX to KVM_CPUID_FLAG_SIGNIFICANT_INDEX Signed-off-by: Babu Moger <babu.moger@amd.com> --- linux-headers/asm-x86/kvm.h | 2 +- target/i386/kvm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)