-
Notifications
You must be signed in to change notification settings - Fork 403
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?
Viostor: Introduce action-on-reset feature from vioscsi #1305
Conversation
👍 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 |
Hello, I apologize for long delay. The risk is there in case the pending requests get completed as a result of bus reset request from the OS (and the host may complete some of them at the same moment -- which means access to memory no longer belonging to the requests). I will add commit setting the |
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 <115509179+benyamin-codez@users.noreply.github.com>
9eb1faf
to
b5a5b47
Compare
b5a5b47
to
4b6729d
Compare
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 <martin.drab@virtuozzo.com>
Signed-Off-By: Martin Drab <martin.drab@virtuozzo.com>
4b6729d
to
9b71fc9
Compare
ok to test |
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.