GithubHelp home page GithubHelp logo

Comments (7)

jyao1 avatar jyao1 commented on August 17, 2024

@uvinrg, would you please submit a patch to enable spdm-emu?

from spdm-emu.

uvinrg avatar uvinrg commented on August 17, 2024

Hi @jyao1 I would like to update spdm-emu so it works as expected with the new patch. Can you provide me with a quick guide how to run the IDE_KM test, so I can verify afterwards the patch worked? Thank you.

from spdm-emu.

jyao1 avatar jyao1 commented on August 17, 2024

Sure, thank you!
Just run both spdm-emu, please. Originally, emu will send IDE_KM and get response. Now emu cannot because there is no code to register the new callback when LIBSPDM_ENABLE_VENDOR_DEFINED_MESSAGES is enabled.

from spdm-emu.

jyao1 avatar jyao1 commented on August 17, 2024

@Wenxing-hou , please investigate why CI did not catch this issue

from spdm-emu.

Wenxing-hou avatar Wenxing-hou commented on August 17, 2024

@Wenxing-hou , please investigate why CI did not catch this issue

Hi all. I have investigated the SPDM-emu. The current spdm-emu doesn't call the libspdm_try_vendor_send_request_receive_response and libspdm_get_vendor_defined_response.

The reason is:
When I added the dead loop in the submodule libspdm, such as:

libspdm_return_t libspdm_try_vendor_send_request_receive_response(
    libspdm_context_t *spdm_context,
    ...
    void *resp_data)
{
....
while(1);
libspdm_return_t libspdm_get_vendor_defined_response(libspdm_context_t *spdm_context,
                                                     size_t request_size,
                                                     const void *request,
                                                     size_t *response_size,
                                                     void *response)
{
...
while(1);

The spdm-emu run successfully without stop.

from spdm-emu.

jyao1 avatar jyao1 commented on August 17, 2024

The current spdm-emu doesn't call the libspdm_try_vendor_send_request_receive_response and libspdm_get_vendor_defined_response.

@Wenxing-hou , why it does not call?

The reason is:
When I added the dead loop in the submodule libspdm, such as:

This is NOT the reason. This is just the consequence of "not call".

from spdm-emu.

uvinrg avatar uvinrg commented on August 17, 2024

@jyao1 Running spdm_responder_emu and spdm_requester_emu without parameters works, though at some point responder return ERRRO 0xFE after a few messages.
I have created pull request DMTF/libspdm#2533 to fix Libspdm vendor commands backwards-compatibility with existing code. It should fix the problem.

from spdm-emu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.