I have a wrlinux yocto system running on an Intel Haswell processor. Here we pass through a PCIe device (broadcom switch) to the VM, launched using qemu/kvm. The Guest is able to detect the device via config space and is allocating memory space based on BAR, but the device memory access seems incorrect. Perhaps the Guest Physical address mapping went wrong? Access doesn't fail, it returns invalid data. How to debug whether the DMA remapping to guest is properly setup or not?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.