Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1877586ybc; Wed, 13 Nov 2019 05:48:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxbyp7pNIqEoazsIQmnW6vB3wD1QkC4n3voEaP1+4dOYPCOOABjCXBS05Cd3xdHBdMtRJIM X-Received: by 2002:a17:906:4bcb:: with SMTP id x11mr2931641ejv.100.1573652897875; Wed, 13 Nov 2019 05:48:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573652897; cv=none; d=google.com; s=arc-20160816; b=nx3Jiu23OStuEPpe/vtjJVzVWcEvHvKA7SzkRNp3HJKQwzGbgqZWMalaROBhOsMQjQ YCdMQ9jMp1QFkaPUQpEptECQM5nJrOe4MLzDc2lCA1e+fnkYRGrHt/KqZy34Dhnj/xF+ Bi88il1T+VLrJr1GhLIToNqf1zOA3RMf0pbEgz30MOKjwGdEaMZj5cuOv5oxYrGaZ7XH B4xHS9DOiL3hOoLuNTw5aMU9nuC21z/A8IDNK+8t348EIFrLmBqaV4l6iIARU3BSXFIN NP7MaiTwxbRNCfdsOsN2/y9r5VSYN5aGdD0WV7V20KARm6K7eeu1atqLdt2YhTKkSSHt LJjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=9qwLV4GB7y9+lSExsBGsp5Ck9eYqGsm5GYNXmLEeIpY=; b=V/9hFUoyKjuOZnuFNDMBTwfUirj/NlLSWLQ3vQEjav1GK7rUTZp2VYlfAwpaNAOkC1 vL9JwFB7//1n72aTo/pyFxFQ3J1/MxBcYYVbx2R4aylCe02Fq3DmzLfPyOnaXt38PLne 1MHVWdIoBOt9ZxMxMBiL3DGU1AG6nV2bPl2xSbQKeFJ2bKUel2Pxp7WR9gm2SxvvWn2C T3+AC8bdv/b/LM5x7t9lrWDl8FfKPCNJB4S1BNo4XtkZUdfx1XNWN8HiZek/LDhlMVc4 ZGE7clom/tu/YnFLOF4GAGO83jcrgUS9i3aCDURwjCR9r88pj6OKD3QoDERXqsOxb7HY /1+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si1025788ejq.437.2019.11.13.05.47.52; Wed, 13 Nov 2019 05:48:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727428AbfKMNom (ORCPT + 99 others); Wed, 13 Nov 2019 08:44:42 -0500 Received: from mx2.suse.de ([195.135.220.15]:56052 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726186AbfKMNol (ORCPT ); Wed, 13 Nov 2019 08:44:41 -0500 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 360A0AD79; Wed, 13 Nov 2019 13:44:40 +0000 (UTC) Subject: Re: [Xen-devel] [PATCH 2/3] xen/mcelog: add PPIN to record when available To: Boris Ostrovsky Cc: Juergen Gross , the arch/x86 maintainers , "xen-devel@lists.xenproject.org" , lkml References: <9466c080-9926-0d9f-435a-ddf0c3ec7812@oracle.com> From: Jan Beulich Message-ID: <5f8bbcb2-2eb9-c9f4-622a-43a6d0814b94@suse.com> Date: Wed, 13 Nov 2019 14:44:56 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <9466c080-9926-0d9f-435a-ddf0c3ec7812@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13.11.2019 01:11, Boris Ostrovsky wrote: > On 11/11/19 9:46 AM, Jan Beulich wrote: >> --- a/arch/x86/include/asm/msr-index.h >> +++ b/arch/x86/include/asm/msr-index.h >> @@ -393,6 +393,8 @@ >> #define MSR_AMD_PSTATE_DEF_BASE 0xc0010064 >> #define MSR_AMD64_OSVW_ID_LENGTH 0xc0010140 >> #define MSR_AMD64_OSVW_STATUS 0xc0010141 >> +#define MSR_AMD_PPIN_CTL 0xc00102f0 >> +#define MSR_AMD_PPIN 0xc00102f1 > > Which processors are these defined for? I looked at a couple (fam 15h > and 17h) and didn't see those. And I don't see them in Linux. Certain Fam17 ones, Rome in particular (which is where I've tested this). >> --- a/include/xen/interface/xen-mca.h >> +++ b/include/xen/interface/xen-mca.h >> @@ -332,7 +332,11 @@ struct xen_mc { >> }; >> DEFINE_GUEST_HANDLE_STRUCT(xen_mc); >> >> -/* Fields are zero when not available */ >> +/* >> + * Fields are zero when not available. Also, this struct is shared with >> + * userspace mcelog and thus must keep existing fields at current offsets. >> + * Only add new fields to the end of the structure >> + */ >> struct xen_mce { > > Why is this structure is part of the interface? That's a question to whoever put it there. There look to have been decisions (see also patch 1) to have the Linux clones of Xen's public headers deviate far more from their original than I would consider reasonable. Jan