Skip to content

brand/bhyve: Add support for virtio-scsi configuration. - #532

Open
hrosenfeld wants to merge 1 commit into
omniosorg:masterfrom
hrosenfeld:virtio-scsi
Open

brand/bhyve: Add support for virtio-scsi configuration.#532
hrosenfeld wants to merge 1 commit into
omniosorg:masterfrom
hrosenfeld:virtio-scsi

Conversation

@hrosenfeld

Copy link
Copy Markdown
Contributor

This code was written by Patrick van der Linden of EFit Partners. I made some modifications and wrote the new manpage content.

This is a bit more complicated as virtio-scsi controllers support multiple targets, whereas exsting block device drivers supported only one drive per controller instance.

This increases the total number of disks to 99, but it preserves the existing logic for non-scsi disks and adds a fatal error when the amount of 16 non-scsi disks is exceeded.

Comment thread src/brand/bhyve/config.xml Outdated
Comment thread src/brand/bhyve/boot.py Outdated
Comment thread src/brand/bhyve/boot.py Outdated

if i < 8:
if diskif.startswith('scsi') and diskif in scsi_hba:
scsi_hba[diskif]['targets'].append(diskpath(v))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should be setting a bootoption here? It will depend on what the UEFI firmware detects and adds to the EFI variables.

This is a bit more complicated as virtio-scsi controllers support
multiple targets, whereas exsting block device drivers supported only
one drive per controller instance.
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