Received: from eggs.gnu.org ([2001:4830:134:3::10]:54333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk8Tj-0007rB-KZ for qemu-devel@nongnu.org; Wed, 14 Sep 2016 07:35:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bk8Tf-0001QI-Ki for qemu-devel@nongnu.org; Wed, 14 Sep 2016 07:35:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk8Tf-0001QD-Fc for qemu-devel@nongnu.org; Wed, 14 Sep 2016 07:35:43 -0400 References: <1473847310-129729-1-git-send-email-imammedo@redhat.com> <1473847310-129729-3-git-send-email-imammedo@redhat.com> From: Marcel Apfelbaum Message-ID: <911c39b2-544d-5ffd-56b6-023448d7a003@redhat.com> Date: Wed, 14 Sep 2016 14:35:40 +0300 MIME-Version: 1.0 In-Reply-To: <1473847310-129729-3-git-send-email-imammedo@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2] target-i386: turn off CPU.l3-cache only for 2.7 and older machine types List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov , qemu-devel@nongnu.org Cc: mst@redhat.com, longpeng2@huawei.com, ehabkost@redhat.com On 09/14/2016 01:01 PM, Igor Mammedov wrote: > commit (14c985cff target-i386: present virtual L3 cache info for vcpus) > misplaced compat property putting it in new 2.8 machine type > which would effectively to disable feature until 2.9 is released. > Intent of commit probably should be to disable feature for 2.7 > and older while allowing not yet released 2.8 to have feature > enabled by default. Reviewed-by: Marcel Apfelbaum Thanks, Marcel > > Signed-off-by: Igor Mammedov > --- > include/hw/i386/pc.h | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h > index d5654ab..1c5fd08 100644 > --- a/include/hw/i386/pc.h > +++ b/include/hw/i386/pc.h > @@ -369,17 +369,16 @@ int e820_get_num_entries(void); > bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *); > > #define PC_COMPAT_2_8 \ > + > +#define PC_COMPAT_2_7 \ > + PC_COMPAT_2_8 \ > + HW_COMPAT_2_7 \ > {\ > .driver = TYPE_X86_CPU,\ > .property = "l3-cache",\ > .value = "off",\ > }, > > - > -#define PC_COMPAT_2_7 \ > - PC_COMPAT_2_8 \ > - HW_COMPAT_2_7 > - > #define PC_COMPAT_2_6 \ > PC_COMPAT_2_7 \ > HW_COMPAT_2_6 \ >