From: Eduardo Habkost Subject: [PATCH for-2.1] target-i386: Add "kvmclock-stable-bit" feature bit name Date: Fri, 4 Jul 2014 16:44:34 -0300 Message-ID: <1404503074-6381-1-git-send-email-ehabkost@redhat.com> Cc: Marcelo Tosatti , Igor Mammedov To: qemu-devel@nongnu.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Paolo Bonzini , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:15032 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759897AbaGDTow (ORCPT ); Fri, 4 Jul 2014 15:44:52 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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 --- 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 45c662d..6d008ab 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, }; -- 1.9.3