-
Notifications
You must be signed in to change notification settings - Fork 398
[CI-NO-BUILD] WIP: Viostor: Introduce action-on-reset feature from vioscsi #1305
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
base: master
Are you sure you want to change the base?
[CI-NO-BUILD] WIP: Viostor: Introduce action-on-reset feature from vioscsi #1305
Conversation
Introduces a Registry read capability: 1. Implemented in VioStorReadRegistryParameter() 2. Requires neo helper CopyBufferToAnsiString() 3. Adds capacity to both detect and read DWORD values in: (a) HKLM\SYSTEM\CurrentControlSet\Services\viostor\Paramaters\Device (b) HKLM\SYSTEM\CurrentControlSet\Services\viostor\Paramaters\Device(d) NOT WORKING 4. Also supports per-HBA values for \Parameters\Device\Valuename_123 when the \Parameters\Device(d) key is unavailable (presently broken) 5. Adds TRACE_REGISTRY WPP tracing flag Signed-off-by: benyamin-codez <[email protected]>
The action-on-reset determines what the driver should do when a bus reset request arrives. It can be configured to: - complete pending requests, - do nothing, - bug check. This feature is already present in vioscsi but not in viostor. Signed-Off-By: Martin Drab <[email protected]>
👍 More registry love. It looks like clang-format is upset. VioStorReadRegistryParameter(DeviceExtension,
REGISTRY_ACTION_ON_RESET,
FIELD_OFFSET(ADAPTER_EXTENSION, action_on_reset)); ...but other lines look close to the column boundary too, so there might be more. P.S.: |
Yeah, I expected |
I would like to ask another question: We control the behavior of action_on_reset through the registry, but by default, it still completes all pending requests. Does this not pose a risk of memory access when the host processes requests that have already been completed? |
Thanks Li. Again, Martin might know best, but |
The action-on-reset determines what the driver should do when a bus reset request arrives. It can be configured to:
This feature is already present in vioscsi but not in viostor.
Needs to be merged after #1297.