<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 3, 2018 at 11:45 AM, <a href="mailto:gsswzt@pku.edu.cn">gsswzt@pku.edu.cn</a> <span dir="ltr">&lt;<a href="mailto:gsswzt@pku.edu.cn" target="_blank">gsswzt@pku.edu.cn</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div>
<div><span></span>Hi,</div><div><br></div><div>I found my VM libvirt create xml as:</div><div><br></div>
<div><div>&lt;hostdev managed=&quot;no&quot; mode=&quot;subsystem&quot; rawio=&quot;yes&quot; type=&quot;scsi&quot;&gt;</div><div>      &lt;source&gt;</div><div>        &lt;adapter name=&quot;scsi_host0&quot;/&gt;</div><div>        &lt;address bus=&quot;2&quot; target=&quot;4&quot; unit=&quot;0&quot;/&gt;</div><div>      &lt;/source&gt;</div><div>&lt;/hostdev&gt;</div></div><div><br></div><div>I found <i></i><a href="https://libvirt.org/formatdomain.html#elementsHostDevSubsys" style="font-size:10.5pt;line-height:1.5;font-style:italic;background-color:transparent" target="_blank">https://libvirt.org/<wbr>formatdomain.html#<wbr>elementsHostDevSubsys</a><span style="color:rgb(0,0,0);font-size:10.5pt;line-height:1.5;font-style:italic;background-color:rgba(0,0,0,0)"> </span><span style="color:rgb(0,0,0);font-size:10.5pt;line-height:1.5;background-color:rgba(0,0,0,0)">like blow:</span></div><div><pre>...
&lt;devices&gt;
  &lt;hostdev mode=&#39;subsystem&#39; type=&#39;scsi&#39; sgio=&#39;filtered&#39; rawio=&#39;yes&#39;&gt;
    &lt;source&gt;
      &lt;adapter name=&#39;scsi_host0&#39;/&gt;
      &lt;address bus=&#39;0&#39; target=&#39;0&#39; unit=&#39;0&#39;/&gt;
    &lt;/source&gt;
    &lt;readonly/&gt;
   <span style="background-color:rgb(255,102,0)"> &lt;address type=&#39;drive&#39; controller=&#39;0&#39; bus=&#39;0&#39; target=&#39;0&#39; unit=&#39;0&#39;/&gt;</span>
  &lt;/hostdev&gt;
&lt;/devices&gt;
...</pre><pre>Is &lt;address&gt; mandatory?</pre></div></div></blockquote><div>No, it is not mandatory.</div><div>If not set, it would be determined by libvirt. See [1].</div><div><br></div><div>[1] <a href="https://ovirt.org/develop/release-management/features/virt/stabledeviceaddresses/">https://ovirt.org/develop/release-management/features/virt/stabledeviceaddresses/</a></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div><pre><br></pre></div><span style="color:rgb(0,0,0);font-style:italic;background-color:rgba(0,0,0,0)"></span>
</div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>