Received: from eggs.gnu.org ([2001:4830:134:3::10]:60283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLCUB-0001Jb-9q for qemu-devel@nongnu.org; Thu, 07 Jul 2016 12:49:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLCU8-0003aP-6H for qemu-devel@nongnu.org; Thu, 07 Jul 2016 12:49:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLCU8-0003aE-09 for qemu-devel@nongnu.org; Thu, 07 Jul 2016 12:49:08 -0400 Date: Thu, 7 Jul 2016 13:49:04 -0300 From: Eduardo Habkost Message-ID: <20160707164904.GF4131@thinpad.lan.raisama.net> References: <1466765376-25722-1-git-send-email-den@openvz.org> <20160707164448.GE4131@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160707164448.GE4131@thinpad.lan.raisama.net> Subject: [Qemu-devel] [PATCH] fixup! cpu: report hyperv feature words through qom List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: qemu-devel@nongnu.org, Evgeny Yakovlev , Marcelo Tosatti , Paolo Bonzini , Richard Henderson On Thu, Jul 07, 2016 at 01:44:48PM -0300, Eduardo Habkost wrote: > Hi, > > Sorry for taking so long to review it. > > The patch in general looks good, except for: > > On Fri, Jun 24, 2016 at 01:49:36PM +0300, Denis V. Lunev wrote: > [...] > > + if (MACHINE_GET_CLASS(current_machine)->hot_add_cpu != NULL) { > > + env->features[FEAT_HYPERV_EDX] |= HV_X64_CPU_DYNAMIC_PARTITIONING_AVAILABLE; > > + } > [...] > > +} > > + > [...] > > - c->edx |= HV_X64_CPU_DYNAMIC_PARTITIONING_AVAILABLE; > > If you want to change the rules for setting > HV_X64_CPU_DYNAMIC_PARTITIONING_AVAILABLE, please do it in a > separate patch. I will apply the patch, but with the following fixup: Signed-off-by: Eduardo Habkost --- target-i386/kvm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 5df4b48..4193fe1 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -599,6 +599,7 @@ static int hyperv_handle_properties(CPUState *cs) if (cpu->hyperv_crash && has_msr_hv_crash) { env->features[FEAT_HYPERV_EDX] |= HV_X64_GUEST_CRASH_MSR_AVAILABLE; } + env->features[FEAT_HYPERV_EDX] |= HV_X64_CPU_DYNAMIC_PARTITIONING_AVAILABLE; if (cpu->hyperv_reset && has_msr_hv_reset) { env->features[FEAT_HYPERV_EAX] |= HV_X64_MSR_RESET_AVAILABLE; } @@ -630,9 +631,6 @@ static int hyperv_handle_properties(CPUState *cs) } env->features[FEAT_HYPERV_EAX] |= HV_X64_MSR_SYNTIMER_AVAILABLE; } - if (MACHINE_GET_CLASS(current_machine)->hot_add_cpu != NULL) { - env->features[FEAT_HYPERV_EDX] |= HV_X64_CPU_DYNAMIC_PARTITIONING_AVAILABLE; - } return 0; } -- 2.5.5