PCI Device Simulation

Hello

Is there a way to Simulate PCI Device By using something like DSF or by
using Virtual Machine (VMWare, VirtualPC and etc…) or by something else?

Thanks in Advance.


Oren

In which context are you asking your question??? What are you trying to do???

Anton Bassov

DSF is extremely limited and “requires being a Com Architect/Guru to develop
your own device” (this is a quote from last years WInHEC presentation on
DSF. I have done simulation at times when the device is not ready, but they
have involved a library to wrap the accesses to hardware and simulate the
results. A lot of work for anything but the simplest of devices.


Don Burn (MVP, Windows DDK)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

“Oren Weil” wrote in message news:xxxxx@ntdev…
> Hello
>
> Is there a way to Simulate PCI Device By using something like DSF or by
> using Virtual Machine (VMWare, VirtualPC and etc…) or by something else?
>
> Thanks in Advance.
>
>
> –
> Oren
>

Such a thing is certainly possible, though we don’t publish interfaces for
you to do this with Virtual PC, Virtual Server or Hyper-V. Honestly, if we
did, we’d have to change our motherboard emulation to something a little
more modern so that you’d get support for things like PCI-Express. We have
no intention of doing that, as the old motherboard is useful for running old
OSes in a VM. Maybe VMWare publishes their interfaces. I don’t know.

Without a VM, simulation will necessarily have holes in it, which is why DSF
is imcomplete in this regard and why most recommendations will be for your
to recompile your driver with stubs in place of the functions which
manipulate hardware.


Jake Oshins
Hyper-V I/O Architect
Windows Kernel Team

This post implies no warranties and confers no rights.
“Oren Weil” wrote in message news:xxxxx@ntdev…
> Hello
>
> Is there a way to Simulate PCI Device By using something like DSF or by
> using Virtual Machine (VMWare, VirtualPC and etc…) or by something else?
>
> Thanks in Advance.
>
>
> –
> Oren
>

Still, opening VMBus itself could have interesting possibilities, like replacing the bit-banging COM port with something modern for fast kd, though requiring signed kd transport modules is a downer on that particular example.

I know that I’d love to be able to write VMBus clients && host-side service providers without having to fire upye olde disassembler, though.

It does seem more sensible to go that route than to open up legacy device emulation, or so I would think, anyways.

  • S

-----Original Message-----
From: xxxxx@windows.microsoft.com
Sent: Wednesday, October 08, 2008 18:30
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] PCI Device Simulation

Such a thing is certainly possible, though we don’t publish interfaces for
you to do this with Virtual PC, Virtual Server or Hyper-V. Honestly, if we
did, we’d have to change our motherboard emulation to something a little
more modern so that you’d get support for things like PCI-Express. We have
no intention of doing that, as the old motherboard is useful for running old
OSes in a VM. Maybe VMWare publishes their interfaces. I don’t know.

Without a VM, simulation will necessarily have holes in it, which is why DSF
is imcomplete in this regard and why most recommendations will be for your
to recompile your driver with stubs in place of the functions which
manipulate hardware.


Jake Oshins
Hyper-V I/O Architect
Windows Kernel Team

This post implies no warranties and confers no rights.
“Oren Weil” wrote in message news:xxxxx@ntdev…
> Hello
>
> Is there a way to Simulate PCI Device By using something like DSF or by
> using Virtual Machine (VMWare, VirtualPC and etc…) or by something else?
>
> Thanks in Advance.
>
>
> –
> Oren
>


NTDEV is sponsored by OSR

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

Hi
I have PCI Device and a driver, I would like to simulate this PCI
hardware device in order to perform some unit testing (and more) for my
driver.

xxxxx@hotmail.com wrote:

In which context are you asking your question??? What are you trying to do???

Anton Bassov


Oren W.

If you have the pci device you don’t really need the simulation. Simulation
makes sense (given the effort to get it programmed) when you don’t have the
actual hardware to work with. Unit test against the real hardware.

On Mon, Oct 13, 2008 at 8:51 AM, Oren Weil wrote:

> Hi
> I have PCI Device and a driver, I would like to simulate this PCI
> hardware device in order to perform some unit testing (and more) for my
> driver.
>
> xxxxx@hotmail.com wrote:
> > In which context are you asking your question??? What are you trying to
> do???
> >
> > Anton Bassov
> >
>
>
> –
> Oren W.
>
> —
> NTDEV is sponsored by OSR
>
> 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
>


Mark Roddy