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

Re: [PATCH v3 12/14] xen/riscv: introduce an implementation of macros from <asm/bug.h>


  • To: Oleksii <oleksii.kurochko@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 9 Feb 2023 14:52:30 +0100
  • 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BIh58v5MdV3BdPr4+i6BcZ+zdr62X2V6VkBVxHDVuX4=; b=S4OGt/Ae3BMsSB3kTClKp2px5803DtjdKbSLN9ImiBwtfkQ5UbDvGYCsv+TmsEk3QO2IIs2reKH61u72uYwydE4wQ13Peb96v0RWXGSBZ5Ybb/cNcgaUwDvo0z1vzm0M8i9gWHa/qDwLBiSlTT1lvowALZtO1wmmlraiJoo+YJfrYnUqTex+j1FAVdYwWlDAwlx4+piCOyEuD9G/cLD1FahuU6gC8vNgpkxbqBzOHiVSU+gTzHxcC/SeH0t6xqe9NcVoVWSgiNh49M8tRT5oJ8R6LoTu8qLWv08KSd4gO1IGSuofYWOI4/nwU0wKXHjPDblWP0zDkx1NqVl+cBKmCg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AbNLCj1HwAAUHx5eTazFh52OrBXLOV9i4GQxEryfubVYLSKQaLPKfcPkKl2++HyB34ejqTFBlEQV8r2GWSNkiXrYQyiq2xG4i2BFwY01QPPnWIE95IrySDCukNU7p0Wzzd+l6lq9NrFiJPbu0pSyU04pii7b68haoexdH9kLZmLrsneh4Ktolh1R+oM0bKBwuLXW1BxPD4kbd168Fp0TuTbzrjrSttWHYeFKggJm7y/Ks+JXwLg9AfP07Q/txumFVt/9LH+rBei/LVW99j6+1/9L8o4QPr2geKloLoUTa92e/wNW9pBftvjFVjkFiqQ/Ix6zD9UzkYXGvuIim9+cCA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Julien Grall <julien@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Gianluca Guida <gianluca@xxxxxxxxxxxx>, Bob Eshleman <bobbyeshleman@xxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 09 Feb 2023 13:52:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 09.02.2023 13:35, Oleksii wrote:
> On Wed, 2023-02-08 at 15:01 +0100, Jan Beulich wrote:
>> On 08.02.2023 13:00, Oleksii wrote:
>>> On Tue, 2023-02-07 at 16:07 +0100, Jan Beulich wrote:
>>>> On 07.02.2023 15:46, Oleksii Kurochko wrote:
>>>>> +    switch ( id )
>>>>> +    {
>>>>> +    case BUGFRAME_warn:
>>>>> +        /*
>>>>> +         * TODO: change early_printk's function to
>>>>> early_printk
>>>>> with format
>>>>> +         *       when s(n)printf() will be added.
>>>>> +         */
>>>>> +        early_printk("Xen WARN at ");
>>>>> +        early_printk(filename);
>>>>> +        early_printk(":");
>>>>> +        // early_printk_hnum(lineno);
>>>>
>>>> What's this? At the very least the comment is malformed.
>>> It's an old code that should be removed.
>>
>> Removed? I.e. the line number will never be logged?
> It will, but:
> 1. I decided not to provide early_printk_hnum() and focus on getting
> printk() working.
> 2. I introduced generic do_bug_frame() [1] (at least, for ARM and RISC-
> V) so the current implementation will be switched to generic one when
> panic, printk and find_text_region() (virtual memory) will be
> ready/merged. It is what I am going to do next.

If that's to tell me that the code above to going to be replaced soon,
then a well-formed commented-out piece of code is probably best for now.

Jan

> [2] - is a link to patch series with introduction of generic
> implementation of macros from bug.h. Probably you can look at it too
> when you will have free time. Thank you so much for your attention and
> participation.
> 
> [1]
> https://lore.kernel.org/xen-devel/8adf4aeff96750982e3d670cb3aed11553d546d5.1675441720.git.oleksii.kurochko@xxxxxxxxx/
> [2]
> https://lore.kernel.org/xen-devel/?q=%22introduce+generic+implementation+of+macros+from+bug.h%22
>>
>> Jan
> 
> ~ Oleksii
> 




 


Rackspace

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