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

HYPERVISOR_console_io + CONSOLEIO_write needs COPY_flush_dcache


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
  • Date: Wed, 10 Jun 2020 08:13:50 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=3TwK/ut+YbiyazEYFH6b+5m1I4PttqHJCwvPUKUZFFY=; b=Fbkpc8rsfSzjhUlQwVim3XdQ6wjdNhVpd484DpsFWZAXEkT2K3IJOtEBwANUnUORfRDnQWqmiEbqRkowTaF8InaL5/I7dp/OOrBWUEuZ45mFhyWCV80zuvsJJqaGGBIaJY5XgE7JhLYr7gFcegM1BAK2MNjbFGxzo218u1r1An5cKFLe8ZobMHIXPkC63V12cK+6EnuV5+8kA6mem3BNaCQqeUFttp0C2a1I5uqsSdak5xmt8/fcUyk3JHRLHOZQX5V2qKXbezxP0dwuKSFUIKQ9aV3nAxPpqwcbmrUPQ1YAN3jriWdO4/I3tG6afX1ik/ybt52f8MDjNcnwR3zPyQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J1lUd0mBH8NH2GMK08sYwVZHSjihZl4gaqzUJnbKQGq+C7HUYNCssoiS9xDb4iJjw10VZTTapwnbNDVdwS0NPDicpXAlbzmZ5xhDIhHy7EsRrJy6cN12GY1kMs/Llyif1iyaf6rgoZgDuV1myrvInAX2XDU3L670PpHmoEwreT4mCYijE8WEczLHjuh0zTfw+ldiEDIYds1LeJmE6M7HGsRNRT7FfCaZYGwYI9CCXcWBGA01k4OLq2YLrbdcwbR5mlCyUJyQFQ9PV8//Ptucs55XHg+mEDLUb+yFoQOA6oETWaX8kxnasaKD/uNyxlkTU+F0INkgA+nSU18DEqvexA==
  • Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=epam.com;
  • Delivery-date: Wed, 10 Jun 2020 08:13:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWPv8SOx/IaSMb+EOuO5msEU03SQ==
  • Thread-topic: HYPERVISOR_console_io + CONSOLEIO_write needs COPY_flush_dcache

Hello,

While adding support for para-virtualized block device in u-boot

I faced an issue with HYPERVISOR_console_io + CONSOLEIO_write.

I tried to use the hypercall during MMU setup stage while enabling data cache

on arm64 platform (e.g. data cache is not yet enabled) and saw in guest's 
console

either old data or some sort of garbage. Printing constant strings, just like 
mini-os

does on boot, works as expected. So, looking at the Xen code [1] it seems

that we should copy guest's buffer with COPY_flush_dcache set in this case

as (usually?) this hypercall is used in guest's code which doesn't have any

other means to print yet, e.g. early printk case.

If my understanding of the issue correct then I can probably prepare a patch.

Thank you,

Oleksandr

[1] 
https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/drivers/char/console.c;h=56e24821b2f8d2b9bfb99d2acb721b06277834ce;hb=refs/heads/master#l597


 


Rackspace

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