From patchwork Thu Jun 14 01:18:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Babu Moger X-Patchwork-Id: 10463147 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A450A60329 for ; Thu, 14 Jun 2018 01:18:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95C9C28C3E for ; Thu, 14 Jun 2018 01:18:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A57C28C5A; Thu, 14 Jun 2018 01:18:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DD6B28C3E for ; Thu, 14 Jun 2018 01:18:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935872AbeFNBSt (ORCPT ); Wed, 13 Jun 2018 21:18:49 -0400 Received: from mail-eopbgr700079.outbound.protection.outlook.com ([40.107.70.79]:4864 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935530AbeFNBSo (ORCPT ); Wed, 13 Jun 2018 21:18:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SpehMR4hLm9HTDC8nwZO4BHoUVw4bFQbJ3lmd1YTdM4=; b=2JrqEaNe8/RTqbo/yeCzLP6Vn+gBKf9ptdOCBf2erDz8kdxcQoLiMkxq5dassZnPMbz4g+f+CcuG2g+BmfeVdzUxbJ2rvj4iAb8kr6TJoHFdXZIHPgvEl4yrToJ6M3Lypeybi2Qpt2CDE1/oDoj8mUNCHCKsp0+g1hZQPStDmMY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Babu.Moger@amd.com; Received: from linux-h3ml.amd.com (165.204.77.1) by SN1PR12MB2480.namprd12.prod.outlook.com (2603:10b6:802:29::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.14; Thu, 14 Jun 2018 01:18:41 +0000 From: Babu Moger To: mst@redhat.com, marcel.apfelbaum@gmail.com, pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com, mtosatti@redhat.com Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, babu.moger@amd.com, kash@tripleback.net, geoff@hostfission.com Subject: [PATCH v14 3/6] i386: Disable TOPOEXT feature on pc-2.12 Date: Wed, 13 Jun 2018 21:18:24 -0400 Message-Id: <1528939107-17193-4-git-send-email-babu.moger@amd.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1528939107-17193-1-git-send-email-babu.moger@amd.com> References: <1528939107-17193-1-git-send-email-babu.moger@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN4PR0201CA0064.namprd02.prod.outlook.com (2603:10b6:803:20::26) To SN1PR12MB2480.namprd12.prod.outlook.com (2603:10b6:802:29::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 218601c1-aea4-4eaf-fb2b-08d5d194c429 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:SN1PR12MB2480; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB2480; 3:XOmR7gELvM8PvVpbsSv1tT4NM497a4uYDCO6v0nc+BCQlnexfv+wG9IdE8H2SNYIgoJLZz9ETQXi4ODKvLnSpVpO3pxZfCLVuaCj1DCX/ezBW/3tTpYhfFnp0Tb5XSDAVa/aiM0RqyzOsfKYqEvnET6ESsNJ5DohEai1x3v68umJ1Sj4K53262MsMr+PCXnXmfNsc0gUphH74T8S+DtqNcHF3/RVUlDOJGgwfMcqOv7UxMgkE3V+buZLz0/Ttji4; 25:WSjfy04Qz/1AIY8lfG6l2oKc3kTEwz7geynA7rjJLw/kRZscn5s21WtvxX3zlfLV3/XsoDWEZ0aceo6OFYUBb3xvej6YXfGp27qb8WYoSD1wdqY2sQFKwhXYYCdOsDKnvNHqP0A+gZsyhykhiB8uY0jeYBxZBydWOGGFW5ZgG4eilXLhqGfUoCWFJcZE2mrbZ/yN9s+bXIeMERcgLPEKXhbRO1ZbRg4AcaF9gfQ/NeAuXXeCwWq6MiUfMu3x7/9DQft59i2unDFy8D57NOI2Hi5TT1MuJLuPZrIrs6j1nOXrKs1MAN1x4Em8Bo9jIf1t1wtjhh+GukzL+So9/OghTQ==; 31:aMaH/AlgjcV8CCbyg+DkKaGs01wwqVqGXjxazxHKjWEe2YwrzthIeO9yX5rzhIlCgtpVxyqjZDUiBxU0bzW1lM5b13bQSY57vI9WmjjR9bvEjkRM1NjVqtu1tPV1YHUc/ASKyqqhzYR2oYleUtWA+9IeTbxfhsLRwJsIzZqmK7b2jfaj0R6XjT1FCQkQtYoQn3nMFjbO1lCk9An5bYcglf+xAk9JiEzjtBjc0mfudBo= X-MS-TrafficTypeDiagnostic: SN1PR12MB2480: X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB2480; 20:tL0jrYx/9/MOE7WFFgtQDt622tpOM51mtYZ/VZhIQcxRwJODzHx5qCDGBQFAXMXRxyLM5RhMO7LQehFeZ5Q+/azwT/50zzB5VsqixVzAcD0kJr45A1ceEL+9KuYJvZozC+ckNLBUgCcGd86h2+zJcvq6NufnEbxComk9X8I9ZrnmM+lm3s/WABE4rdYwuzR7uI3U8lpegFUJNAHmf36j/a+aPciKkza7VfBRtYFWAJZ18+kCdwtuFovgmSmthPhnn/AEFlI1Iz8/ontuHtweWknVnWIIaT0T7P4AsRbnsIxshWktolDzCwaOofArN+bLfZi9tnp6asf9whf8GQPgo7NTWxl7T9OjtBV1kw0vvhVVf3+xhiMVr0vY5ZFWu62ewB02c3aytxBJRezCyxox2rQAzo87Zki1AcmaDJLPNaEPrplLBzJO657xkjpLsY0WUmAuJXVqbAeg1w0E6PEw4nHnu9pdPhyIQ3buqMJC6caioDqS6La24qJRWWo1MCl4; 4:6OQ9MnI5++x4kq0hH7NChaqHiu0wN8W7BEOTcHoLFtumXLWIqSoQ7IlgGOxh7De7pyNrz7HFyabrPEhyg97A4kpVLys3Ulenzmh1W1D/aNNA3xBpj9mN+2mkLqtQweCkNl2bp3RrByf92CFZ93vIok1wqGLYTnwofZt7NAwYHK23T3mZ/q6G8jPJ3e3jisuJ63mEE7s9rwGP8GmYw21jlnS7SBwGQeUCADzRQm0V8cywBN9uuIxtFhdsr4/ieFYhUG4dL9p7PEVmjFVLK2qVZndxQ6rspsOIb9XfE9d0+ZzQFZylSHoo6fDo5sTbWjEZ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:SN1PR12MB2480; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB2480; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(396003)(39860400002)(366004)(376002)(39380400002)(189003)(199004)(68736007)(2906002)(25786009)(52116002)(7696005)(72206003)(51416003)(4720700003)(956004)(6666003)(2616005)(11346002)(44832011)(486006)(53936002)(7416002)(476003)(446003)(76176011)(6486002)(39060400002)(36756003)(478600001)(4326008)(6116002)(5660300001)(7736002)(305945005)(86362001)(8676002)(186003)(97736004)(16586007)(66066001)(3846002)(53416004)(8936002)(16526019)(316002)(386003)(48376002)(26005)(81156014)(81166006)(50466002)(106356001)(50226002)(47776003)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB2480; H:linux-h3ml.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB2480; 23:+o/9+KXXtipC5qkf3QIfl0iJJR3YBvkg95/IJhnGN?= =?us-ascii?Q?KEGe3qHeWzN6qYMJHa1RsX0V/Vt3DzEKRsAwzd1ySuO1WHRn8N9kia/7tpY6?= =?us-ascii?Q?5V42r0tD8BxttXyFGRqPIQrShYB2ZTrrH6JIbKgvBGTbsMhCUb2zPQWFXrGf?= =?us-ascii?Q?JBhWxi6xVEAPo444/PrHfU6MK4sKHsFrxUQdTIh19kjzfCBRNxBGZZnPnxCN?= =?us-ascii?Q?IrfIbsGXyTGpYv7M8tjJfXkcYE3K31iUY6A9fHb9ZikT6oyKY5vqL04AyPtt?= =?us-ascii?Q?SraYuWc+nIJO1i7PNNvld9T5rC6iU5qS6GiHJzVPbUCzMVNM6mFfa9+SxKmw?= =?us-ascii?Q?oNs/bjUsKDaDphIGoHkiQXdgWY7Cj/PKNoMq9EtUBhTl8M3g/YosUTJGvpTE?= =?us-ascii?Q?zaZjQu/B/CWomrElZZiEm9VFjQtnmkvau3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Is6a/yKRHlCDZUKVPNygpkvLZHvm2sPWcS8l8UpfTU4zbsUpRzPGPvT3fZ8sikPp510llLWqFvbavtehfuEbhDYdyiK4CJWYrV+tGnA6PKuVLf/wUv3cIemIZNKhjF/Za2DTb5NjhvQ6aSA/k3Lfy1r5LBPOGGsNViskjBfxfVOpCnV X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB2480; 6:CVOwEieVxDbXj3IoWeNPFuTQdziKie118vh4oqmanERPmRyHx6BbhfXMwOMibXrfGv3ApRspxKjjtg0LOXUodjokOHD3w8DzLwck0w3tQ4IjPXD+8ytb/zC1bQlTrb/wsKYhc078+hoMepN87BZq//ywJY29U1PsITfTWf/lhA34fu3MObCYcyP7lnKaEQbhm4OFLDH/F68krwE+26TVcoH1lmuAm/szrhePqO18Tpdc0iipClh8cYpOOQiHSHtafehODj8NEEP4L1FV6M+iaAhM039h6mR5DZySEcWVeCYMZQ14S8v3B1lfR4wRnyymUoGuEHfr5LKXMhGY/7yt2I9TkV48oC6Pv5ijc0f6SZj/avX2A47a/1sCYbnRaLFpWRBMYE5tb+INAdNLCpUTCqpwAfkrZBU2sOqhJ7F/k3o7JzI/v/EXCpI7KWIZzscWvODBAyGX1abHPvURAwwFoQ==; 5:/3GEZd+t3UvFecR740cZDzaM8EROqpwSTpJU4regjAs97xK2NRO4O3hK1azHsLnZkfYWmYCVj1ixnRotoQf2gcy6ZQd5n3ZBHU2N5GmFbyCr+d5ch594lgrAOSu7PwICsTqi6brVvNT/NXaA4bUa2sDwcOESBxc1R96oUBXNjqw=; 24:HY/weDl6SuSf5Ch7NzNvlLmn6npID4q9A9EU7Z3wKif5vPDOHoKCBbKy8+d4MffU+MHmwC3bACc0FSRKsrjtrw5zzPbYme6Lu1d9fVhkDqA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB2480; 7:Dsunz8wzULe6yi4p05c9rp3nzmSQ0pDfwVVuO66UqoXrRBcGe/gZsPZ5Et0u/oLHkeo+PJx0a37VasxfyYdANbjRelFh7qRq9KqTuY24aeko8vdAB6Px762HcJ2EnEjnejU9wDGL72f3AF1vshv6jidGjPLFdjHN42Bq76M+a1q3Z2tE+otGxEqhzXQJNbuhxhLhPHLnhjirrg4P1AsKmpgykgEDqcmOZc1cWxph3nnFH04f87RBsLDMBWtwl2ec; 20:0bz2YIW7p6eGHcPLE0HaQy15fhT8gSyE7zxkP6CZLfYdDBKLRY+XJXKV9cRpcqeJkNrPYyT7dzl5J284mzKrB+A5k1TQoQrag4emJpo9wlb7SrG7MzpOdrpjMJQMmgwsIFwa+yLHwJHoDxv9QJ45tvQOvxyQxUHwBjSHB0ToaxItMY43f6789hmkncOBdWY7l5ZYV14u5YQwS2kzOxDgqjf27gu49jQIkRtxhUDnYBBBtwWCiZ0HMd9FCrNiKsQz X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 01:18:41.5881 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 218601c1-aea4-4eaf-fb2b-08d5d194c429 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2480 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Disable TOPOEXT feature for older machines. Signed-off-by: Babu Moger --- include/hw/i386/pc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 04d1f8c..ecccf6b 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -303,6 +303,10 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *); .driver = TYPE_X86_CPU,\ .property = "legacy-cache",\ .value = "on",\ + },{\ + .driver = TYPE_X86_CPU,\ + .property = "topoext",\ + .value = "off",\ }, #define PC_COMPAT_2_11 \