[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC XEN PATCH v8 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: "Chen, Jiqian" <Jiqian.Chen@xxxxxxx>
- Date: Wed, 5 Jun 2024 10:22:05 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.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=fDhwJdRIQqsVW8o307fkgrhnlbwWH65fIFvsBZ0/BYA=; b=Bwx3bsa4KqwmI3eP1NHdziLi7R6sbu03V/KWlHLRirWNvxDBYfMdLLWbVVwj3qnzo0O85f12/jeXwvPG0YAN2BfWhsdJxeLYJLa+QKgY4/zUUtwbSSAIEoBIFE8UbliLftQFfyl9u20tVmTUR6WYiDWBGT6xCTsAL4IFCGX+hw9Bzo/L5/oYR8DMwApXk/9LN4J4JQEk/MK+k32nU4vqNAnr8/jUY6KWl57iElym3qIaCLj1FZs7pXnS8dQkn9DdBeeqjL+lCnj6JpoNVVOVX35HOr2tA80KTTw3L2zHTaBXIoNDukrEhScidQAjR5cqFEePJL4D9MM3uqVzLES45w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nVVq9EUDADTMBa0IcD4BFrXJkVTRg1Wg1WL09Zdxazyf2Rq+R0PHpPonyBqdRwhfijpY5dh1DtR7gm6gRbU8/MJi5k05/Gzlz8grOr6QR1aunIQbaGFGgVXdxw20HNFGXkQIVhHDDzUi8GpvRMjirAiZjU1qacnPWXArnmDj1RNaXTlAJz4yXQsqv270rjSDAq8nivl/J31iL5SLqQmRNm8h7npf/p3ntaqv7KjR6NnR8Bu54NFHe+79pi16yhZSI2sPL/hCLcVecRq8PNMn67zD92ar9X34fAXIsBu210y4/xPI/E7+SARjMrotZbqXMHhSxUxdiur+t7dH/+tINQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony@xxxxxxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, "Hildebrand, Stewart" <Stewart.Hildebrand@xxxxxxx>, "Huang, Ray" <Ray.Huang@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Daniel P . Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, "Chen, Jiqian" <Jiqian.Chen@xxxxxxx>
- Delivery-date: Wed, 05 Jun 2024 10:22:13 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHap3bgiER4vYjwvk2+R5oTa8V63LGZ5EYAgAHVa4D//4e1AIAAis+A//+FmgCAEsTugP//viAAABEhvwD//4GYgIAAoyuA//+0FICAAgSCAP//yCWAgAeLLwD//6n2gAAQ1XyAABA5GQAADz4pgAAu2vkAAEmxvAAAkQD4gAD05PGAAfOTNwAD1iZlAA==
- Thread-topic: [RFC XEN PATCH v8 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi
On 2024/6/5 18:09, Jan Beulich wrote:
> On 05.06.2024 09:04, Chen, Jiqian wrote:
>> On 2024/6/5 01:17, Jan Beulich wrote:
>>> On 04.06.2024 10:18, Chen, Jiqian wrote:
>>>> I tried to get more debug information from my environment. And I attach
>>>> them here, maybe you can find some problems.
>>>> acpi_parse_madt_ioapic_entries
>>>> acpi_table_parse_madt(ACPI_MADT_TYPE_INTERRUPT_OVERRIDE,
>>>> acpi_parse_int_src_ovr, MAX_IRQ_SOURCES);
>>>> acpi_parse_int_src_ovr
>>>> mp_override_legacy_irq
>>>> only process two entries, irq 0 gsi 2 and irq 9
>>>> gsi 9
>>>> There are only two entries whose type is ACPI_MADT_TYPE_INTERRUPT_OVERRIDE
>>>> in MADT table. Is it normal?
>>>
>>> Yes, that's what you'd typically see (or just one such entry).
>> Ok, let me conclude that acpi_parse_int_src_ovr get two entries from MADT
>> table and add them into mp_irqs. They are [irq, gsi][0, 2] and [irq, gsi][9,
>> 9].
>> Then in the following function mp_config_acpi_legacy_irqs initializes the
>> 1:1 mapping of irq and gsi [0~15 except 2 and 9], and add them into mp_irqs.
>> But for high GSIs(>= 16), no mapping processing.
>> Right?
>
> On that specific system of yours - yes. In the general case high GSIs
> may have entries, too.
>
>> Is it that the Xen hypervisor lacks some handling of high GSIs?
>
> I don't think so. Unless you can point out something?
Ok, so the implementation is still to get mapping from mp_irqs, I will change
in next version.
Thank you.
>
>> For now, if hypervisor gets a high GSIs, it can't be transformed to irq,
>> because there is no mapping between them.
>
> No, in the absence of a source override (note the word "override") the
> default identity mapping applies.
What is identity mapping? Like the mp_config_acpi_legacy_irqs does?
>
> Jan
--
Best regards,
Jiqian Chen.
|