qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Disable PS/2 mouse
@ 2010-06-08 12:49 Peter Lieven
  2010-06-09  7:55 ` Markus Armbruster
  0 siblings, 1 reply; 14+ messages in thread
From: Peter Lieven @ 2010-06-08 12:49 UTC (permalink / raw)
  To: qemu-devel

Hi,

is there any way to disable the PS/2 mouse emulation from command line?

BR,
Peter

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-08 12:49 [Qemu-devel] Disable PS/2 mouse Peter Lieven
@ 2010-06-09  7:55 ` Markus Armbruster
  2010-06-09  8:24   ` Peter Lieven
  2010-06-09  8:27   ` Peter Lieven
  0 siblings, 2 replies; 14+ messages in thread
From: Markus Armbruster @ 2010-06-09  7:55 UTC (permalink / raw)
  To: Peter Lieven; +Cc: qemu-devel

Peter Lieven <pl@dlh.net> writes:

> Hi,
>
> is there any way to disable the PS/2 mouse emulation from command line?

Judging from pc_basic_device_init() and i8042_initfn(): I don't think
so, sorry.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-09  7:55 ` Markus Armbruster
@ 2010-06-09  8:24   ` Peter Lieven
  2010-06-09 11:27     ` Markus Armbruster
  2010-06-09  8:27   ` Peter Lieven
  1 sibling, 1 reply; 14+ messages in thread
From: Peter Lieven @ 2010-06-09  8:24 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: qemu-devel

Markus Armbruster wrote:
> Peter Lieven <pl@dlh.net> writes:
>
>   
>> Hi,
>>
>> is there any way to disable the PS/2 mouse emulation from command line?
>>     
>
> Judging from pc_basic_device_init() and i8042_initfn(): I don't think
> so, sorry.
>
>   
would it be difficult to implement?

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-09  7:55 ` Markus Armbruster
  2010-06-09  8:24   ` Peter Lieven
@ 2010-06-09  8:27   ` Peter Lieven
  2010-06-09  8:51     ` Mark Cave-Ayland
  2010-06-09 10:52     ` Gerd Hoffmann
  1 sibling, 2 replies; 14+ messages in thread
From: Peter Lieven @ 2010-06-09  8:27 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: qemu-devel

Markus Armbruster wrote:
> Peter Lieven <pl@dlh.net> writes:
>
>   
>> Hi,
>>
>> is there any way to disable the PS/2 mouse emulation from command line?
>>     
>
> Judging from pc_basic_device_init() and i8042_initfn(): I don't think
> so, sorry.
>
>
>   
background:

with the ps/2 mouse there are always problems with pointer 
synchronization. so i generally use
usb tablet device emulation. BUT. usb emulation is resource intensive. i 
have a testcase with 64
VMs on a dual quadcore xeon and usb alone almost uses the resources of 2 
cpus. so i decided
to introduce an option for 'console-only' vms. but in that case i would 
like to have ps/2 mouse
also disabled in case someone has the wrong option and complains than 
that his mouse
is unsynchronized. so 'console-only' should be no mouse at all.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-09  8:27   ` Peter Lieven
@ 2010-06-09  8:51     ` Mark Cave-Ayland
  2010-06-09 10:52     ` Gerd Hoffmann
  1 sibling, 0 replies; 14+ messages in thread
From: Mark Cave-Ayland @ 2010-06-09  8:51 UTC (permalink / raw)
  To: Peter Lieven; +Cc: Markus Armbruster, qemu-devel

Peter Lieven wrote:

> background:
> 
> with the ps/2 mouse there are always problems with pointer 
> synchronization.

Yeah, we have that here on one of our WinNT VMs. The quick solution we 
found was to install VNC Server on NT and set up everyone to connect to 
that rather than to the physical Qemu/KVM VNC framebuffer. It may not be 
completely optimal, but it at least solves the synchronised mouse 
pointer issue which was the major complaint we were getting from our users.


HTH,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-09  8:27   ` Peter Lieven
  2010-06-09  8:51     ` Mark Cave-Ayland
@ 2010-06-09 10:52     ` Gerd Hoffmann
  2010-06-09 11:05       ` Peter Lieven
  2010-06-09 13:46       ` Peter Lieven
  1 sibling, 2 replies; 14+ messages in thread
From: Gerd Hoffmann @ 2010-06-09 10:52 UTC (permalink / raw)
  To: Peter Lieven; +Cc: Markus Armbruster, qemu-devel

   Hi,

> BUT. usb emulation is resource intensive.

Update qemu.  Fixed in 0.12.4 and unstable.

cheers,
   Gerd

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-09 10:52     ` Gerd Hoffmann
@ 2010-06-09 11:05       ` Peter Lieven
  2010-06-09 13:46       ` Peter Lieven
  1 sibling, 0 replies; 14+ messages in thread
