From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 468E5941364 for ; Mon, 16 Oct 2023 08:03:15 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Z82KUoGqaCsV3rfjLnNJPIW+pdPkWUesPhffeuRx3yE=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20140610; t=1697443393; v=1; b=auO8qDNtKD4fr/LAOXMb8mLrVg7cCexiUiLT3Iouc6EQCXyT26+KIB6x4posFGTy2uWkUSKU 9++uOYNx8nxb9eaps57Gju3mFKKKU77kvx+Mjvhsox3888mF2rRwI6kErdjMtkLTOA0y8DhoSqO 5J7doySwca4+WZZtuQ7IMl54= X-Received: by 127.0.0.2 with SMTP id qaltYY7687511xm8Aa34pfVI; Mon, 16 Oct 2023 01:03:13 -0700 X-Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web10.112733.1697443391975627200 for ; Mon, 16 Oct 2023 01:03:12 -0700 X-Received: from loongson.cn (unknown [10.40.24.149]) by gateway (Coremail) with SMTP id _____8AxlPA77ixlakYyAA--.31785S3; Mon, 16 Oct 2023 16:03:07 +0800 (CST) X-Received: from [10.40.24.149] (unknown [10.40.24.149]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxE+Q47ixlZjQmAA--.16923S3; Mon, 16 Oct 2023 16:03:04 +0800 (CST) Message-ID: Date: Mon, 16 Oct 2023 16:03:04 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [edk2-devel] About the feasibility of detaching Fdt16550SerialProtHookLib from ArmVirtPkg To: devel@edk2.groups.io, kraxel@redhat.com Cc: Ard Biesheuvel , Leif Lindholm , sami.mujawar@arm.com, jiewen.yao@intel.com References: <33d7dbba-af9f-cb1d-6579-932ec9bbe16b@loongson.cn> From: "Chao Li" In-Reply-To: X-CM-TRANSID: AQAAf8BxE+Q47ixlZjQmAA--.16923S3 X-CM-SenderInfo: xolfxt3r6o00pqjv00gofq/1tbiAQAGCGUsnaYD7gADsT X-Coremail-Antispam: 1Uk129KBj9xXoWruw4DGryfWFyDKr1rKF4fCrX_yoWkXwb_GF n8WrW7Gr9FqFZFgw1vqryrtFZ3CwsxZry2q3yIqrs5Ca1vvan5Xr4kGw1jgrn5J343ur15 GrZ5K39rZr1rKosvyTuYvTs0mTUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjDUYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUUbxkYFVCjjxCrM7AC 8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr v_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AK xVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwA2z4x0Y4vEx4A2jsIE14 v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1le2I262IYc4CY6c8I j28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAv7VC0I7IYx2IY67AKxVWUGVWUXw Av7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMx8G jcxK6IxK0xIIj40E5I8CrwCYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMx C20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_JrI_JrWlx2IqxVCjr7xvwVAF wI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20x vE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v2 0xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxV W8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8Urc3UUUUU== Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lichao@loongson.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: eTOuVO9G7WJmvpEWZfwwW9YVx7686176AA= Content-Type: multipart/alternative; boundary="------------b6UTGfYm0bzHsDmuh0o81I44" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=auO8qDNt; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io --------------b6UTGfYm0bzHsDmuh0o81I44 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Gerd, So, what I understand that is I can move the Fdt16550SerialPortHookLib into OvmfPkg? Thanks, Chao 在 2023/10/16 15:47, Gerd Hoffmann 写道: > On Mon, Oct 16, 2023 at 10:58:29AM +0800, Chao Li wrote: >> Hi Ard, >> >> I'm porting the LoongArch virt-machine to edk2. LoongArch virt-machine uses >> Fdt16550SerialPortHookLib to handle the UartBase, and the >> gEarly16550UartBaseAddressGuid is defined in ArmVirtPkg.dec. >> >> I think this library can be used in other Arch, like RISC-V LoongArch and so >> on, so can we feasibility this library into OvmfPkg? > Yes, OvmfPkg is the home for virtualization-related packages. We moved > libs from ArmVirtPkg to OvmfPkg before so risc-v can easily share them. > > take care, > Gerd > > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109623): https://edk2.groups.io/g/devel/message/109623 Mute This Topic: https://groups.io/mt/101989244/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- --------------b6UTGfYm0bzHsDmuh0o81I44 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Gerd,

So, what I understand that is I can move the Fdt16550SerialPortHookLib into OvmfPkg?


Thanks,
Chao
在 2023/10/16 15:47, Gerd Hoffmann 写道:
On Mon, Oct 16, 2023 at 10:58:29AM +0800, Chao Li wrote:
Hi Ard,

I'm porting the LoongArch virt-machine to edk2. LoongArch virt-machine uses
Fdt16550SerialPortHookLib to handle the UartBase, and the
gEarly16550UartBaseAddressGuid is defined in ArmVirtPkg.dec.

I think this library can be used in other Arch, like RISC-V LoongArch and so
on, so can we feasibility this library into OvmfPkg?
Yes, OvmfPkg is the home for virtualization-related packages.  We moved
libs from ArmVirtPkg to OvmfPkg before so risc-v can easily share them.

take care,
  Gerd





_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#109623) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--------------b6UTGfYm0bzHsDmuh0o81I44--