All of lore.kernel.org
 help / color / mirror / Atom feed
From: "\"涂堂訓(Tang-Hsun Tu)\"" <iwantplay@gmail.com>
To: Xen Devel <xen-devel@lists.xensource.com>
Subject: Re: Send A Fake PS/2 Packet to QEMU and Mouse Pointer on PV OS
Date: Sun, 26 Sep 2010 15:26:02 +0800	[thread overview]
Message-ID: <4C9EF58A.60206@gmail.com> (raw)
In-Reply-To: <4C97434E.4000109@gmail.com>

  Dear all:

      For the question1, I try to use the function ps2_queue() to send a 
PS/2 "keyboard" packet, and it works fine.
But the PS/2 mouse still cannot work. Does QEMU use a USB mouse and not 
support a PS/2 mouse?

於 2010/9/20 下午 07:19, "涂堂訓(Tang-Hsun Tu)" 提到:
>  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

      parent reply	other threads:[~2010-09-26  7:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-20 11:19 Send A Fake PS/2 Packet to QEMU and Mouse Pointer on PV OS "涂堂訓(Tang-Hsun Tu)"
2010-09-20 13:20 ` Felix Kuperjans
2010-09-21  3:27   ` "涂堂訓(Tang-Hsun Tu)"
2010-09-26  7:26 ` "涂堂訓(Tang-Hsun Tu)" [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C9EF58A.60206@gmail.com \
    --to=iwantplay@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.