From: Peter Lieven @ 2010-06-09 11:05 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Markus Armbruster, qemu-devel

Gerd Hoffmann wrote:
>   Hi,
>
>> BUT. usb emulation is resource intensive.
>
> Update qemu.  Fixed in 0.12.4 and unstable.
thanks for this update. i think my experience came from 0.12.3
i will verify this
>
> cheers,
>   Gerd
>
>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-09  8:24   ` Peter Lieven
@ 2010-06-09 11:27     ` Markus Armbruster
  0 siblings, 0 replies; 14+ messages in thread
From: Markus Armbruster @ 2010-06-09 11:27 UTC (permalink / raw)
  To: Peter Lieven; +Cc: qemu-devel

Peter Lieven <pl@dlh.net> writes:

> Markus Armbruster wrote:
>> Peter Lieven <pl@dlh.net> writes:
>>
>>   
>>> Hi,
>>>
>>> is there any way to disable the PS/2 mouse emulation from command line?
>>>     
>>
>> Judging from pc_basic_device_init() and i8042_initfn(): I don't think
>> so, sorry.
>>
>>   
> would it be difficult to implement?

I don't know.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-09 10:52     ` Gerd Hoffmann
  2010-06-09 11:05       ` Peter Lieven
@ 2010-06-09 13:46       ` Peter Lieven
  2010-06-09 14:35         ` Gerd Hoffmann
  1 sibling, 1 reply; 14+ messages in thread
From: Peter Lieven @ 2010-06-09 13:46 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Markus Armbruster, qemu-devel

Gerd Hoffmann wrote:
>   Hi,
>
>> BUT. usb emulation is resource intensive.
>
> Update qemu.  Fixed in 0.12.4 and unstable.
hi gerd,

with 0.12.4 it is still the case that a total idle vm takes about 6-8% 
of a 2.4GHz Xeon Core.

see: http://dev.cs1.dlh.net/usb-on-off.png

until approx 13.00 cet its with -usb -usbdevice tablet and after the 
reboot only with
the ps/2 mouse.

i'm fine generally not using the usb emulation for console only guest 
systems, but in that
case I would like to disable ps/2 mouse as well.

br,
peter

>
> cheers,
>   Gerd
>
>
>


-- 
Mit freundlichen Grüßen/Kind Regards

Peter Lieven

..........................................................................................................

   KAMP Netzwerkdienste GmbH
   Vestische Str. 89-91 | 46117 Oberhausen
   Tel: +49 (0) 208.89 402-50 | Fax: +49 (0) 208.89 402-40
   mailto:pl@kamp.de | http://www.kamp.de

   Geschäftsführer: Heiner Lante | Michael Lante
   Amtsgericht Duisburg | HRB Nr. 12154
   USt-Id-Nr.: DE 120607556

......................................................................................................... 

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-09 13:46       ` Peter Lieven
@ 2010-06-09 14:35         ` Gerd Hoffmann
  2010-06-10  7:12           ` Dor Laor
  0 siblings, 1 reply; 14+ messages in thread
From: Gerd Hoffmann @ 2010-06-09 14:35 UTC (permalink / raw)
  To: Peter Lieven; +Cc: Markus Armbruster, qemu-devel

   Hi,

> with 0.12.4 it is still the case that a total idle vm takes about 6-8%
> of a 2.4GHz Xeon Core.

I see that order of magitude too, no matter whenever usb is on or off.
With older qemu and usbtablet it used to be up to 25%.

