WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Send A Fake PS/2 Packet to QEMU and Mouse Pointer on PV OS

To: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Send A Fake PS/2 Packet to QEMU and Mouse Pointer on PV OS
From: "涂堂訓(Tang-Hsun Tu)" <iwantplay@xxxxxxxxx>
Date: Mon, 20 Sep 2010 19:19:42 +0800
Delivery-date: Mon, 20 Sep 2010 04:22:43 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=iQy3T7PNdaY1l0R/H9Oqakqk3XfQ2ZhQBNXDOO6Hr4U=; b=hn14vMKBUkKS3ai5P7/eub4/kzUeeOmzf+N3v3R4nVrPQqEKyRafpnvlCpczCQiFVk elbQdqYZAnBnZOYaK4TcQJ6FflXswNTxVvYs6yh1mZa3qhtyo5OdFGgCgvx9+uICdEfg ccEuf0QtjwhmCo0fJQavWeIARYTI+RBRU4G9w=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=A7BbvM5mTgoUIY9TM2rS8eOtu113xkLZVHzsNwH8D+1WNEpgqkeFi3yN/FmuPWr1vk qIOBMAwkokJ7o71EhpCnun2xGyPT+NUmwM5o+NWe/xRi85be1+iJUGfoLcXSpfY4h2g8 l5egfEiAZTRsetMbAnzG47uLSj1j0usZFhpA8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4
 Dear all:

      I am trying to send a fake event to input layer of QEMU,
i.e. keyboard and mouse.

      QEMU provides two API to send these input event,
that is, kbd_put_keycode() and kbd_mouse_event() for keyboard and mouse, respectively. And these functions will make a suitable packet for low-level hardware, e.g. PS/2 or USB.

For a PS/2 mouse, there is a call chain ps2_mouse_event() => ps2_mouse_send_packet() => ps2_queue()
when the function kbd_mouse_event() is called.
However, when I make a fake PS/2 mouse packet and directly call ps2_queue()
to put the packet to PS/2 queue.
I store the PS2MouseState "s" when 8042 initializes and call ps2_queue() to send a event,
for example,
          ps2_queue(&s->common, 0x1001);
          ps2_queue(&s->common, 0);
          ps2_queue(&s->common, 0);

And I also insert some debug  message in ps2_read_data() function,
it works well and reads data from queue correctly..
But the mouse pointer does not move (even right/left click).
I also set the default mouse to "Mouse $0: QEMU PS/2 Mouse" in QEMU consloe,
but the result is the same. What else I forgot to signal? How could I fix it?


       The second question is when I create a PV Linux (Ubuntu),
the mouse pointer does not move correctly.
The screen (VNC) shows a black point and a mouse pointer,
and their speed does not the same.
In HVM XP, we can use usbdevice='tablet' to fix it,
but the same line does not work in PV Linux. How could I fix it?


The last question is that does the sound can be shared (mixed) between multiple DomainUs?
(The device will be busy when I create a domain.) If can, how could I do?


     Thanks!

Best Regards,
Tang-Hsun Tu

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>