Received: from eggs.gnu.org ([2001:4830:134:3::10]:44043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bko7G-0006AS-E6 for qemu-devel@nongnu.org; Fri, 16 Sep 2016 04:03:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bko7B-0007Ms-Gq for qemu-devel@nongnu.org; Fri, 16 Sep 2016 04:03:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bko7B-0007MG-BR for qemu-devel@nongnu.org; Fri, 16 Sep 2016 04:03:17 -0400 Date: Fri, 16 Sep 2016 10:03:12 +0200 From: Igor Mammedov Message-ID: <20160916100312.306d34e9@nial.brq.redhat.com> In-Reply-To: <20160915181807-mutt-send-email-mst@kernel.org> References: <1473847310-129729-1-git-send-email-imammedo@redhat.com> <1473847310-129729-2-git-send-email-imammedo@redhat.com> <20160915141909.GA6002@thinpad.lan.raisama.net> <20160915181807-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] pc: fix regression introduced by adding 2.8 machine List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Eduardo Habkost , marcel@redhat.com, longpeng2@huawei.com, qemu-devel@nongnu.org On Thu, 15 Sep 2016 18:18:46 +0300 "Michael S. Tsirkin" wrote: > On Thu, Sep 15, 2016 at 11:19:09AM -0300, Eduardo Habkost wrote: > > On Wed, Sep 14, 2016 at 12:01:49PM +0200, Igor Mammedov wrote: > > > commit (a4d3c834 pc: Add 2.8 machine) didn't ammend > > > PC_COMPAT_2_6 to include PC_COMPAT_2_7 which results in > > > > > > {\ > > > .driver = "virtio-pci",\ > > > .property = "page-per-vq",\ > > > .value = "on",\ > > > }, > > > > > > and > > > > > > {\ > > > .driver = TYPE_X86_CPU,\ > > > .property = "l3-cache",\ > > > .value = "off",\ > > > }, > > > > > > being ignored and as result change PC_COMPAT_2_6 behaviour. > > > > > [...] > > > #define PC_COMPAT_2_6 \ > > > + PC_COMPAT_2_7 \ > > > HW_COMPAT_2_6 \ > > > {\ > > > .driver = "fw_cfg_io",\ > > > > Isn't this supposed to be unnecessary since commit bacc344c > > ("machine: add properties to compat_props incrementaly")? > > > > -- > > Eduardo > > > Indeed, I tested page-per-vq and it seems on for 2.6. > Igor, Marcel, could you comment pls? You are right, I think inconsistency in #define PC_COMPAT_2_5 \ PC_COMPAT_2_6 \ HW_COMPAT_2_5 and #define PC_COMPAT_2_7 \ PC_COMPAT_2_8 \ HW_COMPAT_2_7 made me think that we still need it. I'd better clean-up PC_COMPAT_2_5 and PC_COMPAT_2_7