[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 14:09:56 +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=enHaVuO1OJO5Oi5HKjymxZ+g0jN4HNM6XFe8TazavlE=; b=hbugRRcyD/uaQjuzMxUFschX8PuzQuRaSJ9GzXTMtBjtCNOBGL6fRVT4Ac6a6b04J2K9fS0gItRqH5umm8/mi23Q/PMmo8QBNwJfaGipzuUw3o+0jSvhlYwAEYLQakhCDyTmawTSpIilwN79Io3ErlQdF1qeHEjZGrdYBXyzDHeD8MIjzgmTrb6q2M2LNBwjaWca7qOxiMaXprsLEfDYTq8iqGjnLXJ34faMC5qpMgWEzSC00OGQVsJGPC6k+bkLVuakMzI/kVVlCK8h3esZhhIu7iOgOhaYsjjLlOZRvq3JLTUQeyun7ycU1LU3wyLSI3bklTNgzLyqIZCRHd926w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dGsp4zy7uxyoweyjLMfv66CyjD81NwkXOngYFVWW7NIJNdg9EcjNE97QhbmPgYNXB4+ZrTjfssU1uCQ9ySDqHesHx3g8RUXhN4RTr3zKw7kNVtTfYYbE3ynZ7KbnkxKGIB9OmWdOvYmGtoi2ZDzGOZqwTX+rayOD5nqiZnEyc58Eg1ibvDRBgNeP/0Hz+aHtaf7F3d4VJj9NjkTXj+D30JWjy/4Zffkd6ryCZ6fzpFXthWXfDvMa7561H3sYFUTiSWDpYCoJQhOA2b9L8xH1xIdYCD5B7wlydqZifYVFMKSH7a/5E21+WcUm8q0574ijr/6CLFmd9QaTJNhAjyVvXg==
- 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>, Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
- Delivery-date: Fri, 19 Nov 2021 14:10:16 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHX0hJLwt+wJ2t1lka5jlbMIq7ZAqwK60SAgAAG0YCAAASpAIAAA16A
- Thread-topic: [PATCH v4 06/11] vpci/header: handle p2m range sets per BAR
On 19.11.21 15:57, Jan Beulich wrote:
> On 19.11.2021 14:41, Oleksandr Andrushchenko wrote:
>>
>> On 19.11.21 15:16, Jan Beulich wrote:
>>> On 05.11.2021 07:56, Oleksandr Andrushchenko wrote:
>>>> @@ -95,10 +102,25 @@ int vpci_add_handlers(struct pci_dev *pdev)
>>>> INIT_LIST_HEAD(&pdev->vpci->handlers);
>>>> spin_lock_init(&pdev->vpci->lock);
>>>>
>>>> + header = &pdev->vpci->header;
>>>> + for ( i = 0; i < ARRAY_SIZE(header->bars); i++ )
>>>> + {
>>>> + struct vpci_bar *bar = &header->bars[i];
>>>> +
>>>> + bar->mem = rangeset_new(NULL, NULL, 0);
>>> I don't recall why an anonymous range set was chosen back at the time
>>> when vPCI was first implemented, but I think this needs to be changed
>>> now that DomU-s get supported. Whether you do so right here or in a
>>> prereq patch is secondary to me. It may be desirable to exclude them
>>> from rangeset_domain_printk() (which would likely require a new
>>> RANGESETF_* flag), but I think such resources should be associated
>>> with their domains.
>> What would be the proper name for such a range set then?
>> "vpci_bar"?
> E.g. bb:dd.f:BARn
Hm, indeed
I can only see a single flag RANGESETF_prettyprint_hex which tells
*how* to print, but I can't see any limitation in *what* to print.
So, do you mean I want some logic to be implemented in
rangeset_domain_printk so it knows that this entry needs to be skipped
while printing? RANGESETF_skip_print?
>
> Jan
>
Thank you,
Oleksandr
|