[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: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 7 Feb 2022 16:28:43 +0100
- 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=IoblLvFqcIPo+HHTIm8PgWsqgdJMWvE442czxCiHNts=; b=nbKyMPoYB8dyByNJYtKobz+LRfABEu2nBcQNpNd0a1zqFzq/0jHrIxxdSsdRtfLIu9Fj5WHQs0AKK30DDXGTKaQuj068wqSqd0nZuPWwXyCwi8V69ohFqxmUFcvtNl/bqiPqfnIUpSqukF3+HtnJ7dhLWvOs1Fc0H/N/PrRLHr45NkjqvqXNwChRuAQltIAKraNuIHKwJE7zilw6luT0ipRzJ3XEEwLXplDhmOrwh9I8hzMEpcFNWVP+D/t8VM7CQfMyA8s3qsNHJDGiRKUVgA/Ux2EPOeG/D5odGkX9G//QUnSKdtnb3Yy+wMIl+BhSSPFlmYAkstNLOmjEW9zZhg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AUm4JQYfgAHjyQG6U6FcPPc04/O0Tg/Bc4mHqJFy12rZSBI0bIb4HtpKybdxRHxeUq7qQIiFl+dPaK6VuqtW1GIot90dEvTp+9UtslFaHPAiQcyZZcX/4gJv6s+Q9VzI+Mt31TkTbReoMFLOTHhVm5Amh4dRpuqhThXaLYAtq0hd6Se5C6WD4pbmWabdDsB1UDnuLL56Px4agKLfLnulI0im9TmtaKd9417p5No68KSWXDihDcD3QsERaGx5apRFeb8P7x3+HiEVcZnbVSI59skHGfU72Rack2fe2nhZegxtQ8tNuipmbn+acFbULl8tChu/V7X7vljo5DzJvNeshA==
- 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: Mon, 07 Feb 2022 15:28:56 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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.
Jan
|