Message ID | 1510299947-11287-1-git-send-email-wanpeng.li@hotmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
2017-11-10 15:45 GMT+08:00 Wanpeng Li <kernellwp@gmail.com>: > From: Wanpeng Li <wanpeng.li@hotmail.com> > > Adds PV_TLB_FLUSH CPUID feature bit. > > Cc: Paolo Bonzini <pbonzini@redhat.com> > Cc: Radim Krčmář <rkrcmar@redhat.com> > Cc: Richard Henderson <rth@twiddle.net> > Cc: Eduardo Habkost <ehabkost@redhat.com> > Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com> > --- > target/i386/cpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/target/i386/cpu.c b/target/i386/cpu.c > index 6f21a5e..ecebc5a 100644 > --- a/target/i386/cpu.c > +++ b/target/i386/cpu.c > @@ -347,7 +347,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { > .feat_names = { > "kvmclock", "kvm-nopiodelay", "kvm-mmu", "kvmclock", > "kvm-asyncpf", "kvm-steal-time", "kvm-pv-eoi", "kvm-pv-unhalt", > - NULL, NULL, NULL, NULL, > + NULL, "kvm-pv-tlb-flush", NULL, NULL, Note: bit 8 is reserved for the PV_DEDICATED which is posted by another guy in kvm community. > NULL, NULL, NULL, NULL, > NULL, NULL, NULL, NULL, > NULL, NULL, NULL, NULL, > -- > 2.7.4 >
On 10/11/2017 08:54, Wanpeng Li wrote: > 2017-11-10 15:45 GMT+08:00 Wanpeng Li <kernellwp@gmail.com>: >> From: Wanpeng Li <wanpeng.li@hotmail.com> >> >> Adds PV_TLB_FLUSH CPUID feature bit. >> >> Cc: Paolo Bonzini <pbonzini@redhat.com> >> Cc: Radim Krčmář <rkrcmar@redhat.com> >> Cc: Richard Henderson <rth@twiddle.net> >> Cc: Eduardo Habkost <ehabkost@redhat.com> >> Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com> >> --- >> target/i386/cpu.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/target/i386/cpu.c b/target/i386/cpu.c >> index 6f21a5e..ecebc5a 100644 >> --- a/target/i386/cpu.c >> +++ b/target/i386/cpu.c >> @@ -347,7 +347,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { >> .feat_names = { >> "kvmclock", "kvm-nopiodelay", "kvm-mmu", "kvmclock", >> "kvm-asyncpf", "kvm-steal-time", "kvm-pv-eoi", "kvm-pv-unhalt", >> - NULL, NULL, NULL, NULL, >> + NULL, "kvm-pv-tlb-flush", NULL, NULL, > > Note: bit 8 is reserved for the PV_DEDICATED which is posted by > another guy in kvm community. > >> NULL, NULL, NULL, NULL, >> NULL, NULL, NULL, NULL, >> NULL, NULL, NULL, NULL, >> -- >> 2.7.4 >> I'd like PV_DEDICATED to be bit 0 in another feature word (it's a performance hint, not a feature), but it's okay to use bit 9. Paolo
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 6f21a5e..ecebc5a 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -347,7 +347,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { .feat_names = { "kvmclock", "kvm-nopiodelay", "kvm-mmu", "kvmclock", "kvm-asyncpf", "kvm-steal-time", "kvm-pv-eoi", "kvm-pv-unhalt", - NULL, NULL, NULL, NULL, + NULL, "kvm-pv-tlb-flush", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,