<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 5, 2016 at 11:49 AM, S B <span dir="ltr"><<a href="mailto:sb9sb0@gmail.com" target="_blank">sb9sb0@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"><div><div><div>The file hw/misc/vfio.c does not exist anymore. I only found DEBUG_VFIO in include/hw/vfio/vfio-common.h. <br></div>I compiled the via makepkg and included the patch below, but the output does not change.<br></div>I checked the line while compiling and it is changed. I compiled it twice and installed it, but the output does not change.<br></div>Maybe it did sth wrong but I do not find my mistake. Any hints?</div></blockquote><div><br></div><div>I'm not sure what you hope to accomplish from this, but vfio has switched to tracing for debug:</div><div><br></div><div><a href="http://git.qemu.org/?p=qemu.git;a=blob;f=docs/tracing.txt">http://git.qemu.org/?p=qemu.git;a=blob;f=docs/tracing.txt</a></div><div><br></div><div>vfio tracing can be enabled by recompiling with the trace backend specified in that doc and using "vfio*" in the events file and possibly narrowing it down with various function name refinements.  This will result in an obscene amount of logging, you're not going to casually spot any problems, but if you know something about pci and you're willing to track the device state and the source code paths, have at it, the more the merrier.  Typically you'll also want to add x-mmap=off to the vfio-pci options in QEMU so that we can trace all mmio accesses to the device.  Thanks,</div><div><br></div><div>Alex</div></div></div></div>