Received: from eggs.gnu.org ([2001:4830:134:3::10]:44319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv9TA-0005iS-J2 for qemu-devel@nongnu.org; Fri, 05 Jul 2013 13:06:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv9T8-00016y-1z for qemu-devel@nongnu.org; Fri, 05 Jul 2013 13:06:52 -0400 Received: from usindpps06.hds.com ([207.126.252.19]:45207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv9T7-00016T-Sa for qemu-devel@nongnu.org; Fri, 05 Jul 2013 13:06:49 -0400 From: Tomoki Sekiyama Date: Fri, 5 Jul 2013 17:06:37 +0000 Message-ID: In-Reply-To: <51D5707E.2040206@redhat.com> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v5 10/11] qemu-ga: Install Windows VSS provider on `qemu-ga -s install' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: "libaiqing@huawei.com" , Seiji Aguchi , "ghammer@redhat.com" , "stefanha@gmail.com" , "qemu-devel@nongnu.org" , "mdroth@linux.vnet.ibm.com" , "vrozenfe@redhat.com" , "lcapitulino@redhat.com" , "lersek@redhat.com" , "areis@redhat.com" On 7/4/13 8:54 , "Paolo Bonzini" wrote: >Il 03/07/2013 18:19, Tomoki Sekiyama ha scritto: >> On 7/3/13 11:58 , "Paolo Bonzini" wrote: >>=20 >>> Il 03/07/2013 17:49, Tomoki Sekiyama ha scritto: >>>> - return ga_install_service(path, log_filepath, >>>> fixed_state_dir); >>>> + if (ga_install_vss_provider()) { >>>> + return EXIT_FAILURE; >>>> + } >>>> + if (ga_install_service(path, log_filepath, >>>> fixed_state_dir)) { >>>> + ga_uninstall_vss_provider(); >>>> + return EXIT_FAILURE; >>>> + } >>>> + return 0; >>>> } else if (strcmp(service, "uninstall") =3D=3D 0) { >>>> + ga_uninstall_vss_provider(); >>>> return ga_uninstall_service(); >>> >>> I think this shouldn't be a hard failure. Only the freeze/thaw >>>commands >>> should fail. >>> >>> Paolo >>=20 >> Do you mean that qemu-ga should work without qga-provider.dll etc. >> even if it is configured --with-vss-sdk ? > >Yes, and I'm even wondering if we should move all VSS code to a DLL >(provider and requestor---they are very tied to each other anyway >because of hEventFrozen/hEventThaw), and have qemu-ga simply look for >qga-provider.dll dropped into the executable directory. > >Then qemu-ga can look for it even if it is not configured --with-vss-sdk. Hm, that sounds reasonable. I will try on moving the requestor into qga-provider.dll at next iteration.=20 >This is because the license of the SDK may be problematic for >distributions that compile qemu-ga from source. These distribution >cannot distribute the SDK, and thus they will not be able to compile and >distribute the provider DLL. Still, we should make it as easy as >possible to combine a DLL and executable from separate sources >into---for example---a single MSI. >=20 >Paolo Thanks, Tomoki Sekiyama