NDIS miniport sample illustrating VMQ

I could not locate a sample driver illustrating Virtual Machine Queue. Is there any such example driver? Thanks!

Best,
Vijay

Not that I know of. but all you need is in msdn.

On Fri, Mar 29, 2013 at 4:00 AM, wrote:

> I could not locate a sample driver illustrating Virtual Machine Queue. Is
> there any such example driver? Thanks!
>
> Best,
> Vijay
>
> —
> NTDEV is sponsored by OSR
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Believe it or not… VMQ is tacked onto the side of the latest netvmini sample.

http://code.msdn.microsoft.com/NDIS-Virtual-Miniport-58d27f0f/sourcecode?fileId=51285&pathId=168332044

Hi guys,

Quick questions:

I’d like to put Jeffrey’s code.msdn.microsoft.com link in some strategic places in the VMQ MSDN docs (and link to other samples where I should be doing that as well).

Where would you expect to find such a link?

I was thinking of starting with “Writing VMQ Drivers”:

http://msdn.microsoft.com/en-us/Library/Windows/Hardware/ff571107(v=vs.85).aspx

Should I put it in the top-level node too? Should I try to add it to every Design Guide page, or is that overkill? (I’m thinking yes to the latter.)

Virtual Machine Queue (VMQ): http://msdn.microsoft.com/en-us/Library/Windows/Hardware/ff571034(v=vs.85).aspx

I want to make it dead easy to find the sample, but not beat readers over the head with it.

Thoughts?

–Diane

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Jeffrey Tippet
Sent: Friday, March 29, 2013 6:12 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] NDIS miniport sample illustrating VMQ

Believe it or not… VMQ is tacked onto the side of the latest netvmini sample.

http://code.msdn.microsoft.com/NDIS-Virtual-Miniport-58d27f0f/sourcecode?fileId=51285&pathId=168332044


NTDEV is sponsored by OSR

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

When did MSFT start treating us so nicely? When I wrote my VMQ, there was
no sample. SRIOV mp, no sample, not even complete doc.

On Fri, Mar 29, 2013 at 6:11 PM, Jeffrey Tippet <
xxxxx@microsoft.com> wrote:

Believe it or not… VMQ is tacked onto the side of the latest netvmini
sample.

http://code.msdn.microsoft.com/NDIS-Virtual-Miniport-58d27f0f/sourcecode?fileId=51285&pathId=168332044


NTDEV is sponsored by OSR

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thank you, Jeffrey!

Diane,

“Writing VMQ Drivers” would be an ideal place. In the CHM that I have, there is a section called “Network Samples” under “Network Devices”.

Best,
Z

Well, another point: description.html in the “NDIS Virtual Miniport Driver” sample needs an update, especially the “File Manifest” section. I could have found this earlier, as I had already checked netvmini before asking the question. :wink:

Best,
Z

In AllocateVMQData(), file vmq.c, shouldn’t the following if block set -

Status = NDIS_STATUS_RESOURCES

  • before 'break’ing?

if(!VMQData->RxQueues[i].QueueLock)
{
DEBUGP(MP_ERROR, “[%p] NdisAllocateRWLock failed for Queue %i.\n”, Adapter, i);
break;
}

Best,
Z

Thanks, Z. I’ll add the sample link to Writing VMQ Drivershttp:. You should see it on MSDN next Wednesday. (We had a biweekly MSDN update scheduled for this Wednesday, but it’s been postponed until next week.)

The Network Deviceshttp: page still exists, but the Network Samples page no longer exists. I’ll see what I can do to put it back and/or add sufficient links from the Network driver documentation to the relevant samples.

Cheers,

–Diane

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Sunday, March 31, 2013 12:25 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] NDIS miniport sample illustrating VMQ

Thank you, Jeffrey!

Diane,

“Writing VMQ Drivers” would be an ideal place. In the CHM that I have, there is a section called “Network Samples” under “Network Devices”.

Best,

Z



NTDEV is sponsored by OSR

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:

http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</http:></http:>

Good catch. It also doesn’t correctly handle the cleanup later in FreeVMQData. I’ve filed an internal bug for this.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Sunday, March 31, 2013 11:59 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] NDIS miniport sample illustrating VMQ

In AllocateVMQData(), file vmq.c, shouldn’t the following if block set -

Status = NDIS_STATUS_RESOURCES

  • before 'break’ing?

if(!VMQData->RxQueues[i].QueueLock)
{
DEBUGP(MP_ERROR, “[%p] NdisAllocateRWLock failed for Queue %i.\n”, Adapter, i);
break;
}

Best,
Z


NTDEV is sponsored by OSR

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer