From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.8.111; helo=eur04-vi1-obe.outbound.protection.outlook.com; envelope-from=dplotnikov@virtuozzo.com; receiver=edk2-devel@lists.01.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80111.outbound.protection.outlook.com [40.107.8.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 70F7F202E53FE for ; Wed, 11 Jul 2018 06:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UsiJwge3erwkHqY5nIgMBiUg5MR3c2SMt9pBLCovnXI=; b=AkSc70jgs6bWlZr7wo0O1MgQPUFzRfJ+eJXXxh7EgXcvR3MKROBI3T9NUpyPCLvx8Q1pvt2vi1M6yeDEZmWmY9d0iLp3ZdnkJdEtnSb1igVQCI8c4PAcluv+mYCCp8Uj+V4bPiqDt1VANs+p0Se1YAlHVjhT16V51Ccm1yss8xU= Received: from [172.16.25.125] (185.231.240.5) by VI1PR0802MB2367.eurprd08.prod.outlook.com (2603:10a6:800:9f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.17; Wed, 11 Jul 2018 13:01:48 +0000 From: Denis Plotnikov To: edk2-devel@lists.01.org References: Message-ID: <127d7602-3d0a-b7f0-5447-8fd7ac41ee5d@virtuozzo.com> Date: Wed, 11 Jul 2018 16:01:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [185.231.240.5] X-ClientProxiedBy: AM0PR02CA0029.eurprd02.prod.outlook.com (2603:10a6:208:3e::42) To VI1PR0802MB2367.eurprd08.prod.outlook.com (2603:10a6:800:9f::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 49d30b5c-df64-4aea-9da5-08d5e72e7697 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0802MB2367; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2367; 3:iwzBh3JdJIz3ezbgpHQff5XDe5ctFmWAAR3nXn8l6B7Ut/7jKH0MmJw4GmL+wsWlBWyscbx3prerAjjfDaN/Vmvi9dVMPH2iBC2NvpDu9obKTtofG5c6LDtjlDWdTJ+0hIZsX0LkunDC33s5cOhOuA3u3BELD3f4m9thccyh8i1OeSIkWY7uVBYXmlxSNq9nzLLaP7lUS8K3pYpp0QpOfuxMs4TFE8dvPOy5Ftj8dJoEvJTelR1aM4ifW35uB+ST; 25:6gNPViC6RAmJQJs+nSa88U/KST95byiiGeDq6LUvKV5Atj1xiwU6dgAQFmO2l8Pe+Ek4aezA2lPctZHcN37ZNqSFyxB560ElGYEbT3LioJTDweQaayuymwNbCvNLSGEIxngm6wWCXRfiMObDtoSdhgDJZrhnHfRy0GGteLRipFnCRm5TZCP1IPiS2+2JuOmtlOiAQNskjzqdI3pVzkI9F3MgGZ9reWNPEzlUeD9JmgVRcbAlmDAviLtkMIKZZ7vzcepQ1E3lzT23BgTDrFt/46gg9I1RvqPTxhbDgwI/RFFFoDZX7n6W57nAqZpyOJKTmvdRCqtstZK3VV97y+7IHw==; 31:TTNDJzqBdOnxL1leFWSn9YmpX1WWWkfiTo3bTtfj8Gy/Tnu/5bvo3hP+fXlmTubBXBHR7/y+CxjMIPylEVeZjZthSZXY+oMJUR82kTkMsxz+0mKEuvQ0hOAqegSn8v/3BNN7JiS6ma1Uh4zlBSwhZ/QXXnBSGjN9OhYmZNo/A87/RUFa8vfgCrWncMaEeRjx2gUYmDoOJQw7bl+GbdwL2sUI9UuHI2ons6ATtNnhVOw= X-MS-TrafficTypeDiagnostic: VI1PR0802MB2367: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=dplotnikov@virtuozzo.com; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2367; 20:F20Ar7yLaEPLvIHAJztb75t4t49IEDMeil4e20w2aFru4aisWuj8TKJkJMz1lHJcVZBLepqimbG+jjL4Lc5SzM7Mb1SpRQWxGdtJHy8iIOC5PL7ZGtoTL7s/lbTuRzYi7TInCN29RwFqi0kt/IO+bUe6uTUaLPeWTKhmOiONs/+ggrXlqjSDec94rnmVZ4Hkrg+MZwMtMf6//d3628UWc3bfehxLCFRN7xqopjFPnp/4GI4N/UxBHzMUnWEKieh9e6oiRQaW/LtLERPJnugQz1KWPGopKxcZZ1fIeYTVzNpe7oJF5nAhW27T46lNx+MMhUyQreedO+golQsIDcNj3oDk/UjW6Z+cByNfV5pAuCBfmgbDxNCy41NjqE0p5eiUHempCNUdre0La8864nGLUY0unBgwdS4BVEmKl3HNQRFwXTHM4uJkli+9knlQPZBreYkGJDwmmHPvVSSd8oYLLFFma/23494canNuFPvYlRndr1QN5SODCBeyhxS5TFvj; 4:VwnDojM1eoR+NHmOY12je/sVgeG6LRww8qKDq24oh1vc3vD5SzX2a3NzUdaoYdeebBCEYUEzhwbWfKlPTnx/Z+0ZS7qJusLEp9PRQY4L29c3fx0LcdsaeG3ICY4u6HaP7KBe9XJgxYuNWgeWL+KSr5/doHrTphBuRSlcvWJBOB5y6HZs7877UWH5v1Re2Gf03sqzs4BlKUV6zVjxC2hs8qEVyrFn+Zdu9aW57jN9TJQXy/RW6Cn5tZieKfsLALd3GI9ktyPYQgf+OurZXRpLJA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:VI1PR0802MB2367; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0802MB2367; X-Forefront-PRVS: 0730093765 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6049001)(366004)(346002)(376002)(39850400004)(396003)(136003)(189003)(199004)(47776003)(6916009)(31686004)(36756003)(478600001)(106356001)(2351001)(105586002)(5660300001)(8936002)(65826007)(2361001)(23676004)(305945005)(6486002)(52116002)(7736002)(81156014)(81166006)(64126003)(6666003)(8676002)(2906002)(52146003)(2486003)(386003)(186003)(58126008)(16576012)(316002)(14444005)(50466002)(67846002)(16526019)(77096007)(86362001)(2616005)(486006)(476003)(956004)(53936002)(446003)(11346002)(230700001)(26005)(25786009)(65806001)(66066001)(68736007)(6116002)(97736004)(76176011)(31696002)(65956001)(3846002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0802MB2367; H:[172.16.25.125]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA4MDJNQjIzNjc7MjM6MmRyNXVRVytXRnlwdjFDVXVCNnhWM3hG?= =?utf-8?B?dnRjeFdoSHFoOUhGWTZjQjJ3U1REaUY4RG1Zdm5oTStQeVVZV3hTRk12d3FY?= =?utf-8?B?NUtDUUNhbmY5MzJ1cXhCWnBnc05jR2phVlhPWnRuR3NRNzdaZ1ZsTUVkYTNM?= =?utf-8?B?dnJlcWR0aXMzNEFRenppckhuTjhkcEswMnd1clRYMkhsVk9EaDByQW9raGtY?= =?utf-8?B?NHpCMkRoL1JzWkFGOHY2dGdSU3N0aj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exchange-Diagnostics: 1; VI1PR0802MB2367; 7:1/EQSHRftvxzvFdkG8sTN6fP1GwGxf6PGbfAmTGFnvtAZ7fcyOjJfGXHI+m75WRvkSz3S3xslC7lOT0NZnCYwNessVMlE6NmMJKZKQU6ba1HxiI/yBtKWSHlDuw1ooZfM0IQIUWq+8jGNVNWo/vVdLRrEMmefPuO9oDWVxEKRD6HfAlJ4Kr2SnuMuT5kro2isAkbX6RiDhrFuMJK3PE3HyU2Pt8WMTX26f+8kl2blz7jWSJ7kK5pdS63qvKclWCs; 20:vOLfAbpwv+wd4XtWQ3D0HLZXNdTLtKma+8baYhxJA7o+9jrIe0LjZk8AD2tnj3wvT6c/THOw3Ae2Qz1hNOWB+73JhdYZwX9xO6bcVDH25tkY9H/jSiLs8RRhOh6LRk1CGELesVP9XmD/nTDT/CZl6R5dxFmvBOm+GLiqNzSws2U= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2018 13:01:48.4765 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 49d30b5c-df64-4aea-9da5-08d5e72e7697 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2367 Subject: OVMF dynamic NVRAM size discovering X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2018 13:01:52 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Hello! I'd like to ask whether it's a good idea or not to make the omfv discover the variable image size in the runtime. We have a setting in our product to use separate pflash images for OVMF code and variables parts in QEMU/KVM based virtual machines. Currently, we use a 2M code image but want to switch to using a 4M ones to extend the variable values storage, because of Windows certification requirements. We think of adding an ability to OVFM to discover the size of the variable part dynamically. It could work like the following: 1. teach qemu to provide the size of pflash0 and pflash1 via fw_cfg 2. modify OVMF in order to discover the variable size part dynamically via fw_cfg and adjust the OVMF's inner parameters accordingly We have some concerns about our understanding of OVMF and would like to ask to evaluate the approach suggested. Is it feasible? Do we miss something? -- Best, Denis