Serial ports are unavailable to the driver in the VM (VMware)



I am debugging a driver that has some problems with standby/hiberation
support (PnP/power IRPs). So I cannot use WinDbg to remotely watch
driver messages. I have made a simple serial output and send my
debugging messages to the serial port using a direct registers access
(3f8-3ff). At another end, I use a virtual machine with a terminal
application or a log file.

Under VMware 4.x, all worked fine. Under VMware 5.5.2, serial port
registers seem to become unavailable to the driver after Windows boots
up. My driver successfully sends some messages after it started (a
boot-start) but stops to send them when Windows entered GUI mode.
SoftICE shows 0xFF read from any serial port register.

If I break into SoftICE immediately after it starts, serial port
registers behave correctly. If I break after Windows have booted, they
all show 0xFF.

If I open any application that accesses serial port, all works fine. If
I break into SoftICE and check port registers when such application is
opened, all registers behave correctly. But if I close the application,
all registers show 0xFF again.

I tried it in Windows 2000 SP4 and XP SP2, they behave the same way. I
tried to disable serial ports in Device Manages, but nothig was
changed. I looked for a port map in TSS but there is no port map in
kernel mode.

How can I gain a permanent access to serial port registers from the
driver? I need a direct access to be able to send a debug message in
any system state. It is a VMware or Windows problem?

Regards,
Eugene

.



Relevant Pages

  • Re: USB Composite Device, Serial + Mass Storage, could not install
    ... I really do that, I also use IAD for the composite device, Windows XP SP2 ... can begin to install the driver according to the inf file. ... question mark on my virtual serial port and my mass storage device can work. ...
    (microsoft.public.development.device.drivers)
  • Re: Communication with PCIe device; reading/writing hw registers
    ... Mapping the registers is one of the worst security holes one can do in any ... while it is possible to do in Windows I suspect you will get little help ... Windows Filesystem and Driver Consulting ... user space and kernel space? ...
    (microsoft.public.development.device.drivers)
  • Re: Request for the Location of the ntirp.c file in Platform Build
    ... The serial port test I was running is a standard test that came with Windows ... I've created a test for a SPI port driver that came with the BSP we ... Device Remote System Information seems to load, ...
    (microsoft.public.windowsce.platbuilder)
  • WinME Device Manager Refresh problem
    ... We have a USB based Serial Port and the driver works fine on Windows ... the Device Manager shows our ...
    (microsoft.public.development.device.drivers)
  • Re: How to find the size of data in SystemBuffer?
    ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... > I am writing a serial upper filter driver which needs to be able to> monitor the read and write data for a serial port. ... > I use a CompletionRoutine to see the read data coming back up but> although the contents of SystemBuffer appear to be correct the size is> wrong. ...
    (microsoft.public.development.device.drivers)

Loading