Received: from eggs.gnu.org ([2001:4830:134:3::10]:40410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnYaP-0000pr-6z for qemu-devel@nongnu.org; Fri, 23 Sep 2016 18:04:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnYaL-0003k9-Gs for qemu-devel@nongnu.org; Fri, 23 Sep 2016 18:04:48 -0400 Date: Sat, 24 Sep 2016 01:04:43 +0300 From: "Michael S. Tsirkin" Message-ID: <1474668213-15643-7-git-send-email-mst@redhat.com> References: <1474668213-15643-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1474668213-15643-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL v2 06/19] 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: qemu-devel@nongnu.org Cc: Peter Maydell , Igor Mammedov , qemu-stable@nongnu.org, Marcel Apfelbaum , Eduardo Habkost From: Igor Mammedov 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. Cc: qemu-stable@nongnu.org Signed-off-by: Igor Mammedov Reviewed-by: Marcel Apfelbaum Reviewed-by: Eduardo Habkost --- include/hw/i386/pc.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index b0a61f3..29a6c9b 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -367,16 +367,15 @@ 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 \ + HW_COMPAT_2_7 \ {\ .driver = TYPE_X86_CPU,\ .property = "l3-cache",\ .value = "off",\ }, - -#define PC_COMPAT_2_7 \ - HW_COMPAT_2_7 - #define PC_COMPAT_2_6 \ HW_COMPAT_2_6 \ {\ -- MST