[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:14:00 +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=SZp+nQWwXrMM/PPKvVGJiei+Rn/mNFCHzzWEQW/SgBI=; b=GldUGI8j0M2K6BXuBgW0+Pgl1HlP3Emd3ONPcU4cXk+IPVYnktRXeDqVj12zpAMGDMMq8y2N46eJQ0bshuxVw7zYida3pzaiMOZglc1Vv8ydtFidMNKq+ysfn+qw1YIDJB4ldjLm1I00G4jF5efnrD3MD/bpIWjYQ8cxykflACCq86Bc+48HdQ2Pj8P1Ef8Rn/8T7SDp8jiL6oiCT9PipNWuxCTh1N5MB99sTKG96dr4fUSVlPfvKpaWPD6gq9e3NpG4pX1XXwiysGMkAWBTlH9F1RvJpHN93Wq0P+CGcoydklEXHutiHFw6m37YJM0CJ7XWKImlyrN3ppsqqr2sxg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aYVuSX2DpmN/wHKARgBufxe0Uu7DUx9dh0GfgZOtbsgjuOCll36jH0YfgK2NiJ16075fTu6NYKMIcegkPHc+uuZZQlTxV+cWwB4MNoAgwQnsvZw+46LHNpgQABwmfkdhpyvhlENbJV7bm918KtRtGUmYWGHMA6tGojHuMssAL2xjLmqGRD88sU3ZZMQYa47MerIS4lkJFfrt84e++dKCl3HKjLWkCf9VPA9zmkSAi0MSjW0lLG2oyKxH3gnMLwUgn1dO3eiXaCRDclanLC64ODF7hsdVB0yV4QzSiL4SwG7oPBrDsGwwiPZvSjKr3/cVXN1fr/aXBGqhVF7OH0YkpA==
- 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: Mon, 07 Feb 2022 15:14:13 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHYGZFg3nazYSvfA0G+yHTbxcxX2ayDdFgAgAAB6wCABD+NgIAAQmgAgAAT4YCAAAOjAIAAAPCAgAAXGICAAAPHAIAABC8AgAAFjoCAAAI+gA==
- Thread-topic: [PATCH v6 10/13] vpci/header: reset the command register when adding devices
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?
> Jan
>
Thank you,
Oleksandr
|