Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp796030imm; Wed, 19 Sep 2018 07:05:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYmY7RgTVa75lkH8wz/ISOxQFjCI2/QH1ezTB3WZrfA+lsdx45Gb6A5H2NtMv9fN4wmqeyT X-Received: by 2002:a62:50c3:: with SMTP id g64-v6mr35883147pfj.244.1537365913671; Wed, 19 Sep 2018 07:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537365913; cv=none; d=google.com; s=arc-20160816; b=ay0LUGZNvQmDOtMpfu0jJi2sjZCiwZ8y7NcMwocwtgLRQHzGCnEu24G42u5iHd5GOP s7h9UGFzSp7WOHuJu9g2+eauMhvpNLnn3dGJBvzG3dN9TxBZJtqbTNCm2Niiyfmw89Pn SEtkk+n7Hi1TahZZsV/r/OHkWUUSiG3AlLYPssIDkUq58ux1WT7wHJBWsoxIa8F0/pPp rq2/04bnrx0NkBzqqb92MAmx42ckvxQgK4l2o4ZFKmoynnXtFw5zKqhk36uv/NnX34+8 E6PIssNFty8+6WUYSymTZSDSS0GHgGwkfKlmuS4fd0+mRl6Xym+NvLlulWCnUiNRjo/5 ZimQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=NQ/AHoNIA9WN3oC4KLVXi1CcF8fFfKsUEreSPdtW2xU=; b=ikxI1xOWf2kxIvNtnpxYsneZqgJVwePXSnNn9kF5uCP4FcECFiSFz4w+vmdxGjS4w2 ZgSSK/t5nCUOn8I5J7tx2fI3SzkZ9v52vd6PCjfIQgyUqC5VFpFVOPoIVG5Sdo47LveW j1WY2jSSo1miWaXwu8viUwiJvWarsfSxuiEiSIs4kuF9DI0KbWLPubWcCK6nrCtVCIr0 aWRqiQh+0ulYBYwRNfIs9zkuzjcqiyfxhbFNkbUvxAEypM6/jmX6JFUvw1MNsm6/PK4k 5cUcQybrOEwmSzDHMdII+3nrQX7HyHoOtIrx2pRzhj5mTKT4zpyIkAkYyKMlTMcbj+Kh AeQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=oRLtR3X0; 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 d9-v6si20552765pgg.423.2018.09.19.07.04.38; Wed, 19 Sep 2018 07:05:13 -0700 (PDT) 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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=oRLtR3X0; 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 S1731946AbeISTTW (ORCPT + 99 others); Wed, 19 Sep 2018 15:19:22 -0400 Received: from mail-eopbgr700078.outbound.protection.outlook.com ([40.107.70.78]:21472 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731430AbeISTTW (ORCPT ); Wed, 19 Sep 2018 15:19:22 -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=NQ/AHoNIA9WN3oC4KLVXi1CcF8fFfKsUEreSPdtW2xU=; b=oRLtR3X0+iBVPUq9bB5ZzGtfVd3DpVR71K0RMUgYBmTNCnHpi7h6k31fpAhjniWdKTtYY97vB+/jvw2b2hBAaKVJUrVYGCpVvqQ+VmIy+FTywqnqYhpWLOo9wSHH/zU5gt6WZPideEl2tUvJmn5q0LciCHxprlFPNUOurFCINZI= Received: from DM5PR12MB1449.namprd12.prod.outlook.com (10.172.38.138) by DM5PR12MB1900.namprd12.prod.outlook.com (10.175.88.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Wed, 19 Sep 2018 13:41:19 +0000 Received: from DM5PR12MB1449.namprd12.prod.outlook.com ([fe80::891b:95e5:59d9:fcf]) by DM5PR12MB1449.namprd12.prod.outlook.com ([fe80::891b:95e5:59d9:fcf%2]) with mapi id 15.20.1143.017; Wed, 19 Sep 2018 13:41:19 +0000 From: Gary R Hook To: "Natarajan, Janakarajan" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "Lendacky, Thomas" , "Hook, Gary" , Herbert Xu , "David S . Miller" , "Singh, Brijesh" Subject: Re: [PATCH 2/2] Allow SEV firmware to be chosen based on Family and Model Thread-Topic: [PATCH 2/2] Allow SEV firmware to be chosen based on Family and Model Thread-Index: AQHUTHrpNwaRqYIjh0q+R9eDdc7BZaT3o+mA Date: Wed, 19 Sep 2018 13:41:19 +0000 Message-ID: <1ac0bcb0-92fd-ea8c-691f-7b80fff5e251@amd.com> References: <5c58c32c0ce89c35a95e151734f5d43a3ed0dca0.1536959537.git.Janakarajan.Natarajan@amd.com> In-Reply-To: <5c58c32c0ce89c35a95e151734f5d43a3ed0dca0.1536959537.git.Janakarajan.Natarajan@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR19CA0050.namprd19.prod.outlook.com (2603:10b6:300:94::12) To DM5PR12MB1449.namprd12.prod.outlook.com (2603:10b6:4:d::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [47.220.174.129] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR12MB1900;20:pMYV5ARxpjtFPFAYrk3OQr/jWyddIq+xJzRcZh+yBFvmXM7Hx7vG6RQ/qtlIq9SQfDQ7YS7L0cOGElbmMsOnydIEZiwISFYOx9hZ8JqEDyZn3BFhRPjeJgo/x9i8fegs52iqjp8KAibZzOQxHDzNcxke/iOMuVEBqo1dMT7X5TGP5JI8j9S6fV6egjsQHr56mOtevOpkZkHGfbJDcyzR8e3dnJglO59QTLGtuJI2VNljYT+YBLwpxfS//+ReTmux x-ms-office365-filtering-correlation-id: a3968b1a-bc12-4e7f-7142-08d61e359443 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:DM5PR12MB1900; x-ms-traffictypediagnostic: DM5PR12MB1900: 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)(5005006)(8121501046)(10201501046)(3002001)(3231355)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(201708071742011)(7699050);SRVR:DM5PR12MB1900;BCL:0;PCL:0;RULEID:;SRVR:DM5PR12MB1900; x-forefront-prvs: 0800C0C167 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(396003)(366004)(346002)(136003)(376002)(189003)(199004)(6506007)(106356001)(8676002)(2906002)(2900100001)(229853002)(8936002)(81156014)(305945005)(6436002)(81166006)(25786009)(4326008)(53936002)(7736002)(6512007)(31686004)(36756003)(5660300001)(6246003)(6116002)(68736007)(66066001)(478600001)(3846002)(6486002)(97736004)(105586002)(486006)(256004)(72206003)(5250100002)(2501003)(14454004)(446003)(575784001)(476003)(54906003)(110136005)(2201001)(53546011)(31696002)(26005)(14444005)(316002)(2616005)(386003)(99286004)(76176011)(102836004)(52116002)(11346002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB1900;H:DM5PR12MB1449.namprd12.prod.outlook.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-antispam-message-info: TIgThjMRVQMVvVQHFqh4u/RkLP+U5FmGiBFeEkp2WPrLjhBa3cN5lWeNZXt2hYoXnKSQ4JiQJzTrF0MB05QLjJM3wB91MMaCpMrvcrr11THVbNI67Ghgw7OrJv1tHQjWXPyhHSgW1ym1fDXFTx6rRBPeXXtvpNBVsVLC3GaO38XwTmksI3X4+kilygIiDLLGGVVrDCtyD6+BegD78BNSBQOrzkCdLE3WHFhg0s/ubzSF16Q7Rwt8VVjpCbOvxr7sYrKeJDosQd/fxlelU+YU4gqOyMRP01rxvOyHVqEw+bbj/1PKCnl/GT6FgB7Rvd2lMxg0VoWN7ODkA/wy/ImCvSZxq/iDyHONHqRlaEQ4ADU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <7EC152EDB77D3A43BDE544759DB4093C@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3968b1a-bc12-4e7f-7142-08d61e359443 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2018 13:41:19.1934 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1900 Sender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