From patchwork Thu Jun 16 15:09:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Ostrovsky X-Patchwork-Id: 9181239 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 769066075D for ; Thu, 16 Jun 2016 15:11:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6769228357 for ; Thu, 16 Jun 2016 15:11:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BD9E28365; Thu, 16 Jun 2016 15:11:35 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E978E28357 for ; Thu, 16 Jun 2016 15:11:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDYux-0000ir-Ee; Thu, 16 Jun 2016 15:09:15 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDYuw-0000il-HY for xen-devel@lists.xenproject.org; Thu, 16 Jun 2016 15:09:14 +0000 Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id CE/5F-21227-911C2675; Thu, 16 Jun 2016 15:09:13 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRWlGSWpSXmKPExsXSO6nOVVfyYFK 4wYHFPBbft0xmcmD0OPzhCksAYxRrZl5SfkUCa0bTlvWMBS9YKm5d2MrawPiNuYuRi0NIoI1J 4vLHA6wQzhdGiXcTp7BAOBsZJdbPnsoI4WxnlPh6Yj17FyMnh7CAj8SlFd9ZQWwRgXCJrXfbW EBsIYEiiRs7pzKD2MwCuhLL7l0Fq2ETMJI4e3Q6I4jNK6ApceLff7AaFgFViZl/HoD1igLNuf V7MRtEjaDEyZlPwOKcAvYSH74fYIWYqS7xZ94lqPnaEssWvgazJQQMJU4/3MY4gVFwFpL2WUh aZiFpWcDIvIpRvTi1qCy1SNdcL6koMz2jJDcxM0fX0MBYLze1uDgxPTUnMalYLzk/dxMjMHQZ gGAHY+N3p0OMkhxMSqK8p/cmhQvxJeWnVGYkFmfEF5XmpBYfYpTh4FCS4OU6AJQTLEpNT61Iy 8wBRhFMWoKDR0mE1x8kzVtckJhbnJkOkTrFaMzR8+r2WiaOBT+ApBBLXn5eqpQ478X9QKUCIK UZpXlwg2DRfYlRVkqYlxHoNCGegtSi3MwSVPlXjOIcjErCvJ4gC3ky80rg9r0COoUJ6BSb6fE gp5QkIqSkGhib/auvH/VKi9A2EeiKqw+W3DExw9Y3fPO2Uw0LVjd5f/k0n/1ooVb1A0mu7use S+9/eeMhwFuso/D8+GvP6JQglasbYi5VR8S/F+O+cftl9zd1o2s3PVRWhvI8mc1ovXL7BnG9p 2nrTS8r/GCeds6r2qPCKpp9j96La8clvAscGgV5eTVl9iuxFGckGmoxFxUnAgBtMLRZ6QIAAA == X-Env-Sender: boris.ostrovsky@oracle.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1466089751!9104285!1 X-Originating-IP: [141.146.126.69] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTQxLjE0Ni4xMjYuNjkgPT4gMjc3MjE4\n X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 5974 invoked from network); 16 Jun 2016 15:09:12 -0000 Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by server-9.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 16 Jun 2016 15:09:12 -0000 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u5GF995f000894 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 16 Jun 2016 15:09:10 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u5GF99Mt008354 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 16 Jun 2016 15:09:09 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u5GF98XP032506; Thu, 16 Jun 2016 15:09:09 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com (/10.152.20.106) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 16 Jun 2016 08:09:08 -0700 To: Jan Beulich , xen-devel References: <57628EA302000078000F596B@prv-mh.provo.novell.com> <5762901802000078000F597A@prv-mh.provo.novell.com> From: Boris Ostrovsky Message-ID: <5762C111.5050600@oracle.com> Date: Thu, 16 Jun 2016 11:09:05 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <5762901802000078000F597A@prv-mh.provo.novell.com> X-Source-IP: userv0021.oracle.com [156.151.31.71] Cc: Andrew Cooper Subject: Re: [Xen-devel] [PATCH 1/2] hvmloader: limit CPUs exposed to guests X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP On 06/16/2016 05:40 AM, Jan Beulich wrote: -boris Reviewed-by: Boris Ostrovsky --- a/tools/firmware/hvmloader/acpi/mk_dsdt.c +++ b/tools/firmware/hvmloader/acpi/mk_dsdt.c @@ -150,6 +150,14 @@ int main(int argc, char **argv) indent(); printf("MSU, 8\n"); pop_block(); + /* Processor object helpers. */ + push_block("Method", "PMAT, 2"); + push_block("If", "LLess(Arg0, NCPU)"); + stmt("Return", "ToBuffer(Arg1)"); + pop_block(); + stmt("Return", "Buffer() {0, 8, 0xff, 0xff, 0, 0, 0, 0}"); Could you explain what this is? (I suspect this is related to MAT object and I don't think I understand what it is).