Hi,

I'm looking for further information about virtio-serial port attributes in the 
VM.

On Linux there is also a symlink
/dev/virtio-ports/org.github.vhostmd.1 -> ../vport2p2
to the device which also provides the name as additional information about the 
host side of the port.

On Windows the situation seems to be a bit different.

The device manager shows a hidden device vport2p2 with the attribute
      'Bus reported device description: vport2p2'
but no available device attribute contains the device name from the qemu 
configuration.

I had a look into the vioser-test code of the KVM/QEMU Windows guest drivers
(https://github.com/virtio-win/kvm-guest-drivers-windows) and the functions 
called are
  SetupDiGetClassDevs()
    SetupDiEnumDeviceInterfaces()
      SetupDiGetDeviceInterfaceDetail()
        --> provides  PSP_DEVICE_INTERFACE_DETAIL_DATA
        which is
        typedef struct _SP_DEVICE_INTERFACE_DETAIL_DATA_W {
            DWORD cbSize; // The size, in bytes, of the 
SP_DEVICE_INTERFACE_DETAIL_DATA structure
            WCHAR DevicePath[ANYSIZE_ARRAY]; // NULL-terminated string that 
contains the device interface path.
        } SP_DEVICE_INTERFACE_DETAIL_DATA_W, 
*PSP_DEVICE_INTERFACE_DETAIL_DATA_W;

But this provides only a DevicePath which also does not contain the name from 
the qemu config.

Is there any way to read the virtio-serial port name on Windows?


Michael                                                                         
                                                                                
                                                                                


_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list

Reply via email to