Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp918119lqp; Thu, 21 Mar 2024 22:40:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJNnD9PE0GNToo5cHi3j8asHqx0L8q0U/lPgAFeEx7D49tbFQ99KquBwR3FObNRjAnD/qKsPiNIrYjgDi2u2xO+NAVOXHkIoW+dKytoA== X-Google-Smtp-Source: AGHT+IEI5NluUdP3R2uw+4mEYrjnMuwgHHCpuZwTdPgD2UXpA+B+/eZ275qNvU2EjmMmRxszl8wb X-Received: by 2002:a05:622a:5490:b0:431:308b:41cd with SMTP id ep16-20020a05622a549000b00431308b41cdmr706989qtb.41.1711086058442; Thu, 21 Mar 2024 22:40:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711086058; cv=pass; d=google.com; s=arc-20160816; b=aTg9Tp0jYaKZRktwmuSn4HsAo0ThYTO/f8FH/Zv5t6DmqOmcyqDqJPVCuFuKqQm1rA T7sFzXaYj4CxwSssjszOHsGnKWJ0/QvVTAbLtq3bnhMPTEI9hjxh+wwPOn7B8aY4SXKf 4yiH0iwSIOdfDF05Oy3LUVUcpfCpAi6dS8EQcLuFLgjUV2aApPIqpiBYzqnqfHiQpQ60 h6tF7vtTccuMLkt2Fp8EVjH1j2lxQ8qx0Vuxn+/kj7Ld9zWG2bpvj26D6iqIExV+jN58 lqcaHlV+WAJKR7l7nHllULmEBVHBYGt89lPURTjPUEdBREJni9py8vZosGmYBl+HLXYN UR8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=BROMpVHLCWSHO69sYcqHfhDhJzuRwH9THVcSjAEu5o4=; fh=ZOYP6lOqzDo4kiDKFaE//Vq8VNdCVRVygk9G4jp60gM=; b=kGFEsj3nVA6rqNnw1DdIxxhNMDwaNEfWWJiYSPGIlfkW68+kvRGV9G+VXen0Hd+512 klKbC+7OZVT+5rXR/rfShNh0WXHCP3zo8OzOwoPemJVZ4EjBZEAVDqjVPvAKOa2Hgk7R cTxOq2W/yQN6BmnHFP7yqMqSt1qQ+0NlDWpX+IESiu7/pAcDmzj25pwYS9SajScfzU3N 0Oo0NqdCeOPq/yr6LNCOO3asydMxASgzsiFxfnmX/AXgJ0bYSHJgkvv8yrWQIMQtjYTD sy2OOOyNpq3zEhoZZBIfcafpALIHzlBs5O/P81cpPllNpBUbpfMQiOlxaco0QBAWsAej L7Jg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eq5jPgtV; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-110961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110961-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 16-20020ac85750000000b004311ddb95afsi1327935qtx.15.2024.03.21.22.40.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 22:40:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eq5jPgtV; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-110961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110961-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1CE7D1C23669 for ; Fri, 22 Mar 2024 05:40:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58CC3BA5E; Fri, 22 Mar 2024 05:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eq5jPgtV" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 558448C1F for ; Fri, 22 Mar 2024 05:40:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711086051; cv=none; b=ts7pSwybK7FQd+9UnxaH1dCp5xdtCuPKqRslOhkN+MtQGwxOhjHm2P1nOLUAo4hWixh1l2Rd1d35XQsxvjlRq4B/yza1yK+FsFFH1QZ0VIxubDo4htFtjPzAQMFpgZh4rLR+KfydO2/GMTWk12eWJiuTCwt3bXaidtH3a0xpg34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711086051; c=relaxed/simple; bh=FaXVFsApl7dblUMKMUDUIpzrwE5ABcfu9Hq6RbVdq64=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PAjZF2IE3HaXND6HGveCInTEp36y/7oy/WYOySzJXFuRMU6sqTwHS2CYwBs0SiaHMYAyvrLhI56EC9n1zzh5rfwMMhk0/uR4YSjeupkQmyNaUU662MyIxxJTTl0VrKOXilrKfu2kmEAgj6iOd0H5sjjU2JR6v6MZKSUdG1zQquI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=eq5jPgtV; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-51381021af1so2736138e87.0 for ; Thu, 21 Mar 2024 22:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711086047; x=1711690847; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=BROMpVHLCWSHO69sYcqHfhDhJzuRwH9THVcSjAEu5o4=; b=eq5jPgtVez0zzO+UAoHwSd9BXULrkVyOitAncaDPa4Tc0ZbF0FglJQYt74WlRSAdA3 S/Z5QP7Uql8ZTwONkcOmtc7+KR4RnHCn9L4fHsLpye4qkFFZ5CkgFWZbKxkktknuabup 0qLDpvEHWtpmGjN/b/6hWjEPnCR6HHH/YIYSHeZvQxoSUZS0kIOByom2tzbu79nR7OSD ZD8Ra0ntKfnLyb0BlhmFabUPnv4R0R8lqB6na9cOawFEx6W8b6eiA2XCZLwnS3MO0/Lb Spk3gWWUDaGpRE0qJAqkTmUgSh6H5xJbKvPJ0lb0VvwrWUPjEPTYEjUhM7wKWoIA3LrV RM5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711086047; x=1711690847; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BROMpVHLCWSHO69sYcqHfhDhJzuRwH9THVcSjAEu5o4=; b=emM8UhToP3ZkL6GsPlJATO+Se8fO4OEFxmMkx1UfvdI13fPs1c6ScqlRYUZtLfwaja xuIzSnihnr44MbfVDMZnE502Mclzmr3Hh5Zf+6ZMsEzhu5Uo42oeSAdrYqE9g/16HqrB e1yNpPH1ur4fFP1p1kiBdcqwH50F6C223HXIes15UZSnC6IeH0TN1wz+l8aIw3y7IJVD mjYCZGJcXl+QFIHARxL8bo0/rPPHqqGnt8SHDLi/yk0IlLwI+ngR34m3NSphkeLcI6sd MtJMkOCuewn1SltPQRE2dR5MhmcoAkHTT/22hlcj9jFy2W1c66y+K9P4sd6DtWMOaGYr shcQ== X-Forwarded-Encrypted: i=1; AJvYcCWkBoZasxwaXZCzdguKKOh26kWFLKx8nljysi97niCwL5LoVeWj7cHbmVuyrT+EvmdPCAx8lNWj9yb9YnSkYYFY5JBklWW1/TYyRtzo X-Gm-Message-State: AOJu0YzYjWRDc6MhsOW0T5RMZX7KtrbhyjXEMVgoruM4x7pZGsKiOZae YEmri/packGdG6goZx3wCKIbhtxyPjPRHQzUWD+oQE9YXp+tOcfXQ29ax6VC3LY= X-Received: by 2002:ac2:4652:0:b0:513:572f:88f1 with SMTP id s18-20020ac24652000000b00513572f88f1mr1086426lfo.27.1711086047335; Thu, 21 Mar 2024 22:40:47 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id f12-20020a17090624cc00b00a46aac377e8sm636880ejb.54.2024.03.21.22.40.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Mar 2024 22:40:46 -0700 (PDT) Message-ID: <17611183-f288-47fe-a5e1-91ee16168db0@linaro.org> Date: Fri, 22 Mar 2024 06:40:43 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 0/4] virt: vmgenid: Add devicetree bindings support To: "Landge, Sudan" , Rob Herring , David Woodhouse Cc: Sudan Landge , tytso@mit.edu, Jason@zx2c4.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, sathyanarayanan.kuppuswamy@linux.intel.com, thomas.lendacky@amd.com, dan.j.williams@intel.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, graf@amazon.de, bchalios@amazon.es, xmarcalx@amazon.co.uk, ardb@kernel.org, benh References: <20240319143253.22317-1-sudanl@amazon.com> <23692c07-98bd-477d-b244-bba14c50352c@linaro.org> <38aad6c0e698c8e804694276d1762d61f2068ce8.camel@infradead.org> <20240320161531.GA1810860-robh@kernel.org> <60404403932a984d1f75d111ff53b9053af03579.camel@infradead.org> <20240321133250.GA1600070-robh@kernel.org> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHa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yjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 21/03/2024 18:39, Landge, Sudan wrote: > > > On 21/03/2024 13:32, Rob Herring wrote: >> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. >> >> >> >> On Wed, Mar 20, 2024 at 04:55:45PM +0000, David Woodhouse wrote: >>> On Wed, 2024-03-20 at 11:15 -0500, Rob Herring wrote: >>>> On Wed, Mar 20, 2024 at 01:50:43PM +0000, David Woodhouse wrote: >>>>> On Tue, 2024-03-19 at 16:24 +0100, Krzysztof Kozlowski wrote: >>>>>> On 19/03/2024 15:32, Sudan Landge wrote: >>>>>>> This small series of patches aims to add devicetree bindings support for >>>>>>> the Virtual Machine Generation ID (vmgenid) driver. >>>>>>> >>>>>>> Virtual Machine Generation ID driver was introduced in commit af6b54e2b5ba >>>>>>> ("virt: vmgenid: notify RNG of VM fork and supply generation ID") as an >>>>>>> ACPI only device. >>>>>>> We would like to extend vmgenid to support devicetree bindings because: >>>>>>> 1. A device should not be defined as an ACPI or DT only device. >>>> >>>> This (and the binding patch) tells me nothing about what "Virtual >>>> Machine Generation ID driver" is and isn't really justification for >>>> "why". >>> >>> It's a reference to a memory area which the OS can use to tell whether >>> it's been snapshotted and restored (or 'forked'). A future submission >>> should have a reference to something like >>> https://www.qemu.org/docs/master/specs/vmgenid.html or the Microsoft >>> doc which is linked from there. >> >> That doc mentions fw_cfg for which we already have a binding. Why can't >> it be used/extended here? > QEMU has support for vmgenid but even they do not pass vmgenid directly > to the guest kernel using fw_cfg. QEMU passes the vmgenid/UUID via > fw_cfg to an intermediate UEFI firmware. This UEFI firmware, running as > a guest in QEMU, reads the UUID from fw_cfg and creates ACPI tables for > it. The UEFI firmware then passes the UUID information to the guest > kernel via ACPI. > This approach requires yet another intermediary which is UEFI firmware > and adds more complexity than ACPI for minimalist hypervisors that do > not have an intermediate bootloader today. What stops you from passing fw_cfg not to UEFI FW? BTW, no actual VM name was used in your posting, but now suddenly it is a talk about QEMU. Best regards, Krzysztof