From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from a7-12.smtp-out.eu-west-1.amazonses.com (a7-12.smtp-out.eu-west-1.amazonses.com [54.240.7.12]) by mx.groups.io with SMTP id smtpd.web11.5099.1675850406839705020 for ; Wed, 08 Feb 2023 02:00:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ipxe.org header.s=cphpx6z2rfcgehlykjjh3gknqe3hsoe2 header.b=dCRszs59; spf=pass (domain: eu-west-1.amazonses.com, ip: 54.240.7.12, mailfrom: 010201863077d480-16faa10f-e35c-4324-bdd1-1eb7e6c3feb3-000000@eu-west-1.amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=cphpx6z2rfcgehlykjjh3gknqe3hsoe2; d=ipxe.org; t=1675850405; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=VZpyEc90iyhasB09Sf30Vstla8aIyhcMa0EqssWHNrA=; b=dCRszs59ffydFYJR3ezoZ6arY8WdP72mZccYwxaHfVjgnssoRJ7tGokethIc2hLv I3kzLAeai4kyTnNOyKpJeLK+z2P9k+XtBc/d3g2+5Qed6sIbjUVUOyk4PcQyXVXl+3p p9d3olmSo4xBAkNFtsTc4/KNv1qgmBAywptUKx6OtS2XkvvLeg2Ssm82Vl3NMWcErtl NYAE8VAwF0KcMRQj5ZQin/J1So0GBP3syIwV3brFfhhKk+UIjuztvKoxvVq4wrX9KcE SFRsv2/Ys5LXQMrr7M8M2qKcbWeufe/SlvTxkVF7To7sWsfLW4x9jTPUikWIsneVX5G i4/SypDA4A== DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ihchhvubuqgjsxyuhssfvqohv7z3u4hn; d=amazonses.com; t=1675850405; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=VZpyEc90iyhasB09Sf30Vstla8aIyhcMa0EqssWHNrA=; b=v/cR+GuY4LZ/wpPMZ5JGNm3eg5vVIiIdcbM4L2A9uHDgI5UuboIb/H/KurMRThjh bPLbv0abKidRCFLziFL5cuFxQB2DsrjAis5IwvKaLVG9gcpHp9+ce57o3KmMjYkNdp8 /R8itdecRh7lMEFY8Nq7DUXf3G7yR8vQ3y+zIDKI= Message-ID: <010201863077d480-16faa10f-e35c-4324-bdd1-1eb7e6c3feb3-000000@eu-west-1.amazonses.com> Date: Wed, 8 Feb 2023 10:00:05 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [edk2-devel] Graphic Output on qemu To: Alireza Banejad Cc: devel@edk2.groups.io, "Paul, Bill" References: <6558368.1D856uYhSO@core> <0102018630466504-2ff97024-e158-48ea-9ea5-cc1e11d20bcc-000000@eu-west-1.amazonses.com> From: "Michael Brown" In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on blyat.fensystems.co.uk Feedback-ID: 1.eu-west-1.fspj4M/5bzJ9NLRzJP0PaxRwxrpZqiDQJ1IF94CF2TA=:AmazonSES X-SES-Outgoing: 2023.02.08-54.240.7.12 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 08/02/2023 09:55, Alireza Banejad wrote: > As my previous email, I mentioned that I am able to find the protocol > since the LocateProtocol returns 0 (EFI_SUCCESS) (using the exact code > you wrote) . But when I want to open it either with OpenProtocol or > HandleProtocol I get a RETURN_UNSUPPORTED. Are you implying that by > calling LocateProtocol() the protocol would also be opened? LocateProtocol() gives you back a pointer to the protocol instance. There is no need for a separate "open" action: you can just immediately use the protocol instance that LocateProtocol() returns to you. Michael