[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Xen 4.18 pvshim console issue (with patch)
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- From: Henry Wang <Henry.Wang@xxxxxxx>
- Date: Wed, 18 Oct 2023 11:24:56 +0000
- Accept-language: zh-CN, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=YqSPYi0GN8sUqGSKdLJs0sFiem3qvk12wDPfYZaQ3vQ=; b=G4iRKShxQ/sSeYd5XNQG07U0YKMuVXMks0FWoegK6OWrD4sOVm3dupF3/6Vv71Z9VrCpQCzE+BLm/5gMWuCXOo7DAk4Qs0T9Rf+wMnFSXlHHY4eU9kVgzqDQRI8/rojS4PmPqo4O/q4ZxLjyrG86ise/+eMsvoHUv4/+VPyGQcY6S+QBNgw90PrRmgXv2P/W+kvnkHExwh0y7nBzO2uggg+04MtZknZUcmU3EXWrie5FwMtgt5oOFvTp18reCHU0zAVmm7dUwdlBpum5pJuCb9N8ck4NvMS7PYM1muG0qelb0r+EO4cuvfwQDuYKMRTDilXLj0FOumDLbP6z6NHOkQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gWrxeXix4TxmHEmmunc3OckjV9MuB8bgbbc3qMy5A4SN8vaoYyhfbQgYF9nYnKStpltnKDXr9drUfHgZUlaYBcw1LgJZbFHIax4YRVl2xa7vVJXTES3rWD3h9P9CQahdMl0Vw6kg4w34oO4ilqKPW8ywe7P7q+FPedjaydQMpNRcgXiwX+8iEl1Oa5mkvfKdENABpptWz/eiD8vZ9Qzili7BG8ZGMOJTbbyvUahwuTnz/dBOK+KasYSuUeB0+LogC3f9h4ESTYczgcwrF16Rg6F4i/THWF/14mC1e1CI95tJx0puEZOo65plzH5tMxHyGhep0MTXBS5DGZzWlN95/Q==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Manuel Bouyer <bouyer@xxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Wed, 18 Oct 2023 11:25:17 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHaAa9cu8iUssZj1EaRHoR8glstO7BPXL0AgAAKM4CAAACmAIAAAG+A
- Thread-topic: Xen 4.18 pvshim console issue (with patch)
Hi Andrew,
> On Oct 18, 2023, at 19:23, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
>
> On 18/10/2023 12:20 pm, Manuel Bouyer wrote:
>> On Wed, Oct 18, 2023 at 11:44:22AM +0100, Andrew Cooper wrote:
>>> On 18/10/2023 11:38 am, Manuel Bouyer wrote:
>>>> Hello,
>>>> With Xen 4.18, a PV domain running under pvshim doesn't get console input.
>>>> This is because the domain id in pvshim isn't 0 (and on x86 max_init_domid
>>>> is
>>>> hardwired to 0), so console_input_domain() will never select that domain
>>>> as input.
>>>>
>>>> The attached patch fixes it by translating 0 to the real domain id for
>>>> pvshim, but there may be a better way to do this.
>>>>
>>> Thankyou for the report.
>>>
>>> First, CC'ing Henry as 4.18 release manager.
>>>
>>> There have been changes in how this works recently in 4.18, notably c/s
>>> c2581c58bec96.
>> Yes, it looks like this one introduced the problem.
>> Before this, we would switch console_rx to 1 without checking if
>> domain (console_rx - 1) exists, and console_rx == 1 is a special case
>> in __serial_rx()
>>
>>> However, it's not obvious whether this worked in 4.17 or not. i.e.
>>> whether it's a regression in 4.18, or whether it's been broken since PV
>>> Shim was introduced.
>> I don't know for 4.16 or 4.17 but I can tell that it's working in 4.15
>>
>
> That commit is new in 4.18, so Henry - this is a release
> critical/blocker owing to it being a regression vs 4.17.
Noted down.
Out of curiosity, do we have maintainers for that specific driver? It would
be good to looping them in.
Kind regards,
Henry
>
> I'll try and put some brainpower towards it when I get some other 4.18
> work sorted.
>
> ~Andrew
|