[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 06/11] vpci/header: handle p2m range sets per BAR
- To: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Fri, 19 Nov 2021 13:45:32 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jgkxDi+g+yAZAflnhrwVtM0vlYcq/0qqjGv7gaV7P7Y=; b=lWa20ovA0ETsJvUV8pj78XoDfc4EllEZPQYzPbs0IE9MdBjI8nVpM+LxnsfyJRnsJrrlKHXP0CvsP1m1qjmGd2jJSsGoqCKh/4Mrnohn7gmoYTW+7SKfMLG1ZEzD4vbamu2HrKOFI9S7to7vHRmma2RO3eqvO4iUNb+Rtpu6qxzePTz+bsHVT+90QDrXMqWHdvlqUFaYjB2kbrdM3YUQ38hq0cv7/T41+/D4EWRs+XT8KUJI9kbhBKTw9BbzrjVSYYiHFRLL63DfZ5kAPax/cxHjMxt6KeJTVMBBpvz7haRSwIPUYQzLdVSChYWTBDlfi4AOE+7mN4GY3clNvBzR+Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P/dQP3IUfjpK0lKXLdmmYmhjJNWx/dnQzNTWWmDkTska+riwGLJ2MAq3tYc0n5lB/mfo+ebWXvJqT5AH9qeS93UPX8W4RKGFJfR0LPPlWKUafOFkaeFZIpudl0mT9fCYfdWVDp5MuPvir/XkY/z3zhiIdBO/YS0enUG8D9QC2LLjyiwOCFJkpbGHVqzXJO/1C/H/WFabhtdK0cqlxyARoEDedFN8XC3Kr3Is7s53auy93ZilBOzRiOwKchJzfVPX+4yOMo6FlS+iNAuoJ4bKieeKW071ZWUTLnHp2si9T5SMWCxbeZ/oJDJn0lAeq0TWZHAyrdWLj+hB65yo51j/HQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: "julien@xxxxxxx" <julien@xxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Artem Mygaiev <Artem_Mygaiev@xxxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "george.dunlap@xxxxxxxxxx" <george.dunlap@xxxxxxxxxx>, "paul@xxxxxxx" <paul@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Rahul Singh <rahul.singh@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Fri, 19 Nov 2021 12:46:06 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 19.11.2021 13:13, Oleksandr Andrushchenko wrote:
> On 19.11.21 14:05, Jan Beulich wrote:
>> On 05.11.2021 07:56, Oleksandr Andrushchenko wrote:
>>> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
>>>
>>> Instead of handling a single range set, that contains all the memory
>>> regions of all the BARs and ROM, have them per BAR.
>> Iirc Roger did indicate agreement with the spitting. May I nevertheless
>> ask that for posterity you say a word here about the overhead, to make
>> clear this was a conscious decision?
> Sure, but could you please help me with that sentence to please your
> eye? I mean that it was you seeing the overhead while I was not as
> to implement the similar functionality as range sets do I still think we'll
> duplicate range sets at the end of the day.
"Note that rangesets were chosen here despite there being only up to
<N> separate ranges in each set (typically just 1)." Albeit that's
then still lacking a justification for the choice. Ease of
implementation?
As to overhead - did you compare sizeof(struct rangeset) + N *
sizeof(struct range) with just N * sizeof(unsigned long [2])?
Jan
|