[SeaBIOS] [PATCH 03/18] virtio: add struct vp_device
kraxel at redhat.com
Tue Jun 30 08:31:04 CEST 2015
> > Is there a reason to make this a pointer as opposed to just placing
> > the vp_device struct directly in struct virtiodrive_s?
> That'll work too, both blk and scsi have a struct where we can place
> vp_device inside. I'll change it for v2.
Oops, wrong. For virtio-blk it works, but for virtio-scsi all devices
connected to the host adapter share one vp_device instance. And a
per-hostadapter data structure doesn't exist because we don't need one.
More information about the SeaBIOS