Skip to contentSkip to conversation

target-i386: Add "kvmclock-stable-bit" feature bit name

PATCH Applied Eduardo Habkost 2 participants 2 messages Jul 4, 2014 – Jul 5, 2014 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-i386: Add "kvmclock-stable-bit" feature bit name

KVM_FEATURE_CLOCKSOURCE_STABLE_BIT is enabled by default and supported by KVM. But not having a name defined makes QEMU treat it as an unknown and unmigratable feature flag (as any unknown feature may possibly require state to be migrated), and disable it by default on "-cpu host".

As a side-effect, the new name also makes the flag configurable, allowing the user to disable it (which may be useful for testing or for compatibility with old kernels).

---
 target-i386/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-i386/cpu.c +1 -1
index 45c662d..6d008ab 100644
@@ -241,7 +241,7 @@ static const char *kvm_feature_name[] = {
     NULL, NULL, NULL, NULL,
     NULL, NULL, NULL, NULL,
     NULL, NULL, NULL, NULL,
-    NULL, NULL, NULL, NULL,
+    "kvmclock-stable-bit", NULL, NULL, NULL,
     NULL, NULL, NULL, NULL,
 };
 
Signature · 1 line
1.9.3
maintainer Applied
#1 lore raw

Il 04/07/2014 21:44, Eduardo Habkost ha scritto:

Quoted 20 lines

KVM_FEATURE_CLOCKSOURCE_STABLE_BIT is enabled by default and supported by KVM. But not having a name defined makes QEMU treat it as an unknown and unmigratable feature flag (as any unknown feature may possibly require state to be migrated), and disable it by default on "-cpu host".

As a side-effect, the new name also makes the flag configurable, allowing the user to disable it (which may be useful for testing or for compatibility with old kernels).

---
 target-i386/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-i386/cpu.c +0 -0
index 45c662d..6d008ab 100644

target-i386/cpu.c static const char *kvm_feature_name[] = { · line 247

Quoted 8 lines
target-i386/cpu.c +1 -1
@@ -241,7 +241,7 @@ static const char *kvm_feature_name[] = {
     NULL, NULL, NULL, NULL,
     NULL, NULL, NULL, NULL,
     NULL, NULL, NULL, NULL,
-    NULL, NULL, NULL, NULL,
+    "kvmclock-stable-bit", NULL, NULL, NULL,
     NULL, NULL, NULL, NULL,
 };
 

Applied to uq/master, thanks.

Paolo