From patchwork Thu Dec 5 15:43:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 11275019 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7731714BD for ; Thu, 5 Dec 2019 15:43:42 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5D00322525 for ; Thu, 5 Dec 2019 15:43:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D00322525 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ictHM-0000KB-Gz; Thu, 05 Dec 2019 15:42:56 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ictHL-0000Ju-Hx for xen-devel@lists.xenproject.org; Thu, 05 Dec 2019 15:42:55 +0000 X-Inumbo-ID: e6df9efe-1775-11ea-822e-12813bfff9fa Received: from mx1.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e6df9efe-1775-11ea-822e-12813bfff9fa; Thu, 05 Dec 2019 15:42:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BE2E4AFAE; Thu, 5 Dec 2019 15:42:53 +0000 (UTC) To: "xen-devel@lists.xenproject.org" From: Jan Beulich Message-ID: Date: Thu, 5 Dec 2019 16:43:08 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 Content-Language: en-US Subject: [Xen-devel] [PATCH v2] x86: support Atom Tremont X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Wei Liu , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Add model 0x86 to relevant switch() statements, as per SDM 069 Vol 4. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- v2: Drop spec_ctrl.c adjustments. --- a/xen/arch/x86/acpi/cpu_idle.c +++ b/xen/arch/x86/acpi/cpu_idle.c @@ -238,6 +238,8 @@ static void do_get_hw_residencies(void * case 0x5F: /* Goldmont Plus */ case 0x7A: + /* Tremont */ + case 0x86: GET_PC2_RES(hw_res->pc2); GET_PC3_RES(hw_res->pc3); GET_PC6_RES(hw_res->pc6); --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -2778,6 +2778,8 @@ static const struct lbr_info *last_branc case 0x66: /* Goldmont Plus */ case 0x7a: + /* Tremont */ + case 0x86: /* Kaby Lake */ case 0x8e: case 0x9e: return sk_lbr;