From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Yan Vugenfirer" Subject: RE: [COMMIT] [WIN-GUEST-DRIVERS] Balloon - remove WMI usage. Remove wmi.c. Date: Tue, 22 Mar 2011 06:06:14 -0400 (EDT) Message-ID: <013101cbe878$c7b664d0$57232e70$@com> References: <201002151351.o1FDpoDC026064@int-mx08.intmail.prod.int.phx2.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: , "'Vadim Rozenfeld'" To: "'ya su'" Return-path: Received: from mx3-phx2.redhat.com ([209.132.183.24]:42024 "EHLO mx3-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754Ab1CVKGP (ORCPT ); Tue, 22 Mar 2011 06:06:15 -0400 In-Reply-To: Content-Language: en-us Sender: kvm-owner@vger.kernel.org List-ID: Hello Vadim, Can you check this issues? Thanks, Yan. > -----Original Message----- > From: ya su [mailto:suya94335@gmail.com] > Sent: Saturday, March 19, 2011 5:28 AM > To: Yan Vugenfirer > Cc: kvm@vger.kernel.org > Subject: Re: [COMMIT] [WIN-GUEST-DRIVERS] Balloon - remove WMI usage. > Remove wmi.c. > > Yan: > > I have tested the newest balloon driver (from 1.1.16) on windows > server 2003, balloon.sys can not be installed successfully and return > error code 10. have you tested this or any updates? thanks. > > Regards. > > Green. > > > 2010/2/15 Yan Vugenfirer : > > repository: C:/dev/kvm-guest-drivers-windows > > branch: master > > commit 7ab588f373eda9d08a497e969739019d2075a6d2 > > Author: Yan Vugenfirer > > Date: =A0 Mon Feb 15 15:01:36 2010 +0200 > > > > =A0 =A0[WIN-GUEST-DRIVERS] Balloon - remove WMI usage. Remove wmi.c= =2E > > > > =A0 =A0 =A0 =A0Signed-off-by: Vadim Rozenfeld > > > > diff --git a/Balloon/BalloonWDF/wmi.c b/Balloon/BalloonWDF/wmi.c > > deleted file mode 100644 > > index 70a9270..0000000 > > --- a/Balloon/BalloonWDF/wmi.c > > +++ /dev/null > > @@ -1,90 +0,0 @@ > > - > /********************************************************************= ** > > - * Copyright (c) 2009 =A0Red Hat, Inc. > > - * > > - * File: device.c > > - * > > - * Author(s): > > - * > > - * This file contains WMI support routines > > - * > > - * This work is licensed under the terms of the GNU GPL, version 2= =2E > =A0See > > - * the COPYING file in the top-level directory. > > - * > > - > *********************************************************************= */ > > -#include "precomp.h" > > - > > -#if defined(EVENT_TRACING) > > -#include "wmi.tmh" > > -#endif > > - > > - > > -#define MOFRESOURCENAME L"MofResourceName" > > - > > -#ifdef ALLOC_PRAGMA > > -#pragma alloc_text(PAGE, WmiRegistration) > > -#pragma alloc_text(PAGE, EvtWmiDeviceInfoQueryInstance) > > -#endif > > - > > -NTSTATUS > > -WmiRegistration( > > - =A0 =A0WDFDEVICE =A0 =A0 =A0Device > > - =A0 =A0) > > -{ > > - =A0 =A0WDF_WMI_PROVIDER_CONFIG providerConfig; > > - =A0 =A0WDF_WMI_INSTANCE_CONFIG instanceConfig; > > - =A0 =A0NTSTATUS =A0 =A0 =A0 =A0status; > > - =A0 =A0DECLARE_CONST_UNICODE_STRING(mofRsrcName, MOFRESOURCENAME)= ; > > - > > - =A0 =A0PAGED_CODE(); > > - > > - =A0 =A0TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "--> > WmiRegistration\n"); > > - > > - =A0 =A0status =3D WdfDeviceAssignMofResourceName(Device, &mofRsrc= Name); > > - =A0 =A0if (!NT_SUCCESS(status)) { > > - =A0 =A0 =A0 =A0TraceEvents(TRACE_LEVEL_ERROR, DBG_PNP, > > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "WdfDeviceAssignMofResour= ceName failed 0x%x", > status); > > - =A0 =A0 =A0 =A0return status; > > - =A0 =A0} > > - > > - =A0 =A0WDF_WMI_PROVIDER_CONFIG_INIT(&providerConfig, > &GUID_DEV_WMI_BALLOON); > > - =A0 =A0providerConfig.MinInstanceBufferSize =3D sizeof(ULONGLONG)= ; > > - > > - =A0 =A0WDF_WMI_INSTANCE_CONFIG_INIT_PROVIDER_CONFIG(&instanceConf= ig, > &providerConfig); > > - =A0 =A0instanceConfig.Register =3D TRUE; > > - =A0 =A0instanceConfig.EvtWmiInstanceQueryInstance =3D > EvtWmiDeviceInfoQueryInstance; > > - > > - =A0 =A0status =3D WdfWmiInstanceCreate(Device, > > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= &instanceConfig, > > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= WDF_NO_OBJECT_ATTRIBUTES, > > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= WDF_NO_HANDLE); > > - =A0 =A0if (!NT_SUCCESS(status)) { > > - =A0 =A0 =A0 =A0TraceEvents(TRACE_LEVEL_ERROR, DBG_PNP, > > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "WdfWmiInstanceCreate fai= led 0x%x", status); > > - =A0 =A0 =A0 =A0return status; > > - =A0 =A0} > > - > > - =A0 =A0TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "<-- > WmiRegistration\n"); > > - =A0 =A0return status; > > -} > > - > > -NTSTATUS > > -EvtWmiDeviceInfoQueryInstance( > > - =A0 =A0__in =A0WDFWMIINSTANCE WmiInstance, > > - =A0 =A0__in =A0ULONG OutBufferSize, > > - =A0 =A0__out_bcount_part(OutBufferSize, *BufferUsed) PVOID OutBuf= fer, > > - =A0 =A0__out PULONG BufferUsed > > - =A0 =A0) > > -{ > > - =A0 =A0PDRIVER_CONTEXT drvCxt =3D GetDriverContext(WdfGetDriver()= ); > > - > > - =A0 =A0PAGED_CODE(); > > - > > - =A0 =A0TraceEvents(TRACE_LEVEL_VERBOSE, DBG_WMI, "--> > EvtWmiDeviceInfoQueryInstance\n"); > > - > > - =A0 =A0RtlZeroMemory(OutBuffer, sizeof(ULONGLONG)); > > - =A0 =A0*(ULONGLONG*) OutBuffer =3D (ULONGLONG)drvCxt->num_pages; > > - =A0 =A0*BufferUsed =3D sizeof(ULONGLONG); > > - > > - =A0 =A0TraceEvents(TRACE_LEVEL_VERBOSE, DBG_WMI, "<-- > EvtWmiDeviceInfoQueryInstance\n"); > > - =A0 =A0return STATUS_SUCCESS; > > -} > > -- > > To unsubscribe from this list: send the line "unsubscribe kvm- > commits" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at =A0http://vger.kernel.org/majordomo-info.htm= l > >