Bug 269023 - xen xbd attach does not add to ada device unit count
Summary: xen xbd attach does not add to ada device unit count
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: cam
Depends on:
Blocks:
 
Reported: 2023-01-18 08:19 UTC by Echo Nar
Modified: 2023-01-18 08:23 UTC (History)
0 users

See Also:


Attachments
dmesg snipit of issue (1.76 KB, text/plain)
2023-01-18 08:19 UTC, Echo Nar
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Echo Nar 2023-01-18 08:19:44 UTC
Created attachment 239554 [details]
dmesg snipit of issue

When a SATA controller is passed to a FreeBSD guest with a virtual disk attached, the xdb Virtual Block Device gets assigned to ada0; however, it does not appear to add to the device unit count. Thus when the SATA drives are detected, they start at 0. This leads to the system thinking that the xdb (ada0) and physical disk (ada0) are partitions of each other. 2 partitions listed under /dev and 2 ada0 under geom device.

As a workaround one can pre-wire the xdb assigned ada to the related ada driver instance with hint.ada.X.at="adaX" to shift the starting unit count.