[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 10/13] vpci/header: reset the command register when adding devices
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
- Date: Mon, 7 Feb 2022 15:59:49 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=kpY/66G44ayxxo5csJuPIW+GRqPkDjn6+f0c0h9nrow=; b=HG0PCAxpmRgnsCvvClR5Sn0gAk9K6bseWOL8KXkOcvZUCjavmcCaXH7I1kAw3kHGgx80FHShKN35pRIuDPiztspKQIKHTO3BwCXLJ9ru6omMqzs8RPtXvOJf0lNqnqH5ukN3hY7a7AU0xkx8i+LEX9aiOcvHu3dNpxywen0OKc8YHujrTZeoDIokqyIewW3BXighrBJZP7QdCS7/QwpOcxPu51x9PzmdYby6sfqm7FzMjYhe1S3TmywhVWibtu0pdGKO9ftLFwzQnghiGBv5KZaqL1Hr5TANt9VdDmDGi/dBLPDNfLo5FTsR77jFR+PWNEOGg2rTWzkYGnlxSQ1Oug==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mvRz0AUThSV68jGgRZu9ME08QykmUpLlUDaDYvyD5uH7Scx31NNTUjrGJf3M0ntpkSnT0ADYg2+dOBZBnwAwNaCgkNaaBJ5+d1lmHKlemSDpSlRB9R5FBM9J7Juox1RLQf1J4Y14gJofFexRlYlj0bYOsGHjIQK177vKxi2PwpPoG8bD0lvzmvAxgcgLCu47FR96yS2PcLJlNnkrlLD4/2miY4NETebaErGk4t94xXRB9IVOWDevgTJ4BIDaf+XFOTev6BVpBa8qhaORdZOrlohem+mJtgchzRm6OdudHS3NrGYcNQSKgbjUl2212z6NhJ76w0qPuu8cxvkQqx4rAg==
- 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: Mon, 07 Feb 2022 16:00:03 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHYGZFg3nazYSvfA0G+yHTbxcxX2ayDdFgAgAAB6wCABD+NgIAAQmgAgAAT4YCAAAOjAIAAAPCAgAAXGICAAAPHAIAABC8AgAAFjoCAAAI+gIAABB6AgAAIsAA=
- Thread-topic: [PATCH v6 10/13] vpci/header: reset the command register when adding devices
On 07.02.22 17:28, Jan Beulich wrote:
> On 07.02.2022 16:14, Oleksandr Andrushchenko wrote:
>> On 07.02.22 17:05, Jan Beulich wrote:
>>> On 07.02.2022 15:46, Oleksandr Andrushchenko wrote:
>>>> On 07.02.22 16:31, Jan Beulich wrote:
>>>>> But: What's still missing here then is the separation of guest and host
>>>>> views. When we set INTx behind the guest's back, it shouldn't observe the
>>>>> bit set. Or is this meant to be another (big) TODO?
>>>> But, patch [PATCH v6 09/13] vpci/header: emulate PCI_COMMAND register for
>>>> guests
>>>> already takes care of it, I mean that it will set/reset INTx for the guest
>>>> according to MSI/MSI-X. So, if we squash these two patches the whole
>>>> picture will be seen at once.
>>> Does it? I did get the impression that the guest would be able to observe
>>> the bit set even after writing zero to it (while a reason exists that Xen
>>> wants the bit set).
>> Yes, you are correct: guest might not see what it wanted to set.
>> I meant that Xen won't allow resetting INTx if it is not possible
>> due to MSI/MSI-X
>>
>> Anyways, I think squashing will be a good idea to have the relevant
>> functionality in a single change set. Will this work for you?
> It might work, but I'd prefer things which can sensibly be separate to
> remain separate.
Ok, two patches
> Jan
>
|