Page MenuHomeFreeBSD

bhyve: Passthrough SMART from host device to virtual AHCI disk.
AbandonedPublic

Authored by wanpengqian_gmail.com on Aug 6 2020, 3:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 7:17 PM
Unknown Object (File)
Fri, Apr 19, 8:22 AM
Unknown Object (File)
Apr 16 2024, 1:22 AM
Unknown Object (File)
Apr 10 2024, 11:04 PM
Unknown Object (File)
Apr 1 2024, 1:14 PM
Unknown Object (File)
Mar 16 2024, 10:45 PM
Unknown Object (File)
Feb 17 2024, 6:03 PM
Unknown Object (File)
Feb 17 2024, 5:59 PM
Subscribers

Details

Reviewers
grehan
jhb
Group Reviewers
bhyve
Summary

Currently, virtual AHCI disk is not providing SMART capability, even using the raw disk. In some use case, users are lack of VT-d or unable to provide extra HBA for passthrough, but still want to let VM know the SMART.

This patch will let virtual AHCI hdd has the host's hdd SMART.

In order to get the SMART from Host's device. I am using code from camcontrol.c and create a new cam_if.c file.

Test Plan

Inside vm, using smartctl utility, check the output of SMART, and compare it to Host's output.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32812
Build 30228: arc lint + arc unit