Open jyao1 opened 11 months ago
Current TDISP sample code uses interface_id in the get_version message. See https://github.com/DMTF/spdm-emu/blob/main/library/pci_tdisp_device_lib_sample/pci_tdisp_device_version.c#L41
It is wrong, because it assumes the first time interface_id is correct.
I think libtdisp_initialize_interface_context() should be called earlier, in device initialization phase. But not get_version.
Current TDISP sample code uses interface_id in the get_version message. See https://github.com/DMTF/spdm-emu/blob/main/library/pci_tdisp_device_lib_sample/pci_tdisp_device_version.c#L41
It is wrong, because it assumes the first time interface_id is correct.
I think libtdisp_initialize_interface_context() should be called earlier, in device initialization phase. But not get_version.