cheers,
   Gerd

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-09 14:35         ` Gerd Hoffmann
@ 2010-06-10  7:12           ` Dor Laor
  2010-06-10  7:32             ` Gerd Hoffmann
  0 siblings, 1 reply; 14+ messages in thread
From: Dor Laor @ 2010-06-10  7:12 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Peter Lieven, Markus Armbruster, qemu-devel

On 06/09/2010 05:35 PM, Gerd Hoffmann wrote:
>   Hi,
>
>> with 0.12.4 it is still the case that a total idle vm takes about 6-8%
>> of a 2.4GHz Xeon Core.
>
> I see that order of magitude too, no matter whenever usb is on or off.
> With older qemu and usbtablet it used to be up to 25%.

Is it possible to dynamically control the refresh internally within qemu 
so VMs without a connected VNC client will have rare refreshes or no 
refresh at all? I hope it's not the OS who polls it.

>
> cheers,
> Gerd
>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-10  7:12           ` Dor Laor
@ 2010-06-10  7:32             ` Gerd Hoffmann
  2010-06-10 10:35               ` Peter Lieven
  2010-06-10 12:15               ` Paul Brook
  0 siblings, 2 replies; 14+ messages in thread
From: Gerd Hoffmann @ 2010-06-10  7:32 UTC (permalink / raw)
  To: dlaor; +Cc: Peter Lieven, Markus Armbruster, qemu-devel

On 06/10/2010 09:12 AM, Dor Laor wrote:
> On 06/09/2010 05:35 PM, Gerd Hoffmann wrote:
>> Hi,
>>
>>> with 0.12.4 it is still the case that a total idle vm takes about 6-8%
>>> of a 2.4GHz Xeon Core.
>>
>> I see that order of magitude too, no matter whenever usb is on or off.
>> With older qemu and usbtablet it used to be up to 25%.
>
> Is it possible to dynamically control the refresh internally within qemu
> so VMs without a connected VNC client will have rare refreshes or no
> refresh at all? I hope it's not the OS who polls it.

vnc/vga or usb tablet?

For the vga it happens already, with no vnc client connected vnc zaps 
the refresh timer and stops calling vga_hw_update(), thus vga stops 
doing framebuffer dirty tracking too.

For usb hid devices:  No idea how they work and whenever we can put them 
into sleep somehow (with/without guest cooperation).

cheers,
   Gerd

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-10  7:32             ` Gerd Hoffmann
@ 2010-06-10 10:35               ` Peter Lieven
  2010-06-10 12:15               ` Paul Brook
  1 sibling, 0 replies; 14+ messages in thread
From: Peter Lieven @ 2010-06-10 10:35 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: dlaor, Markus Armbruster, qemu-devel

Gerd Hoffmann wrote:
> On 06/10/2010 09:12 AM, Dor Laor wrote:
>> On 06/09/2010 05:35 PM, Gerd Hoffmann wrote:
>>> Hi,
>>>
>>>> with 0.12.4 it is still the case that a total idle vm takes about 6-8%
>>>> of a 2.4GHz Xeon Core.
>>>
>>> I see that order of magitude too, no matter whenever usb is on or off.
>>> With older qemu and usbtablet it used to be up to 25%.
>>
>> Is it possible to dynamically control the refresh internally within qemu
>> so VMs without a connected VNC client will have rare refreshes or no
>> refresh at all? I hope it's not the OS who polls it.
>
> vnc/vga or usb tablet?
>
> For the vga it happens already, with no vnc client connected vnc zaps 
> the refresh timer and stops calling vga_hw_update(), thus vga stops 
> doing framebuffer dirty tracking too.
>
> For usb hid devices:  No idea how they work and whenever we can put 
> them into sleep somehow (with/without guest cooperation).
is it the emulated bus or the tablet device that is generating the load?


>
> cheers,
>   Gerd
>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] Disable PS/2 mouse
  2010-06-10  7:32             ` Gerd Hoffmann
  2010-06-10 10:35               ` Peter Lieven
@ 2010-06-10 12:15               ` Paul Brook
  1 sibling, 0 replies; 14+ messages in thread
From: Paul Brook @ 2010-06-10 12:15 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Lieven, dlaor, Gerd Hoffmann, Markus Armbruster

> For usb hid devices:  No idea how they work and whenever we can put them
> into sleep somehow (with/without guest cooperation).

The issue with USB is that it is (by design) a polled system. The UHCI adapter 
has to wakeup every 1ms to read transfer descriptors from guest RAM.
Until recently there was a bug in the UHCI emulation that would wake the guest 
even if the tablet NACKed the poll.

See http://lists.nongnu.org/archive/html/qemu-devel/2010-04/msg00150.html


USB does support "autosuspend". This allows a guest to put a device to sleep, 
and have it wake up when something interesting happens.  In theory this 
includes HID devices. However I believe linux disables it because there's so 
much broken hardware out there that implements it incorrectly.  I suspect qemu 
does not currently implement this feature either.

Paul

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-06-10 12:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-08 12:49 [Qemu-devel] Disable PS/2 mouse Peter Lieven
2010-06-09  7:55 ` Markus Armbruster
2010-06-09  8:24   ` Peter Lieven
2010-06-09 11:27     ` Markus Armbruster
2010-06-09  8:27   ` Peter Lieven
2010-06-09  8:51     ` Mark Cave-Ayland
2010-06-09 10:52     ` Gerd Hoffmann
2010-06-09 11:05       ` Peter Lieven
2010-06-09 13:46       ` Peter Lieven
2010-06-09 14:35         ` Gerd Hoffmann
2010-06-10  7:12           ` Dor Laor
2010-06-10  7:32             ` Gerd Hoffmann
2010-06-10 10:35               ` Peter Lieven
2010-06-10 12:15               ` Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).