From patchwork Fri Jul 25 14:35:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 34288 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3BBCA235AB for ; Fri, 25 Jul 2014 14:36:19 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id at20sf27510580iec.3 for ; Fri, 25 Jul 2014 07:36:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:references:in-reply-to:subject:precedence:reply-to :list-id:list-unsubscribe:list-archive:list-post:list-help :list-subscribe:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=8bZslFNCeFrvfzPqTO/ZwmpCT0Y/q3CsPn/kdPVoI+o=; b=OU7erjfhOqnmKrX9neLm6xgetmHIhAqjIs3Vv4Nac5K6a4iW0u0qVT/odjPPKXFnzC mEqgp2jSdWo+b8pH2BSXxEUmQrOHKfj/xuN8EQjDM6ksU97l0OQdqqRjle8AA0nsN0FH /FGd3lTLJHo+BBJ+PceF5a4AQT9tNqaQ1eKGeCdbmcmbGx7dwMmlF6q25LH2f9anbBK6 0IANIhdZ45IS6RCTMm9yIa4c5/A6brQgRPj7dB1NmaGp4QOqXoRl1JtI0ZH6l2AYSd41 +xqms0WdUbzxVT9bT/TYzadKt9ngxxmYrCIy0MKwH4DkZorF4W+Xx/ge8c5DuSOR+04C 9OFQ== X-Gm-Message-State: ALoCoQn8WEcGsGAE7x8pvShXQI/aVfiILW3jxxNfiVhZVUcw7MfkizV8YD6Zon9CnB2gjlPLFY9N X-Received: by 10.182.166.36 with SMTP id zd4mr8102536obb.43.1406298978665; Fri, 25 Jul 2014 07:36:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.169 with SMTP id x38ls1240347qgx.28.gmail; Fri, 25 Jul 2014 07:36:18 -0700 (PDT) X-Received: by 10.52.171.233 with SMTP id ax9mr2038379vdc.76.1406298978482; Fri, 25 Jul 2014 07:36:18 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id v10si7551419vdo.17.2014.07.25.07.36.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 07:36:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hu12so7356104vcb.6 for ; Fri, 25 Jul 2014 07:36:18 -0700 (PDT) X-Received: by 10.220.131.207 with SMTP id y15mr2111023vcs.71.1406298978400; Fri, 25 Jul 2014 07:36:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp42942vcb; Fri, 25 Jul 2014 07:36:18 -0700 (PDT) X-Received: by 10.42.80.7 with SMTP id t7mr21754055ick.9.1406298977583; Fri, 25 Jul 2014 07:36:17 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id 4si3401027igk.22.2014.07.25.07.36.16 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 25 Jul 2014 07:36:17 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XAgbM-0006Nn-5m; Fri, 25 Jul 2014 14:36:04 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XAgbJ-0006Ni-Mv for edk2-devel@lists.sourceforge.net; Fri, 25 Jul 2014 14:36:01 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=lersek@redhat.com; helo=mx1.redhat.com; Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1XAgbI-0004f7-80 for edk2-devel@lists.sourceforge.net; Fri, 25 Jul 2014 14:36:01 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6PEZpWn021823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Jul 2014 10:35:52 -0400 Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-89.ams2.redhat.com [10.36.116.89]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6PEZoPu027786; Fri, 25 Jul 2014 10:35:50 -0400 Message-ID: <53D26B45.9000108@redhat.com> Date: Fri, 25 Jul 2014 16:35:49 +0200 From: Laszlo Ersek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: edk2-devel@lists.sourceforge.net References: In-Reply-To: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1XAgbI-0004f7-80 Subject: Re: [edk2] UEFI mouse/touchscreen in Hyper-V X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lersek@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 On 07/24/14 21:15, Sergey Isakov wrote: > Qemu has no pointer as well. Same problem. > >> On Thu, Jul 24, 2014 at 12:50 AM, Sergey Isakov > > wrote: >> >> Hi, >> I don't know what is Hyper-V but if you have >> no SimplePointerProtocol then you have to install it by loading >> additional Dxe driver like >> edk2/MdeModulePkg/Bus/Usb/UsbMouseDxe I'm quite sure that if you configure a USB mouse in QEMU, and then include this driver that you suggest, you should have a virtual USB mouse. Similarly, you could configure a (virtual) PS/2 mouse on the qemu command line, and include IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe. Then you should have a virtual PS/2 mouse under OVMF. I just can't see what I'd use either for. I grepped edk2 for "gEfiSimplePointerProtocolGuid". Thus far the only user for the mouse seems to be the UEFI Shell's text & hex editors. ... In fact I just built OVMF with this patch, and tested the mouse in the "hexedit" utility (invoked from the UEFI shell): INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf The virtual PS/2 mouse works just great. If people want it I can submit a patch for all three flavors, and add the USB mouse driver too. Thanks Laszlo ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 97fdedb..9918956 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -501,6 +501,7 @@ IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf + IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf # diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf index 1b029b8..6dd5b87 100644 --- a/OvmfPkg/OvmfPkgX64.fdf +++ b/OvmfPkg/OvmfPkgX64.fdf @@ -265,6 +265,7 @@ INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf !endif INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf +INF IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf