Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3175200pxb; Mon, 16 Nov 2020 07:39:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEqcNyxxLbNIwa5+0Bl501KXwz+i3cRg3FQMhf8sFlfKU6xlefe2KUMsIfwDfRcsn8pcpe X-Received: by 2002:a17:906:b202:: with SMTP id p2mr14555033ejz.483.1605541188683; Mon, 16 Nov 2020 07:39:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605541188; cv=none; d=google.com; s=arc-20160816; b=rpHeGZKz7DZoV0xKb2ttpQOtHEtDG5WJDRPhrzb4Ca7mOi5K9MhdX7PLLRTIXB3+wC Ae2iDT/VcpIblr/az+2Ctqk4fv0fmuPCgMUfGV/X3S/y37J620rAcHHe3ZMhK61fB2WU wAdsJo2TfPu/YHlTnE73xIKTq3NPkUWXtYuOKSu/Ykws9rynVTCV2H4umS4fydc1WSBZ Bu/hc6HAFuow0zs7dBPXgZgOi+F5efc8UPoWGHrxcMyiLj1st7QuaC0xjlkNS9BFlN3d 2v+Xa3yYii06clFxcyod/HAjzhKJ4yf/XwLT5iu59K4O97jNvjZ9qt64zORUJgf2LE81 4VzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=IVRXiVf5gxb/g5OZ2zSe3Lwa7wiWugG+Gg3i/98JqUQ=; b=uuiVr9tArIA8lPLDTF6lConjYdgrEOw4BJ2rzxwOzS1k4HGPPzLLiJBJ+/LFavzBoM n7P9D5mluYC73OWa5e1aJ69cE4EaVYfLvoSofyIuqwXQIfuy/zSF9xmvNHFVGpOttmBr IwGclH5D1rGVZDjjAiYhAoHygMIaFwvWcPD36bNvwd3ie2NPqjHoY9dm8Yu3Ac2p6Jtx 37v5l8eImzOQQd1gJo6zlmUus/twBa+uXtbehWKHGuomMVkgGCfH8AC5iI3VQZEnEuYy FAxzPhXv2GCQIte44LV/26pYV9Wfoi+Nr6UYJ9zZwPsW2TppOfseOWEjg3PW9kI1erR8 qG0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=bBXxFr98; 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.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qn24si11523112ejb.680.2020.11.16.07.39.23; Mon, 16 Nov 2020 07:39:48 -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.com header.s=amazon201209 header.b=bBXxFr98; 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.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731337AbgKPPfL (ORCPT + 99 others); Mon, 16 Nov 2020 10:35:11 -0500 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:15925 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730925AbgKPPfJ (ORCPT ); Mon, 16 Nov 2020 10:35:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1605540905; x=1637076905; h=from:to:cc:subject:date:message-id:content-id: mime-version:content-transfer-encoding; bh=IVRXiVf5gxb/g5OZ2zSe3Lwa7wiWugG+Gg3i/98JqUQ=; b=bBXxFr98RYUA6xo9svNg4TTgK2croibUUAzhxAnACTV62LeMovoRTbqO XXRbn8yg2YjT8mIoodH+xTC56SpGEjRQ3yrbz5VH3PTaFjVjxIzL5TnIW BhDqVWU/CUNzZ5vmDreHu3Vq+tmTaZ1AhduhdCUvkeV2Kyip+5jzG9RK1 g=; X-IronPort-AV: E=Sophos;i="5.77,482,1596499200"; d="scan'208";a="87555932" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-4ff6265a.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 16 Nov 2020 15:34:51 +0000 Received: from EX13D07EUB004.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2b-4ff6265a.us-west-2.amazon.com (Postfix) with ESMTPS id 3E1ACA0678; Mon, 16 Nov 2020 15:34:48 +0000 (UTC) Received: from EX13D08EUB004.ant.amazon.com (10.43.166.158) by EX13D07EUB004.ant.amazon.com (10.43.166.234) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 16 Nov 2020 15:34:46 +0000 Received: from EX13D08EUB004.ant.amazon.com ([10.43.166.158]) by EX13D08EUB004.ant.amazon.com ([10.43.166.158]) with mapi id 15.00.1497.006; Mon, 16 Nov 2020 15:34:46 +0000 From: "Catangiu, Adrian Costin" To: "Graf (AWS), Alexander" , 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" Subject: [PATCH v2] drivers/virt: vmgenid: add vm generation id driver Thread-Topic: [PATCH v2] drivers/virt: vmgenid: add vm generation id driver Thread-Index: AQHWvC4DvA631jYeWky3kvXgY6iRJA== Date: Mon, 16 Nov 2020 15:34:46 +0000 Message-ID: <3E05451B-A9CD-4719-99D0-72750A304044@amazon.com> Accept-Language: en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.164.242] Content-Type: text/plain; charset="utf-8" Content-ID: <9C6FE809E61EEE4C91611B73714F06CE@amazon.com> MIME-Version: 1.0 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LSBCYWNrZ3JvdW5kDQoNClRoZSBWTSBHZW5lcmF0aW9uIElEIGlzIGEgZmVhdHVyZSBkZWZpbmVk IGJ5IE1pY3Jvc29mdCAocGFwZXI6DQpodHRwOi8vZ28ubWljcm9zb2Z0LmNvbS9md2xpbmsvP0xp bmtJZD0yNjA3MDkpIGFuZCBzdXBwb3J0ZWQgYnkNCm11bHRpcGxlIGh5cGVydmlzb3IgdmVuZG9y cy4NCg0KVGhlIGZlYXR1cmUgaXMgcmVxdWlyZWQgaW4gdmlydHVhbGl6ZWQgZW52aXJvbm1lbnRz IGJ5IGFwcHMgdGhhdCB3b3JrDQp3aXRoIGxvY2FsIGNvcGllcy9jYWNoZXMgb2Ygd29ybGQtdW5p cXVlIGRhdGEgc3VjaCBhcyByYW5kb20gdmFsdWVzLA0KdXVpZHMsIG1vbm90b25pY2FsbHkgaW5j cmVhc2luZyBjb3VudGVycywgZXRjLg0KU3VjaCBhcHBzIG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