Re: [Qemu-devel] [PATCH] uhci: Lower uhci timer freq when guest is idle

2014-04-28 Thread Gonglei (Arei)
Hi, > -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Monday, April 28, 2014 9:35 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org; Huangweidong (C) > Subject: Re: [PATCH] uhci: Lower uhci timer freq when guest is idle > > On Mo, 2014-04-28 at 12:11 +, G

Re: [Qemu-devel] [PATCH] uhci: Lower uhci timer freq when guest is idle

2014-04-28 Thread Gerd Hoffmann
On Mo, 2014-04-28 at 12:11 +, Gonglei (Arei) wrote: > Hi, Gerd. > > What's your opinion about this issue? Thanks! qemu 2.0 should not need this. background info: https://www.kraxel.org/blog/2014/03/qemu-and-usb-tablet-cpu-consumtion/ cheers, Gerd

Re: [Qemu-devel] [PATCH] uhci: Lower uhci timer freq when guest is idle

2014-04-28 Thread Gonglei (Arei)
Hi, Gerd. What's your opinion about this issue? Thanks! Best regards, -Gonglei > -Original Message- > From: Gonglei (Arei) > Sent: Wednesday, March 26, 2014 4:15 PM > To: 'Gerd Hoffmann' > Cc: qemu-devel@nongnu.org; Huangweidong (C) > Subject: RE: [PATCH] uhci: Lower uhci timer freq w

Re: [Qemu-devel] [PATCH] uhci: Lower uhci timer freq when guest is idle

2014-03-26 Thread Gonglei (Arei)
> -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Wednesday, March 26, 2014 3:59 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org; Huangweidong (C) > Subject: Re: [PATCH] uhci: Lower uhci timer freq when guest is idle > > On Mi, 2014-03-26 at 11:57 +0800, are

Re: [Qemu-devel] [PATCH] uhci: Lower uhci timer freq when guest is idle

2014-03-26 Thread Gerd Hoffmann
On Mi, 2014-03-26 at 11:57 +0800, arei.gong...@huawei.com wrote: > From: Gonglei > > UHCI emulation polls the device at a freq of 1000HZ, which consumes > 12~13% CPU even though a Windows guest is completely idle when the guest > was configed usb1.1 tablet devcie. This solution counts accumulated

[Qemu-devel] [PATCH] uhci: Lower uhci timer freq when guest is idle

2014-03-25 Thread arei.gonglei
From: Gonglei UHCI emulation polls the device at a freq of 1000HZ, which consumes 12~13% CPU even though a Windows guest is completely idle when the guest was configed usb1.1 tablet devcie. This solution counts accumulated NAK packets. when it reaches to 64, then the guest is supposed to be idle