bhyve: passthrough SMART info from host nvme controller
Wanpeng Qian
wanpengqian at gmail.com
Thu Mar 19 03:09:57 UTC 2020
> Can't you do what something like pci_passthru.c does in passthru_init,
> and open /dev/nvme0 in pci_nvme_init?
Yes, you are correct. but that will make /dev/nvme0 keep open all the time.
I just thinking when guest fire a logpage command, open the /dev/nvme0
and get the SMART info. then close /dev/nvme0.
On Thu, Mar 19, 2020 at 2:59 AM John-Mark Gurney <jmg at funkthat.com> wrote:
>
> Wanpeng Qian wrote this message on Wed, Mar 18, 2020 at 13:05 +0900:
> > But currently bhyve has Capsicum capability, I cannot
> > open /dev/nvme0 within pci_nvme.c without extra code.
> > (currently I just disable the Capsicum capability)
> >
> > any feedback?
>
> Can't you do what something like pci_passthru.c does in passthru_init,
> and open /dev/nvme0 in pci_nvme_init?
>
> Or am I missing something?
>
> --
> John-Mark Gurney Voice: +1 415 225 5579
>
> "All that I will do, has been done, All that I have, has not."
More information about the freebsd-virtualization
mailing list