<p dir="ltr">No libvirt support means there is only a dirty hack available: passing arbitrary qemu:arg qemu commandline options. Everything else stays the same.</p>
<div class="gmail_quote">On Oct 2, 2015 7:27 PM, "Eddie Yen" <<a href="mailto:missile0407@gmail.com">missile0407@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for reply! <div>So the suggestion is keep both commands in the XML file, and create the script that make XML forwarding to that script.</div><div><br></div><div>As libvirt not support yet, I can launch VM by using virsh only, or I can launch it on virt-manager either?</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-03 0:17 GMT+08:00 Alex Williamson <span dir="ltr"><<a href="mailto:alex.l.williamson@gmail.com" target="_blank">alex.l.williamson@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On Fri, Oct 2, 2015 at 10:12 AM, Eddie Yen <span dir="ltr"><<a href="mailto:missile0407@gmail.com" target="_blank">missile0407@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Thanks for sharing!<div><br></div><div>I noticed that it had kvm=off and hv_vendor inside the value.</div><div>If I got kvm=off, can I also delete this?</div><span><div><br></div><div><kvm></div><div>   <hidden state='on'/></div><div></kvm></div></span></div></blockquote><div><br></div></span><div>It's redundant, but the <qemu:args> variant is just temporary until the patch is accepted and we can get libvirt support.  I think the way that I'll choose to enable on my system until then is via a wrapper script.  For instance, create a script with something like:</div><div><br></div><div><div>#!/bin/sh</div><div>exec /usr/local/bin/qemu-system-x86_64 \<br></div><div><span style="white-space:pre-wrap">    </span>`echo "\$@" | sed 's|hv_time|hv_time,hv_vendor_id=|g'`</div></div><div><br></div><div>Then change the <emulator> tag to point to this script.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>And, hv_vendor=<GPU vendor> or <CPU vendor> ?</div></div></blockquote><div><br></div></span><div>Free form string or blank, 12 characters.  As the patch indicates, the value is only used for reporting and diagnostic purposes.</div></div></div></div>
</blockquote></div><br></div>
<br>_______________________________________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
<br></blockquote></div>