From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.49071.1683205928306890428 for ; Thu, 04 May 2023 06:12:09 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QjSbe8yh; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683205927; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WP7opW9O9LkS6yeZV/TULSuM8CSr75G66abZA4488U8=; b=QjSbe8yh95kxmqw70Ei4GtZgbhp3uE+K/9IhFTivg9KAjAc5DXZEGAkTdEWPZDO5RHyIhK lwWLvAupvSYAiBpCBzRSRd5Cp18CEyw0BE+hdYnP1hvBdgcHdSjrnUIGCjYFjxh0/XCHzV lJUzZhcVxSux3r52IOynNCKSV4Lx97w= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-245-xpIM_hnoOMG8As4rQe3B5g-1; Thu, 04 May 2023 09:12:03 -0400 X-MC-Unique: xpIM_hnoOMG8As4rQe3B5g-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EF1E83C0ED65; Thu, 4 May 2023 13:12:02 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.48]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF6C9492C18; Thu, 4 May 2023 13:12:02 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 23893180061F; Thu, 4 May 2023 15:12:01 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Stefan Berger , Anthony Perard , Jiewen Yao , Julien Grall , Pawel Polawski , Jordan Justen , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Gerd Hoffmann , Ard Biesheuvel Subject: [PATCH v2 0/4] OvmfPkg: add virtio serial driver Date: Thu, 4 May 2023 15:11:57 +0200 Message-Id: <20230504131201.1026585-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit v2: - implement driver stop code paths. - misc fixes here and there. - rebase to latest master. Gerd Hoffmann (4): OvmfPkg: add IndustryStandard/VirtioSerial.h OvmfPkg/VirtioSerialDxe: add driver OvmfPkg/VirtioSerialDxe: wire up in OvmfPkg* OvmfPkg/PlatformBootManagerLib: setup virtio serial console OvmfPkg/Microvm/MicrovmX64.dsc | 1 + OvmfPkg/OvmfPkgIa32.dsc | 1 + OvmfPkg/OvmfPkgIa32X64.dsc | 1 + OvmfPkg/OvmfPkgX64.dsc | 1 + OvmfPkg/Microvm/MicrovmX64.fdf | 1 + OvmfPkg/OvmfPkgIa32.fdf | 1 + OvmfPkg/OvmfPkgIa32X64.fdf | 1 + OvmfPkg/OvmfPkgX64.fdf | 1 + OvmfPkg/VirtioSerialDxe/VirtioSerial.inf | 40 + .../Include/IndustryStandard/VirtioSerial.h | 64 ++ OvmfPkg/VirtioSerialDxe/VirtioSerial.h | 226 +++++ .../PlatformBootManagerLib/BdsPlatform.c | 47 + OvmfPkg/VirtioSerialDxe/VirtioSerial.c | 808 ++++++++++++++++++ OvmfPkg/VirtioSerialDxe/VirtioSerialPort.c | 465 ++++++++++ OvmfPkg/VirtioSerialDxe/VirtioSerialRing.c | 345 ++++++++ 15 files changed, 2003 insertions(+) create mode 100644 OvmfPkg/VirtioSerialDxe/VirtioSerial.inf create mode 100644 OvmfPkg/Include/IndustryStandard/VirtioSerial.h create mode 100644 OvmfPkg/VirtioSerialDxe/VirtioSerial.h create mode 100644 OvmfPkg/VirtioSerialDxe/VirtioSerial.c create mode 100644 OvmfPkg/VirtioSerialDxe/VirtioSerialPort.c create mode 100644 OvmfPkg/VirtioSerialDxe/VirtioSerialRing.c -- 2.40.1