[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: Jan Beulich <jbeulich@xxxxxxxx>
- From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
- Date: Fri, 19 Nov 2021 12:50:42 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=Gucn4GoxjAnbDeafu2/ruyMlVydR6mo0GvKh1UJKVQA=; b=N2y9Jt01OmsP6WqPa2onY8D/TZpJeP1WyB0ey+C/RQ5u14jQ1cAG9SxxYKJ39hoIkFy3noNq9ZXi/+9tknERtM0MwDds5yu6etE2JqHLpPC8WhbDbvw7XQVnF32b0ETij/a+y1ScrgywkD8CfOiezm67+F6NwiwXSWw0lPGiLibNR1HAXoSwl+JLh6GMP5vhor8l+yHNgeYBlbezjj9NluBuBsc13JCysO2Jf9O24+ZYgJtuCkSw/pKjMrV4AX0Vsx+4AEJX/tPob4UlIVgn91Cp4BIvf9zpMPodvZU0rXuSW2Mki8dlGdf6vExXpqBV/bSVXoRjKwK36LnUTe5g4g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iuK/g6c14aP2jpNiWq4vDWRavWF6oN404PthDReOj6D+z/ZHg/gexh02IbkZcEV7T9ukg50D152MGIkDYLPbnYjrFIkR8gZCrHNYvtEf64yo68XkRDkxV456/0HuK9AUtb5NWajm8TYRhLsuLzsN2yzk4TDJJVKiM24FaLdLolJx+CGr+RsgBcwuYlo1+uo6ASa/stgkh8DAiYPxZGWzHzQMX8/x5u+hT7KO8l16PbCKOf0z+qdmv98VIOnX8VO8X2sVfFiY3Rr2JEiIdehWzAC1dGgkNTgGynICoJratXX3mvRok24+jxppqr+moYzSiFjOcFCK7bA8doUOKOt5gw==
- 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:51:05 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHX0hJLwt+wJ2t1lka5jlbMIq7ZAqwK13MAgAACAoCAAAkUAIAAAXCA
- Thread-topic: [PATCH v4 06/11] vpci/header: handle p2m range sets per BAR
On 19.11.21 14:45, Jan Beulich wrote:
> 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?
I guess yes. I'll put:
"Note that rangesets were chosen here despite there being only up to
<N> separate ranges in each set (typically just 1). But rangeset per BAR
was chosen for the ease of implementation and existing code re-usability."
>
> As to overhead - did you compare sizeof(struct rangeset) + N *
> sizeof(struct range) with just N * sizeof(unsigned long [2])?
I was not thinking about data memory sizes in the first place, but new code
introduced to handle that. And to be maintained.
>
> Jan
>
Thank you,
Oleksandr
|