From: Vadim Rozenfeld <vrozenfe@redhat.com>
To: Yan Vugenfirer <yvugenfi@redhat.com>
Cc: "'ya su'" <suya94335@gmail.com>, kvm@vger.kernel.org
Subject: RE: [COMMIT] [WIN-GUEST-DRIVERS] Balloon - remove WMI usage. Remove wmi.c.
Date: Tue, 22 Mar 2011 14:55:57 +0200 [thread overview]
Message-ID: <1300798557.6752.93.camel@localhost> (raw)
In-Reply-To: <013101cbe878$c7b664d0$57232e70$@com>
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@vger.kernel.org/msg51061.html
> 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 <yvugenfi@redhat.com>:
> > > repository: C:/dev/kvm-guest-drivers-windows
> > > branch: master
> > > commit 7ab588f373eda9d08a497e969739019d2075a6d2
> > > Author: Yan Vugenfirer <yvugenfi@redhat.com>
> > > 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@redhat.com>
> > >
> > > 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@vger.kernel.org
> > > 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@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2011-03-22 12:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201002151351.o1FDpoDC026064@int-mx08.intmail.prod.int.phx2.redhat.com>
2011-03-19 3:28 ` [COMMIT] [WIN-GUEST-DRIVERS] Balloon - remove WMI usage. Remove wmi.c ya su
2011-03-19 9:00 ` Vadim Rozenfeld
2011-03-22 10:06 ` Yan Vugenfirer
2011-03-22 12:55 ` Vadim Rozenfeld [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1300798557.6752.93.camel@localhost \
--to=vrozenfe@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=suya94335@gmail.com \
--cc=yvugenfi@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox