<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Just unbind device without unloading sound card driver and then bind
    it to vfio-pci (just like libvirt does; libvirt also rebinds device
    to it's former driver after VM shutdown). Pulseaudio goes fine with
    that.<br>
    <br>
    <div class="moz-cite-prefix">On 04.11.2015 22:41, Tomasz Jan
      Góralczyk wrote:<br>
    </div>
    <blockquote cite="mid:563A7B8F.6040703@fastmail.uk" type="cite">
      <pre wrap="">I also had the same problem with audio and the only way I could fix it
was by passing through my onboard sound card via vfio. I had to `rmmod`
the snd_hda_intel module before binding the sound card's vfio group to
make it work. Obviously, it's not ideal since the card can't be shared
between the host and the guest, but you already have an USB soundcard,
so why not use that on the host? After I'm done with the guest, I shut
it down, unbind the sound card's vfio group and `modprobe` the
snd_hda_intel module to get audio back up on the host. Note that
Pulseaudio won't let you unload your sound card's kernel module, while
it's running.

I have an ASUS Z97 board and a 4790k, so ymmv.

</pre>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
vfio-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/vfio-users">https://www.redhat.com/mailman/listinfo/vfio-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>