[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 07/16] arm/vuart: rename 'virtual UART' Kconfig option


  • To: dmkhn@xxxxxxxxx
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Wed, 25 Jun 2025 09:07:48 +0200
  • 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=arcselector10001; 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=CtjlSkJ20liyj4cXzJrperPcGHouu4Jxydc/MkCdwVE=; b=H3gU7dIRwebrrZDmHdSlwFc1Ofu8PvjYTNJVOAL8ttlbfzyGHZPQvvLFAiqrDrwJLGbrUqort14OP9Co5I57BoZ7+IEJ4e9bftQPzbKgdyktSjvDNE7CDZ2cJcnzkn4yiUjYSKNe1upsUK7qvTzNgH0oElikVFCiSX7YDlSbHObmzXCvZCVxiDqtLdDY382MYlsg0Nud4c7L+Sxu3kYrGSpw2oqdv/V73K9o58WIebDivc+vsuwJqUbeg04cqECCJ3EQiD+eI/hDHBQii3oKSOP2HGpeYEHAJo1I4vT0ejEH7U1MaR9Rtdfvt1XwfRpY74lzmRfqI9G7CVhDo58wTg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lWOGEGWyDB8tzCuEduuS0zUk7kyl5DV5kBSNhj31JGdB6mdZCOrgTZ9LHiuw58SXuQ/yazbvozCQxYUNjjtVVOd4spmDqj6b8e+OVcFFw4pFNriX1WtlUP1mamqjvyPXCJA2q3Hqr2FijUygGCIPDzLsEKtUsh+njk8DE4lG3vTRX3F0YRbDct1IKTjGQRS5UwePPzYg0I5kQ8xLoaw4/vHpW1sVj0Um1+Oh0ptDydJTKRMobGvzY9eonGyvnGGFGwwJghv5VRO03Lto7THocqUW5VqNxcEnjk07FfZByilZGuexsGHXnlaOOyvOvIZUXs7YTx7lDEVPLPCw37Gt+Q==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, andrew.cooper3@xxxxxxxxxx, anthony.perard@xxxxxxxxxx, jbeulich@xxxxxxxx, julien@xxxxxxx, oleksii.kurochko@xxxxxxxxx, roger.pau@xxxxxxxxxx, sstabellini@xxxxxxxxxx, dmukhin@xxxxxxxx
  • Delivery-date: Wed, 25 Jun 2025 07:08:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 24/06/2025 09:14, dmkhn@xxxxxxxxx wrote:
> On Tue, Jun 24, 2025 at 08:37:22AM +0200, Orzel, Michal wrote:
>>
>>
>> On 24/06/2025 05:55, dmkhn@xxxxxxxxx wrote:
>>> From: Denis Mukhin <dmukhin@xxxxxxxx>
>>>
>>> Rename HWDOM_VUART to HAS_VUART_MMIO.
>>>
>>> This emulator emulates only one register and the use of the emulator is
>>> limited to early boot console in the guest OS.
>>>
>>> No functional change.
>>>
>>> Signed-off-by: Denis Mukhin <dmukhin@xxxxxxxx>
>>> ---
>>>  xen/arch/arm/Kconfig              | 2 +-
>>>  xen/arch/arm/Makefile             | 2 +-
>>>  xen/arch/arm/include/asm/domain.h | 2 +-
>>>  xen/arch/arm/vuart.h              | 4 ++--
>>>  4 files changed, 5 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
>>> index 03888569f38c..b11cb583a763 100644
>>> --- a/xen/arch/arm/Kconfig
>>> +++ b/xen/arch/arm/Kconfig
>>> @@ -177,7 +177,7 @@ config HAS_VUART_PL011
>>>       Allows a guest to use SBSA Generic UART as a console. The
>>>       SBSA Generic UART implements a subset of ARM PL011 UART.
>>>
>>> -config HWDOM_VUART
>>> +config HAS_VUART_MMIO
>> I personally don't like this change. The current config option name reads 
>> much
>> better and clearly denotes the purpose.
> 
> In my opinion, the MMIO-based UART is a useful debugging tool for early guest
> boot, even when the guest doesn't run in hwdom or on Arm system.
The reason why this vUART is for hwdom is that is uses information from dtuart
(physical UART used by Xen probed from DT). This is to enable kernels used as
dom0 that had early printk/earlycon set for this serial device (as if they run
baremetal). Regular domUs have vPL011 and don't need hwdom vUART.

~Michal




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.