[Spice-devel] Mouse failure happens when mouse hovers on some Apps like Kaspersky Anti-virus tool.

Arnon Gilboa agilboa at redhat.com
Wed Aug 15 23:00:07 PDT 2012


I guess you'll need to add a new agent msg for setting the mouse mode, 
plus small changes in agent &  client, as so far agent existence meant 
using client mouse. It will be nice if you'll post your patches for this.
Arnon

Naga Mohan Pothula wrote:
> Arnon,
>
> I tried "//ret = _running = false"earlier and noticed vdagent was not stopped but had seen mouse tracking offset issue.
> I can't stop VDService because VDAgent functionality is mandatory.
>
> As Yaniv suggestion, will it be possible keep running VDAgent and keeping server mode for such apps?
> Do you have any other ideas to fix this?
>
> Thanks\Naga.
>
>
> ________________________________
>  From: Yaniv Kaul <ykaul at redhat.com>
> To: Arnon Gilboa <agilboa at redhat.com> 
> Cc: spice-devel at lists.freedesktop.org; Naga Mohan Pothula <nagamohan.pothula at yahoo.com> 
> Sent: Wednesday, August 15, 2012 5:19 AM
> Subject: Re: [Spice-devel] Mouse failure happens when mouse hovers on some Apps like Kaspersky Anti-virus tool.
>  
> On 08/15/2012 01:05 PM, Arnon Gilboa wrote:
>   
>> Yaniv Kaul wrote:
>>     
>>> ----- Original Message -----
>>>       
>>>> Hi Naga,
>>>>
>>>> Tested and reproduced it on Win7.
>>>>         
>>> I bet you'd see this in any many personal FW / Antivirus, to prevent a malicious software from manipulating it via the mouse (and disable it, for example).
>>>
>>> I'd try with ZoneAlarm (http://www.zonealarm.com/security/en-us/zonealarm-pc-security-free-firewall.htm#) for example, which I know has such protection.
>>> Y.
>>>       
>> Seems you are right. So the only option we have is (auto)fallback to server mode / usbtablet for such apps?
>>     
>
> If you can do it automatically, I guess so.
> Y.
>
>   
>>>> I don't have a patch yet for solving it, but you comment out the
>>>> line:
>>>> //ret = _running = false;
>>>> so vdagent won't exit, although mouse will not be effective on such
>>>> apps.
>>>> If it's a must, meanwhile you can always switch back to server mouse
>>>> mode by stopping vdservice.
>>>> You can also use usbtablet in case you don't need vdagent
>>>> functionality
>>>> (multi mon, c&p etc.)
>>>> I'll update you when I have a patch ready (currently not top
>>>> priority).
>>>>
>>>> Regards,
>>>> Arnon
>>>>
>>>>
>>>>
>>>> Naga Mohan Pothula wrote:
>>>>         
>>>>> Hi Arnon,
>>>>>
>>>>> Have you checked installing kaspersky trail version? Here is the
>>>>> eror that causes vdagent.exe to be terminated abruptly.
>>>>> VDAgent::send_input::SendInput failed: 0
>>>>> VDAgent::run::Agent stopped
>>>>>
>>>>> I've checked integrity level of Kaspersky UI process and it is
>>>>> lesser than VDAgent.exe
>>>>>
>>>>>
>>>>> Thanks/Naga.
>>>>>
>>>>>
>>>>> ________________________________
>>>>> From: Arnon Gilboa <agilboa at redhat.com>fail due to UIPI blocking
>>>>> To: Naga Mohan Pothula <nagamohan.pothula at yahoo.com>
>>>>> Cc: "spice-devel at lists.freedesktop.org"
>>>>> <spice-devel at lists.freedesktop.org>
>>>>> Sent: Sunday, August 5, 2012 9:54 AM
>>>>> Subject: Re: [Spice-devel] Mouse failure happens when mouse hovers
>>>>> on some Apps like Kaspersky Anti-virus tool.
>>>>>
>>>>> Naga Mohan Pothula wrote:
>>>>>           
>>>>>> Hi,
>>>>>>
>>>>>> VDAgent in Windows 7 guest gets terminated when mouse hovers on
>>>>>> some applications like Kaspersky Anti-virus tool. Noticed
>>>>>> SendInput Windows API fails whenever any mouse operation performs
>>>>>> on this tool. "handle_mouse_event" method returns with failure
>>>>>> due to this and causes VDAgent to terminate.
>>>>>>             
>>>>> what's the error logged in %windir%\temp\vdagent.log? look for
>>>>> "SendInput failed: ...")
>>>>>           
>>>>>> Initially, I thought it is UIPI ie., Process Integrity Level issue
>>>>>> and observed as follows:
>>>>>> VDService with SYSTEM a/c creates VDAgent with SYTEM a/c
>>>>>> Kaspersky tool is service-based app with SYSTEM a/c creates
>>>>>> process to handle UI with logged-on user and with 'Medium'
>>>>>> Integrity level.
>>>>>>
>>>>>> Don't understand why SendInput API fails even VDAgent with higher
>>>>>> integrity level than Kaspersky tool?
>>>>>> Is there any other way to make VDAgent works for all applications
>>>>>> installed in windows guest?
>>>>>>             
>>>>> will give it a look and update you accordingly.
>>>>>           
>>>>>> Thanks\Naga.
>>>>>>
>>>>>> ------------------------------------------------------------------------ 
>>>>>>
>>>>>> _______________________________________________
>>>>>> Spice-devel mailing list
>>>>>> Spice-devel at lists.freedesktop.org
>>>>>> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>>>>>>             
>>>> _______________________________________________
>>>> Spice-devel mailing list
>>>> Spice-devel at lists.freedesktop.org
>>>> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>>>>
>>>>         



More information about the Spice-devel mailing list