Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2388541pxu; Mon, 7 Dec 2020 05:28:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAD15PEPe0gkwISvdFrlDz/+08+3WulvFjE2u1uA6gjKpc7NY3404UcWSBt8hXIe0rMujt X-Received: by 2002:a17:906:2b81:: with SMTP id m1mr19334551ejg.251.1607347729212; Mon, 07 Dec 2020 05:28:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607347729; cv=none; d=google.com; s=arc-20160816; b=Tjhcd9mlHvFRymq9zG96WsE1d4MG43mKTLUHmWSo2wogy6v+csCbtEy0pZ04SxUyuW VZ3bRkzht6I0/Rlr23S+siZXbrwetytarBXSYR3Z8Z9hDTsvkl1WsI81IwdgzWY/sK4m PiLjV/DT8j1yw+QtTCctWHcgCTfPnGLbGnpmlFztlvUb/CiXrYs6gXqaMPH47VK0WPwM 17UUXhtuPHP5Iydae+gtPhktLK6nehu81Cp1Jmt2G2lSqDPO1CmCnJXKUlq7GSBOhcLf 1sTBy5Ezjw5rM/SaLsiafNTjsXJKKpXbbh65qMEtFlxyOJxBYfjioI8UltZjcEHU95YX Mc5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=AKThYDO30aCQlFxaLvsXPFC2329sFZnRjeS+VWSf47s=; b=BJM76o2dl1Rmv/cCjJMWqhq2WfieylBT4fc29HfabpNMj2ElijrFEkZTY5U+ihOxSm f893S7EVAQcG5GhBL97EtLuXcTHeYlmZUSJu/truBffxHLAMhgONGA4MzYLKa0UaQGrb nZ0a5zTmV0hph3aiJ5ArH/sY6TCIAzYdV2W2s1E4n+0eSY3A3HB4nZhchMgQvR7a5Tun wgzLkI6DV9NDrZE4YP2HBIz6W0K42YWuaaeDmu0HcyU/hH6UUeGPMX2QDWcBQZRoexEW xiSvpJhYDkwRIjJWMyhuzIw68HyylA4ad4+F1cGXrlQIqyAjirquad+tesm3UIXxpvCp hdSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=YFO37trx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e26si6352157ejc.540.2020.12.07.05.28.25; Mon, 07 Dec 2020 05:28:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=YFO37trx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726410AbgLGNYV (ORCPT + 99 others); Mon, 7 Dec 2020 08:24:21 -0500 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:35985 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbgLGNYU (ORCPT ); Mon, 7 Dec 2020 08:24:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1607347460; x=1638883460; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=AKThYDO30aCQlFxaLvsXPFC2329sFZnRjeS+VWSf47s=; b=YFO37trx+2Mbon+u3YAz0REi/WJ89qZywDRItBTBKkva2VFxlivzt+7t 2DPk2k20FOWQ07cYDtN80tGP1WFTROFrZXUMk2tl1Y1LQSzPdFDGLd7Mt K5/CzRJUVfHZOqDjBow5YAEdNEci4e1L/rZlpqHFkaZQQR0ehWMYH/zWs w=; X-IronPort-AV: E=Sophos;i="5.78,399,1599523200"; d="scan'208";a="94007336" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 07 Dec 2020 13:23:30 +0000 Received: from EX13MTAUWC002.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com (Postfix) with ESMTPS id D9B6AA06B8; Mon, 7 Dec 2020 13:23:20 +0000 (UTC) Received: from EX13D20UWC001.ant.amazon.com (10.43.162.244) by EX13MTAUWC002.ant.amazon.com (10.43.162.240) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 7 Dec 2020 13:23:20 +0000 Received: from freeip.amazon.com (10.43.162.252) by EX13D20UWC001.ant.amazon.com (10.43.162.244) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 7 Dec 2020 13:23:09 +0000 Subject: Re: [PATCH v2] drivers/virt: vmgenid: add vm generation id driver To: "Catangiu, Adrian Costin" , Christian Borntraeger , "Jason A. Donenfeld" , Jann Horn CC: Willy Tarreau , "MacCarthaigh, Colm" , "Andy Lutomirski" , "Theodore Y. Ts'o" , "Eric Biggers" , "open list:DOCUMENTATION" , kernel list , "Woodhouse, David" , "bonzini@gnu.org" , "Singh, Balbir" , "Weiss, Radu" , "oridgar@gmail.com" , "ghammer@redhat.com" , Jonathan Corbet , Greg Kroah-Hartman , "Michael S. Tsirkin" , "Qemu Developers" , KVM list , "Michal Hocko" , "Rafael J. Wysocki" , "Pavel Machek" , Linux API , "mpe@ellerman.id.au" , linux-s390 , "areber@redhat.com" , "Pavel Emelyanov" , Andrey Vagin , "Mike Rapoport" , Dmitry Safonov <0x7f454c46@gmail.com>, "Pavel Tikhomirov" , "gil@azul.com" , "asmehra@redhat.com" , "dgunigun@redhat.com" , "vijaysun@ca.ibm.com" References: <3E05451B-A9CD-4719-99D0-72750A304044@amazon.com> From: Alexander Graf Message-ID: Date: Mon, 7 Dec 2020 14:23:06 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Originating-IP: [10.43.162.252] X-ClientProxiedBy: EX13D34UWA002.ant.amazon.com (10.43.160.245) To EX13D20UWC001.ant.amazon.com (10.43.162.244) Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CgpPbiAyNy4xMS4yMCAxODoxNywgQ2F0YW5naXUsIEFkcmlhbiBDb3N0aW4gd3JvdGU6Cj4gCj4g T24gMTgvMTEvMjAyMCAxMjozMCwgQWxleGFuZGVyIEdyYWYgd3JvdGU6Cj4+Cj4+Cj4+IE9uIDE2 LjExLjIwIDE2OjM0LCBDYXRhbmdpdSwgQWRyaWFuIENvc3RpbiB3cm90ZToKPj4+IC0gRnV0dXJl IGltcHJvdmVtZW50cwo+Pj4KPj4+IElkZWFsbHkgd2Ugd291bGQgd2FudCB0aGUgZHJpdmVyIHRv IHJlZ2lzdGVyIGl0c2VsZiBiYXNlZCBvbiBkZXZpY2VzJwo+Pj4gX0NJRCBhbmQgbm90IF9ISUQs IGJ1dCB1bmZvcnR1bmF0ZWx5IEkgY291bGRuJ3QgZmluZCBhIHdheSB0byBkbyB0aGF0Lgo+Pj4g VGhlIHByb2JsZW0gaXMgdGhhdCBBQ1BJIGRldmljZSBtYXRjaGluZyBpcyBkb25lIGJ5Cj4+PiAn X19hY3BpX21hdGNoX2RldmljZSgpJyB3aGljaCBleGNsdXNpdmVseSB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