Michal Privoznik fea0d8c40d qemu: Move <hostdev> SCSI path generation into qemuDomainPrepareHostdev()
When preparing a SCSI <hostdev/> with passthrough of a host SCSI
adapter (i.e. no protocol), a virStorageSource structure is
initialized and stored inside virDomainHostdevDef. But the source
structure is filled in many places, with almost the same code.

Firstly, qemuProcessPrepareHostHostdev() and
qemuConnectDomainXMLToNativePrepareHostHostdev() are the same.

Secondly, qemuDomainPrepareHostdev() allocates the src structure,
only to let qemuProcessPrepareHostHostdev() fill src->path later.

Well, src->path can be filled at the same place where the src
structure is allocated (qemuDomainPrepareHostdev()) which renders
the other two functions needless.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2023-04-25 12:36:30 +02:00
..
2023-02-14 13:59:45 +01:00
2023-04-06 12:48:22 +02:00
2023-02-14 13:59:45 +01:00
2022-11-11 08:10:34 -07:00
2023-03-06 14:35:35 +01:00
2023-04-06 12:48:22 +02:00
2023-03-13 13:29:07 +01:00
2023-04-04 10:52:15 +02:00
2023-03-13 13:29:07 +01:00