RE: [COMMIT] [WIN-GUEST-DRIVERS] Balloon - remove WMI usage. Remove wmi.c.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2011-03-22 at 06:06 -0400, Yan Vugenfirer wrote:
> Hello Vadim,
> 
> Can you check this issues?
> 
http://www.mail-archive.com/kvm@xxxxxxxxxxxxxxx/msg51061.html

> Thanks,
> Yan.
> 
> > -----Original Message-----
> > From: ya su [mailto:suya94335@xxxxxxxxx]
> > Sent: Saturday, March 19, 2011 5:28 AM
> > To: Yan Vugenfirer
> > Cc: kvm@xxxxxxxxxxxxxxx
> > 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 <yvugenfi@xxxxxxxxxx>:
> > > repository: C:/dev/kvm-guest-drivers-windows
> > > branch: master
> > > commit 7ab588f373eda9d08a497e969739019d2075a6d2
> > > Author: Yan Vugenfirer <yvugenfi@xxxxxxxxxx>
> > > Date:   Mon Feb 15 15:01:36 2010 +0200
> > >
> > >    [WIN-GUEST-DRIVERS] Balloon - remove WMI usage. Remove wmi.c.
> > >
> > >        Signed-off-by: Vadim Rozenfeld<vrozenfe@xxxxxxxxxx>
> > >
> > > 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  Red 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.
> >  See
> > > - * 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(
> > > -    WDFDEVICE      Device
> > > -    )
> > > -{
> > > -    WDF_WMI_PROVIDER_CONFIG providerConfig;
> > > -    WDF_WMI_INSTANCE_CONFIG instanceConfig;
> > > -    NTSTATUS        status;
> > > -    DECLARE_CONST_UNICODE_STRING(mofRsrcName, MOFRESOURCENAME);
> > > -
> > > -    PAGED_CODE();
> > > -
> > > -    TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "-->
> > WmiRegistration\n");
> > > -
> > > -    status = WdfDeviceAssignMofResourceName(Device, &mofRsrcName);
> > > -    if (!NT_SUCCESS(status)) {
> > > -        TraceEvents(TRACE_LEVEL_ERROR, DBG_PNP,
> > > -                     "WdfDeviceAssignMofResourceName failed 0x%x",
> > status);
> > > -        return status;
> > > -    }
> > > -
> > > -    WDF_WMI_PROVIDER_CONFIG_INIT(&providerConfig,
> > &GUID_DEV_WMI_BALLOON);
> > > -    providerConfig.MinInstanceBufferSize = sizeof(ULONGLONG);
> > > -
> > > -    WDF_WMI_INSTANCE_CONFIG_INIT_PROVIDER_CONFIG(&instanceConfig,
> > &providerConfig);
> > > -    instanceConfig.Register = TRUE;
> > > -    instanceConfig.EvtWmiInstanceQueryInstance =
> > EvtWmiDeviceInfoQueryInstance;
> > > -
> > > -    status = WdfWmiInstanceCreate(Device,
> > > -                                  &instanceConfig,
> > > -                                  WDF_NO_OBJECT_ATTRIBUTES,
> > > -                                  WDF_NO_HANDLE);
> > > -    if (!NT_SUCCESS(status)) {
> > > -        TraceEvents(TRACE_LEVEL_ERROR, DBG_PNP,
> > > -                     "WdfWmiInstanceCreate failed 0x%x", status);
> > > -        return status;
> > > -    }
> > > -
> > > -    TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "<--
> > WmiRegistration\n");
> > > -    return status;
> > > -}
> > > -
> > > -NTSTATUS
> > > -EvtWmiDeviceInfoQueryInstance(
> > > -    __in  WDFWMIINSTANCE WmiInstance,
> > > -    __in  ULONG OutBufferSize,
> > > -    __out_bcount_part(OutBufferSize, *BufferUsed) PVOID OutBuffer,
> > > -    __out PULONG BufferUsed
> > > -    )
> > > -{
> > > -    PDRIVER_CONTEXT drvCxt = GetDriverContext(WdfGetDriver());
> > > -
> > > -    PAGED_CODE();
> > > -
> > > -    TraceEvents(TRACE_LEVEL_VERBOSE, DBG_WMI, "-->
> > EvtWmiDeviceInfoQueryInstance\n");
> > > -
> > > -    RtlZeroMemory(OutBuffer, sizeof(ULONGLONG));
> > > -    *(ULONGLONG*) OutBuffer = (ULONGLONG)drvCxt->num_pages;
> > > -    *BufferUsed = sizeof(ULONGLONG);
> > > -
> > > -    TraceEvents(TRACE_LEVEL_VERBOSE, DBG_WMI, "<--
> > EvtWmiDeviceInfoQueryInstance\n");
> > > -    return STATUS_SUCCESS;
> > > -}
> > > --
> > > To unsubscribe from this list: send the line "unsubscribe kvm-
> > commits" in
> > > the body of a message to majordomo@xxxxxxxxxxxxxxx
> > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > >
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux