Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HV_MESSAGE_HEADER struct members are documented wrong in TLFS v6.0b #1624

Open
sidcha opened this issue Jul 30, 2021 · 0 comments
Open

HV_MESSAGE_HEADER struct members are documented wrong in TLFS v6.0b #1624

sidcha opened this issue Jul 30, 2021 · 0 comments

Comments

@sidcha
Copy link

sidcha commented Jul 30, 2021

HV_MESSAGE_HEADER struct members are documented wrong in TLFS v6.0b

TLFS v6.0b documents it as:

typedef struct
{
    HV_MESSAGE_TYPE MessageType;
    UINT16 Reserved;
    HV_MESSAGE_FLAGS MessageFlags;
    UINT8 PayloadSize;
    union
    {
        UINT64 OriginationId;
        HV_PARTITION_ID Sender;
        HV_PORT_ID Port;
    };
} HV_MESSAGE_HEADER;

While the actual struct looks like this:

typedef struct
{
    HV_MESSAGE_TYPE MessageType;
    UINT8 PayloadSize;
    HV_MESSAGE_FLAGS MessageFlags;
    UINT16 Reserved;
    union
    {
        UINT64 OriginationId;
        HV_PARTITION_ID Sender;
        HV_PORT_ID Port;
    };
} HV_MESSAGE_HEADER;

ie., PayloadSize and Reserved members are swapped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant