Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp390271pxb; Thu, 19 Nov 2020 04:06:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwz6Z2Qt1lsw36N5Tw2gCdeP+XHJuNeFxtBUcD+CPNX5UNcPBh92Jak1+GZ3gbZyZP0zVGl X-Received: by 2002:aa7:c716:: with SMTP id i22mr30992620edq.94.1605787593646; Thu, 19 Nov 2020 04:06:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605787593; cv=none; d=google.com; s=arc-20160816; b=l994g4Iiuv7I3QPGc9M6JqJGWMxmYWip8mTiQ/rYRjFG8w1Sh8u9UzwBABWtLBO3pc inufn4/vvC1r/BptypU5+e4tIg2H30+MVtDtd8GgIqJ39vJPCepoCqFwNMkuHLc6Leys yWVKHSM84dbYB/HVI761yEZTRrvBGnU899cDDy3mxDlbPqsw7xQg0U+zwIfgla7oHptC yI0Zfl29WBnSvibDey6/O+5Begz+CLkA3k6WfOOKy5vFIb2vKIHL6eM7aUszFfNuLG2I V0vG2joci5gRy5OqBDlFs8ILGd5X7qJUiCoPsFcpkSTh2JTnAgrGF+KgChuw8ktZHLyi 0Tfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=LhudYgp7LwyrzB9nzt7AbefNHLUSPXxp2TUOfBUDXPo=; b=0QG/PDsSTKQdzXH4WTujsR/gmJYHDYlv/LvxTeyfiAq+jFDk9lj7qz1ngTPJUGSTSi AfqYmEFEe5vz63i3kXNrZUucY1OCn+RtLryRqnzcOMOxVn7y/dvVxjiNyqsZ6UFwLVeG 5BhvEGAH+0V4c1SddXS6Mstn/HxuwsN6d0vg/GasDaRc1o4uiZ0AjMWxydsgIGAI40Pq JujC/Qiz2W9d9rmug/XhAeRu8iE2ut/37TrmypVa+AW3CuDUrc51aHu+EwtLId+S3Xpd 0V97k0ZwWL+N0r4fICkKjk6SAQWRJccA4Ly2i0f667WB9HSXGjLOHSB2dVehIzUDHaa7 8D+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=o7fkJ6Ft; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si14414741ejd.580.2020.11.19.04.06.09; Thu, 19 Nov 2020 04:06:33 -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=@ibm.com header.s=pp1 header.b=o7fkJ6Ft; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726988AbgKSMDY (ORCPT + 99 others); Thu, 19 Nov 2020 07:03:24 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:46830 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbgKSMDX (ORCPT ); Thu, 19 Nov 2020 07:03:23 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AJC1juS015700; Thu, 19 Nov 2020 07:02:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=LhudYgp7LwyrzB9nzt7AbefNHLUSPXxp2TUOfBUDXPo=; b=o7fkJ6FtiGRijn5pIBAGGina1Qkkr4fdwDVKkAbDO/AV01TwrzuCzH5q/J204nfAucNa rSDhumvhzocyOnYOe8/BJRE9br990fWreOtVQuqohH0GuHLuJToEqZxt199FTDOtn8l6 2ZREDQAofFAU97dwCecaexqsUmO3S6UD1BE3RlwFfM3ZiZO48y6jHALi+EGv8/NZMy1b dQfs2nYv11E+56oqOxagsGt038uHKmiedaax3ZRJZfKikMWmOKS32MsDizVv5yuRtoG4 DJ/QUmor6hHENVRhLoGdjSrrBYaA7MwUVpIhV478qlAEHbIyLQlN+oQx9Ao/G8evUIg9 Rg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 34wg685eje-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Nov 2020 07:02:25 -0500 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0AJC2Mqg018550; Thu, 19 Nov 2020 07:02:24 -0500 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 34wg685edm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Nov 2020 07:02:24 -0500 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0AJBrJJe029665; Thu, 19 Nov 2020 12:02:19 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma05fra.de.ibm.com with ESMTP id 34v69usa0p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Nov 2020 12:02:19 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0AJC2HNP63111558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Nov 2020 12:02:17 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4099352054; Thu, 19 Nov 2020 12:02:17 +0000 (GMT) Received: from oc7455500831.ibm.com (unknown [9.171.22.151]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id AFB9152051; Thu, 19 Nov 2020 12:02:15 +0000 (GMT) Subject: Re: [PATCH v2] drivers/virt: vmgenid: add vm generation id driver To: "Catangiu, Adrian Costin" , "Graf (AWS), Alexander" , "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: Christian Borntraeger Message-ID: <300d4404-3efe-880e-ef30-692eabbff5f7@de.ibm.com> Date: Thu, 19 Nov 2020 13:02:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 In-Reply-To: <3E05451B-A9CD-4719-99D0-72750A304044@amazon.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US X-TM-AS-GCONF: 00 Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-19_08:2020-11-19,2020-11-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 clxscore=1011 malwarescore=0 priorityscore=1501 impostorscore=0 bulkscore=0 mlxlogscore=999 phishscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011190087 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16.11.20 16:34, Catangiu, Adrian Costin wrote: > - Background > > The VM Generation ID is a feature defined by Microsoft (paper: > http://go.microsoft.com/fwlink/?LinkId=260709) and supported by > multiple hypervisor vendors. > > The feature is required in virtualized environments by apps that work > with local copies/caches of world-unique data such as random values, > uuids, monotonically increasing counters, etc. > Such apps can be negatively affected by VM snapshotting when the VM > is either cloned or returned to an earlier point in time. > > The VM Generation ID is a simple concept meant to alleviate the issue > by providing a unique ID that changes each time the VM is restored > from a snapshot. The hw provided UUID value can be used to > differentiate between VMs or different generations of the same VM. > > - Problem > > The VM Generation ID is exposed through an ACPI device by multiple > hypervisor vendors but neither the vendors or upstream Linux have no > default driver for it leaving users to fend for themselves. I see that the qemu implementation is still under discussion. What is the status of the other existing implementations. Do they already exist? In other words is ACPI a given? I think the majority of this driver could be used with just a different backend for platforms without ACPI so in any case we could factor out the backend (acpi, virtio, whatever) but if we are open we could maybe start with something else.