[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v5 5/6] xen/x86: add PHYSDEVOP_msi_control
- To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- From: Jan Beulich <JBeulich@xxxxxxxx>
- Date: Fri, 19 Jul 2019 08:04:45 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.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-SenderADCheck; bh=rFWptcam5i5EQlQE4vbKBA0alU4Lzecql0ADQzSMEa0=; b=QUdtGVfzjnmYjIhx+NhF4Y+lHB2kUaijuhTKxl2gMPHgW52WPCDH6e1Pg1a2KhoDt4jxbp6tubK02tn7UIRIX0r2hJgnbOJfOc/oNnZ5nSyYxZTXLhODcfD/B/oGbmDNPqE/GFnMYta/q3pHn6GO0QD/WGm2XGDRFa7C5R4lSapA8+o/X2DN4e+P4h6tHAJhPUGZDkwycq1dpv0GzokLfJ+GId7SP0u6+6lT8srs5m3g4BKUWolrNf+wQVNqdU8dvUudwZxx+gp7S3s4NS/JhbKwJ+0eUM5RrKtxjaYfqbHsLtYE7ing0Fjav9ff+Bd3KuMzmJsqTY2KtFTsSIlE0g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IoVEoVna4x/Nreng4ZKfoBN0q3GSaUwAap3X52hVec+LqoF6ack0skMEFmTnmzLaJYxgr+2tm4OeQSxoNH+mRcvruIxa1U72Di/3kQih6WxiIqLNNYwdIt3hwzcKKpi9NPFZu+9lRmzyoLpldPwnJ8zHEd5zRPz/4o6NUMMV8Tn0V38ITXx+7ZzEeuMCsPf9bfRWJ3PqVXzqI7Q1aS2CIxsHQTxFvQbp75ws7TP8ELRfeIeLha0sI2ZIIgu9+TB9ELZs8Rk2xGqkX2x2DX6PhFWPGIrPcLU0tAeGE9HHx82U7NaVwoRRDSqQ5CiGAGopVWhvmpW95UmmWb+fJKgB8A==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, AndrewCooper <andrew.cooper3@xxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, TimDeegan <tim@xxxxxxx>, Julien Grall <julien.grall@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
- Delivery-date: Fri, 19 Jul 2019 08:07:58 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVPW85l6TypzCOPUKKzJbbmldm3qbQfOwAgAAauduAAP6xgA==
- Thread-topic: [PATCH v5 5/6] xen/x86: add PHYSDEVOP_msi_control
On 18.07.2019 18:52, Roger Pau Monné wrote:
> On Thu, Jul 18, 2019 at 03:17:27PM +0000, Jan Beulich wrote:
>> On 18.07.2019 15:46, Roger Pau Monné wrote:
>>> In fact I don't think INTx should be enabled when MSI(-X) is disabled,
>>> QEMU already traps writes to the command register, and it will manage
>>> INTx enabling/disabling by itself. I think the only check required is
>>> that MSI(-X) cannot be enabled if INTx is also enabled. In the same
>>> way both MSI caspabilities cannot be enabled simultaneously. The
>>> function should not explicitly disable any of the other capabilities,
>>> and just return -EBUSY if the caller attempts for example to enable
>>> MSI while INTx or MSI-X is enabled.
>>
>> You do realize that pci_intx() only ever gets called for Xen
>> internally used interrupts, i.e. mainly the serial console one?
>
> You will have to bear with me because I'm not sure I understand why
> it does matter. Do you mean to point out that dom0 is the one in full
> control of INTx, and thus Xen shouldn't care of whether INTx and
> MSI(-X) are enabled at the same time?
>
> I still think that at least a warning should be printed if a caller
> tries to enable MSI(-X) while INTx is also enabled, but unless there's
> a reason to have both MSI(-X) and INTx enabled at the same time (maybe
> a quirk for some hardware issue?) it shouldn't be allowed on this new
> interface.
I don't mind improvements to the current situation (i.e. such a
warning may indeed make sense); I merely stated how things currently
are. INTx treatment was completely left aside when MSI support was
introduced into Xen.
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|