* Re: [COMMIT] [WIN-GUEST-DRIVERS] Balloon - remove WMI usage. Remove wmi.c. [not found] <201002151351.o1FDpoDC026064@int-mx08.intmail.prod.int.phx2.redhat.com> @ 2011-03-19 3:28 ` ya su 2011-03-19 9:00 ` Vadim Rozenfeld 2011-03-22 10:06 ` Yan Vugenfirer 0 siblings, 2 replies; 4+ messages in thread From: ya su @ 2011-03-19 3:28 UTC (permalink / raw) To: Yan Vugenfirer; +Cc: kvm 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 > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [COMMIT] [WIN-GUEST-DRIVERS] Balloon - remove WMI usage. Remove wmi.c. 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 1 sibling, 0 replies; 4+ messages in thread From: Vadim Rozenfeld @ 2011-03-19 9:00 UTC (permalink / raw) To: ya su; +Cc: Yan Vugenfirer, kvm On Sat, 2011-03-19 at 11:28 +0800, ya su wrote: > 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. It has been WHQL tested and signed by MS. code 10 usually indicates a resources allocation problem. Vadim. ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [COMMIT] [WIN-GUEST-DRIVERS] Balloon - remove WMI usage. Remove wmi.c. 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 1 sibling, 1 reply; 4+ messages in thread From: Yan Vugenfirer @ 2011-03-22 10:06 UTC (permalink / raw) To: 'ya su'; +Cc: kvm, 'Vadim Rozenfeld' 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 <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 > > ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [COMMIT] [WIN-GUEST-DRIVERS] Balloon - remove WMI usage. Remove wmi.c. 2011-03-22 10:06 ` Yan Vugenfirer @ 2011-03-22 12:55 ` Vadim Rozenfeld 0 siblings, 0 replies; 4+ messages in thread From: Vadim Rozenfeld @ 2011-03-22 12:55 UTC (permalink / raw) To: Yan Vugenfirer; +Cc: 'ya su', kvm 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-22 12:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox