Page MenuHomeFreeBSD

bhyve: Support setting the disk serial number for VirtIO block devices.
ClosedPublic

Authored by jhb on Sep 16 2021, 1:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 5, 6:54 AM
Unknown Object (File)
Mar 6 2024, 12:54 PM
Unknown Object (File)
Feb 3 2024, 4:27 AM
Unknown Object (File)
Jan 2 2024, 9:39 PM
Unknown Object (File)
Jan 2 2024, 7:13 PM
Unknown Object (File)
Dec 13 2023, 4:55 AM
Unknown Object (File)
Sep 21 2023, 8:36 PM
Unknown Object (File)
Sep 19 2023, 11:27 AM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Sep 16 2021, 1:58 PM
bcr added a subscriber: bcr.

OK from manpages.

jhb added a subscriber: pmooney_pfmooney.com.

@chuck, would you be able to test this easily?

Whoops, sorry, this isn't NVMe. :)

Since the "serial" taken from the configuration is directly copied to become the virtio-blk device's ident, should we call this "ident" simply? Looks good to me otherwise.

EDIT: I missed the fact that it was obtained from Illumos.

I think the goal was to also be similar to the name used for the AHCI and NVMe device models which both use "ser" for this.

allanjude added a subscriber: allanjude.

Reviewed By: allanjude

This revision is now accepted and ready to land.Sep 16 2021, 6:57 PM
In D31983#721639, @jhb wrote:

I think the goal was to also be similar to the name used for the AHCI and NVMe device models which both use "ser" for this.

Right - it was added as ser to match the others. Accepting the alternative of serial is there because that's what some illumos distributions had before the configuration management refactoring.

Apologies for getting to this late, but I tested this with ser, serial, and with no options. Seemed to work as expected