Re: [Qemu-devel] Why we need redirect the access to bar0 through the PCI config space access function

2017-05-05 Thread Alex Williamson
On Fri, 5 May 2017 09:49:33 + "wuzongyong (A)" wrote: [contents deleted per legal clause] > 华为技术有限公司 Huawei Technologies Co., Ltd. > [Company_logo] > 个人签名:邬宗勇 > 手  机:15656583887 > 电子邮件:wuzongyo...@huawei.com > >  本邮件及其附件含有华为公

[Qemu-devel] Why we need redirect the access to bar0 through the PCI config space access function

2017-05-05 Thread wuzongyong (A)
Hi, I’m testing gpu passthrough on KVM with NVIDIA gpu card(M60, 10de:13f2) based on vfio. And I noticed the function vfio_nvidia_bar0_mirror_quirk in qemu/hw/vfio/pci-quirks.c, could someone please explain the aim of these codes in detail to me? I don’t think it is necessary if we don’t need r