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.133.124]) by mx.groups.io with SMTP id smtpd.web10.66598.1629357940859859856 for ; Thu, 19 Aug 2021 00:25:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RrwsnE7P; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629357939; 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: in-reply-to:in-reply-to:references:references; bh=iIAWOpPq8gi0xSsT0Fs3CIJbuNZ44zC7iG2qFQ5JkfA=; b=RrwsnE7PC1HP5RZPXJGNHCz3KDeoLbrBcuYmviisGglfDPrNEV5WE5MZ73vi1siGY2PtJi kVC6aRcj1IWtuYg65F8hAAJgNHkRgSeFTFMH+QYLqDs/yg2v5l4Vd39yLB3w2cKypaU4nf kX2D5GR3/3tZNXlqTgv9RvSSTRCgfUw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-8-xlvUsG53NLW1w0U6yxrpgA-1; Thu, 19 Aug 2021 03:25:38 -0400 X-MC-Unique: xlvUsG53NLW1w0U6yxrpgA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A24E68799E0 for ; Thu, 19 Aug 2021 07:25:37 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.193.216]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 476E25C25A; Thu, 19 Aug 2021 07:25:33 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id BF3C11800903; Thu, 19 Aug 2021 09:25:17 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Gerd Hoffmann Subject: [PATCH v4 7/7] OvmfPkg/VirtioMmioDeviceLib: enable virtio 1.0 Date: Thu, 19 Aug 2021 09:25:17 +0200 Message-Id: <20210819072517.1565797-8-kraxel@redhat.com> In-Reply-To: <20210819072517.1565797-1-kraxel@redhat.com> References: <20210819072517.1565797-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Now with everything in place for virtio 1.0 devices we can let VirtioMmioInit() return SUCCESS. Signed-off-by: Gerd Hoffmann --- OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c index 0c92f5373151..a97ef9352d0f 100644 --- a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c +++ b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c @@ -87,7 +87,7 @@ VirtioMmioInit ( DEBUG ((DEBUG_INFO, "%a virtio 1.0, id %d\n", __FUNCTION__, Device->VirtioDevice.SubSystemDeviceId)); Device->VirtioDevice.Revision = VIRTIO_SPEC_REVISION (1, 0, 0); - return EFI_UNSUPPORTED; + break; default: return EFI_UNSUPPORTED; } -- 2.31.1