public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] qemu-kvm Set kvm_features name for kvm_cr3_cache
@ 2010-02-17 17:44 Jes Sorensen
  2010-02-17 21:08 ` Marcelo Tosatti
  0 siblings, 1 reply; 4+ messages in thread
From: Jes Sorensen @ 2010-02-17 17:44 UTC (permalink / raw)
  To: Avi Kivity; +Cc: KVM General

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

Hi,

Comparing the features tested for in get_para_features() with the
kvm_feature_names in target-i386/helper.c, I noticed that we didn't
list the cr3_cache feature in the real name table.

I presume this is unintentional so here's a patch to correct it.

Cheers,
Jes


[-- Attachment #2: 0000-kvm_cr3_catch-name.patch --]
[-- Type: text/plain, Size: 932 bytes --]

commit 39cb576d15a6ffbbcade3c4f282c2f3e76e3098a
Author: Jes Sorensen <Jes.Sorensen@redhat.com>
Date:   Wed Feb 17 18:03:37 2010 +0100

    Add kvm_cr3_cache to the list of KVM features.
    
    This is to match the features automatically added by
    target-i386/kvm.c:get_para_features()
    
    Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>

diff --git a/target-i386/helper.c b/target-i386/helper.c
index f9d63f6..2cd3dca 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -61,7 +61,8 @@ static const char *ext3_feature_name[] = {
 };
 
 static const char *kvm_feature_name[] = {
-    "kvmclock", "kvm_nopiodelay", "kvm_mmu", NULL, NULL, NULL, NULL, NULL,
+    "kvmclock", "kvm_nopiodelay", "kvm_mmu", "kvm_cr3_cache",
+    NULL, NULL, NULL, NULL,
     NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
     NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
     NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-17 21:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-17 17:44 [PATCH] qemu-kvm Set kvm_features name for kvm_cr3_cache Jes Sorensen
2010-02-17 21:08 ` Marcelo Tosatti
2010-02-17 21:26   ` Jes Sorensen
2010-02-17 21:35     ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox