Skip to content

netkvm: added event logging for critical failures in ParaNdis6_Initialize to improve diagnostics #1349

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

Merged
merged 2 commits into from
May 10, 2025

Conversation

zjmletang
Copy link
Member

for the problem description
please visit #1343

Signed-off-by: Zhang JianMing [email protected]

@zjmletang zjmletang marked this pull request as draft April 23, 2025 06:50
@YanVugenfirer
Copy link
Collaborator

Can one of the admins verify this patch?

@zjmletang
Copy link
Member Author

@YanVugenfirer Please hold on, this PR is temporarily for discussion only. I will add my thoughts in the issue shortly.

@YanVugenfirer
Copy link
Collaborator

@YanVugenfirer Please hold on, this PR is temporarily for discussion only. I will add my thoughts in the issue shortly.

"Can one of the admins verify this patch?” - this is Jenkins generated message :)

@zjmletang
Copy link
Member Author

@YanVugenfirer Please hold on, this PR is temporarily for discussion only. I will add my thoughts in the issue shortly.

"Can one of the admins verify this patch?” - this is Jenkins generated message :)

Haha, I see! I was wondering how you replied so quickly. (^_^)

@YanVugenfirer
Copy link
Collaborator

Looks like a good start.

@YanVugenfirer
Copy link
Collaborator

@zjmletang Do you want to add something else to PR?

@zjmletang
Copy link
Member Author

@zjmletang Do you want to add something else to PR?
@YanVugenfirer Nothing more for now. I adjusted the Clang formatting style and resubmitted it.

@zjmletang zjmletang marked this pull request as ready for review May 7, 2025 02:56
@ybendito
Copy link
Collaborator

ybendito commented May 7, 2025

@zjmletang I'd prefer something shorter (in the code this takes many lines and makes the code less readable).
Just as an example: in the ndis56common something like:

#define NDIS_ERR(handle, code1, code2, ...) \
    `NdisWriteErrorLogEntry(handle, NDIS_ERROR_CODE_##code1, code2, __LINE__, __VA_ARGS__)`

And in the code just:
NDIS_ERR(miniportAdapterHandle, UNSUPPORTED_CONFIGURATION, 2, status);

@ybendito
Copy link
Collaborator

ybendito commented May 7, 2025

@zjmletang Also, I think we do not need to enter number of params manually. For simplicity we can:
a) always use 2 params, at the moment should be enough
b) automatically recognize number of parameters and use it in a call (more complicated, I agree)

zjmletang added 2 commits May 8, 2025 16:30
…lize to improve diagnostics

for the problem description
please visit virtio-win#1343

Signed-off-by: Zhang JianMing [email protected]
@zjmletang
Copy link
Member Author

@zjmletang Also, I think we do not need to enter number of params manually. For simplicity we can: a) always use 2 params, at the moment should be enough b) automatically recognize number of parameters and use it in a call (more complicated, I agree)

@ybendito Thank you very much. I have updated a new version based on your guidance

@ybendito
Copy link
Collaborator

ybendito commented May 8, 2025

rerun tests

@ybendito
Copy link
Collaborator

ybendito commented May 9, 2025

Tests: Win11 - LSO test "failed" (problem of HCK, no real failure at all), pass on rerun
All the rest passed.
I think we can merge it. @YanVugenfirer

@YanVugenfirer YanVugenfirer merged commit b662c71 into virtio-win:master May 10, 2025
7 of 8 checks passed
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

Successfully merging this pull request may close these issues.

3 participants