From: Eduardo Habkost Date: Fri, 4 Jul 2014 19:44:34 +0000 (-0300) Subject: target-i386: Add "kvmclock-stable-bit" feature bit name X-Git-Tag: qemu-xen-4.6.0-rc1~316^2~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8248c36a5db6ff7d5f07f05148be0dd0160e650c;p=qemu-upstream-4.6-testing.git 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). Signed-off-by: Eduardo Habkost Signed-off-by: Paolo Bonzini --- diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 45c662dad..6d008ab5e 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -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, };