-
Notifications
You must be signed in to change notification settings - Fork 259
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
Support for multiple SCSI controllers #1328
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enable using upto 4 SCSI controllers for LCOW UVMs. HCS currently doesn't respect the SCSI controller number provided with the Add SCSI disk requests. Hence, the SCSI disk can show up at some different controller inside the LCOW UVM. To avoid this, now we use GUIDs to represent each controller and use that GUID with the Add SCSI disk request. GCS code is also modified to identify the controller number from the controller GUID. Signed-off-by: Amit Barve <ambarve@microsoft.com>
Signed-off-by: Amit Barve <ambarve@microsoft.com>
ambarve
force-pushed
the
scsi_controller_guid
branch
from
March 14, 2022 16:34
ac09f58
to
ab2f28d
Compare
Signed-off-by: Amit Barve <ambarve@microsoft.com>
ambarve
force-pushed
the
scsi_controller_guid
branch
from
March 14, 2022 22:29
132cd5d
to
9883272
Compare
Signed-off-by: Amit Barve <ambarve@microsoft.com>
jterry75
reviewed
Mar 15, 2022
jterry75
reviewed
Mar 15, 2022
jterry75
reviewed
Mar 15, 2022
jterry75
reviewed
Mar 15, 2022
jterry75
reviewed
Mar 15, 2022
jterry75
reviewed
Mar 15, 2022
dcantah
reviewed
Mar 15, 2022
dcantah
reviewed
Mar 15, 2022
kevpar
reviewed
Mar 15, 2022
kevpar
reviewed
Mar 15, 2022
kevpar
reviewed
Mar 15, 2022
Use Camel case for GUID array, include comment above each GUID to make it easier to search. Add a check to make sure WCOW is never created with zero SCSI controllers. Signed-off-by: Amit Barve <ambarve@microsoft.com>
anmaxvl
reviewed
Mar 16, 2022
Earlier changes to support several SCSI controllers modified the GCS protocol. This commit modifies the code to keep the same GCS protocol and maintain the list of controller GUIDs inside GCS. Signed-off-by: Amit Barve <ambarve@microsoft.com>
kevpar
reviewed
Mar 17, 2022
Also, enable 4 SCSI controllers on LCOW only if no vpmem multimapping is enabled. Signed-off-by: Amit Barve <ambarve@microsoft.com>
Signed-off-by: Amit Barve <ambarve@microsoft.com>
kevpar
reviewed
Mar 21, 2022
kevpar
reviewed
Mar 21, 2022
kevpar
reviewed
Mar 21, 2022
Earlier we had disabled VPMEM devices for container layer but the UVM was still using VPMEM for rootfs. This commit changes that and forces the UVM to use initrd for rootfs. Also, adds an error if SCSI controller count for WCOW is not set to 1. Signed-off-by: Amit Barve <ambarve@microsoft.com>
Signed-off-by: Amit Barve <ambarve@microsoft.com>
kevpar
reviewed
Mar 28, 2022
kevpar
reviewed
Mar 28, 2022
kevpar
reviewed
Mar 28, 2022
kevpar
reviewed
Mar 28, 2022
Signed-off-by: Amit Barve <ambarve@microsoft.com>
Signed-off-by: Amit Barve <ambarve@microsoft.com>
kevpar
approved these changes
Mar 28, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
anmaxvl
approved these changes
Mar 28, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
dcantah
approved these changes
Mar 28, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
princepereira
pushed a commit
to princepereira/hcsshim
that referenced
this pull request
Aug 29, 2024
* Support for multiple SCSI controllers Enable using upto 4 SCSI controllers for LCOW UVMs. HCS currently doesn't respect the SCSI controller number provided with the Add SCSI disk requests. Hence, the SCSI disk can show up at some different controller inside the LCOW UVM. To avoid this, now we use GUIDs to represent each controller and use that GUID with the Add SCSI disk request. GCS code is also modified to identify the controller number from the controller GUID. Now if a LCOW pod is created with an annotation that sets VPMEM device count to 0, we will automatically enable 4 SCSI controllers. Even the rootfs.vhd will be attached via SCSI in that scenario. Signed-off-by: Amit Barve <ambarve@microsoft.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enable using upto 4 SCSI controllers for LCOW UVMs. HCS currently doesn't respect the
SCSI controller number provided with the Add SCSI disk requests. Hence, the SCSI disk can
show up at some different controller inside the LCOW UVM. To avoid this, now we use GUIDs
to represent each controller and use that GUID with the Add SCSI disk request.
GCS code is also modified to identify the controller number from the controller GUID.
Signed-off-by: Amit Barve ambarve@microsoft.com