[vfio-users] vfio_pci_read_config failed: Bad address

Ronnie Swanink ronnie at ronnieswanink.nl
Tue Nov 17 21:35:51 UTC 2015


Hello,

For the last week I've been trying to get GPU passthrough to work. My 
goal is to have a simple MSI Geforce 210 as the host graphics adapter, 
and pass a MSI GTX 970 GAMING to a Windows 8 guest. However, I can't get 
it to work. The 970 does give output when the drivers are not installed, 
but after installing the drivers qemu gives me the following error when 
Windows boots (the vm restarts after that and Windows goes into 
automatic recovery):

2015-11-17T21:08:59.910448Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x60c, 0x4) failed: Bad address
2015-11-17T21:08:59.910566Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x610, 0x4) failed: Bad address
2015-11-17T21:09:00.404715Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x150, 0x4) failed: Bad address
2015-11-17T21:09:00.824690Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x424, 0x4) failed: Bad address
2015-11-17T21:09:00.824744Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x430, 0x4) failed: Bad address
2015-11-17T21:09:00.824788Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x424, 0x155010, 0x4) failed: Bad 
address
2015-11-17T21:09:00.824829Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x430, 0x31c0, 0x4) failed: Bad 
address
2015-11-17T21:09:00.824888Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x4b8, 0x40, 0x4) failed: Bad 
address
2015-11-17T21:09:00.824935Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x4b8, 0x80, 0x4) failed: Bad 
address
2015-11-17T21:09:00.824973Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x4b8, 0x100, 0x4) failed: Bad 
address
2015-11-17T21:09:00.825011Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x4b8, 0x200, 0x4) failed: Bad 
address
2015-11-17T21:09:00.825059Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x610, 0x4) failed: Bad address
2015-11-17T21:09:00.825121Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x41c, 0x4) failed: Bad address
2015-11-17T21:09:00.825161Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x41c, 0xfffffff2, 0x4) failed: Bad 
address
2015-11-17T21:09:00.825230Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x708, 0x4) failed: Bad address
2015-11-17T21:09:00.825277Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x708, 0xfffffff3, 0x4) failed: Bad 
address
2015-11-17T21:09:00.825312Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x484, 0x13, 0x4) failed: Bad 
address
2015-11-17T21:09:00.825349Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x484, 0x13, 0x4) failed: Bad 
address
2015-11-17T21:09:00.825382Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x41c, 0x4) failed: Bad address
2015-11-17T21:09:00.825429Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x41c, 0xfffffff2, 0x4) failed: Bad 
address
2015-11-17T21:09:00.825491Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x150, 0x4) failed: Bad address
2015-11-17T21:09:00.825527Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x150, 0xf9fffff2, 0x4) failed: Bad 
address
2015-11-17T21:09:00.825557Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x14c, 0x4) failed: Bad address
2015-11-17T21:09:00.825591Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x14c, 0xfffffff2, 0x4) failed: Bad 
address
2015-11-17T21:09:00.825672Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x4e8, 0x44, 0x4) failed: Bad 
address
2015-11-17T21:09:00.825753Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x154, 0x4) failed: Bad address
2015-11-17T21:09:00.825791Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x154, 0xffffffa2, 0x4) failed: Bad 
address
2015-11-17T21:09:00.825826Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x658, 0x4) failed: Bad address
2015-11-17T21:09:00.825864Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x658, 0xffffffc6, 0x4) failed: Bad 
address
2015-11-17T21:09:00.826455Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x100, 0x4) failed: Bad address
2015-11-17T21:09:00.826524Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x104, 0x4) failed: Bad address
2015-11-17T21:09:00.826574Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x108, 0x4) failed: Bad address
2015-11-17T21:09:00.826625Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x10c, 0x4) failed: Bad address
2015-11-17T21:09:00.826667Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x110, 0x4) failed: Bad address
2015-11-17T21:09:00.826734Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x114, 0x4) failed: Bad address
2015-11-17T21:09:00.826784Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x118, 0x4) failed: Bad address
2015-11-17T21:09:00.826823Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x128, 0x4) failed: Bad address
2015-11-17T21:09:00.826904Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x12c, 0x4) failed: Bad address
2015-11-17T21:09:00.827465Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x134, 0x4) failed: Bad address
2015-11-17T21:09:00.827517Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x144, 0x4) failed: Bad address
2015-11-17T21:09:00.827572Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x14c, 0x4) failed: Bad address
2015-11-17T21:09:00.827604Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x150, 0x4) failed: Bad address
2015-11-17T21:09:00.828283Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x154, 0x4) failed: Bad address
2015-11-17T21:09:00.829490Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x15c, 0x4) failed: Bad address
2015-11-17T21:09:00.829551Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x160, 0x4) failed: Bad address
2015-11-17T21:09:00.829589Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x164, 0x4) failed: Bad address
2015-11-17T21:09:00.829793Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x250, 0x4) failed: Bad address
2015-11-17T21:09:00.829827Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x254, 0x4) failed: Bad address
2015-11-17T21:09:00.829884Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x258, 0x4) failed: Bad address
2015-11-17T21:09:00.829917Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x25c, 0x4) failed: Bad address
2015-11-17T21:09:00.829971Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x260, 0x4) failed: Bad address
2015-11-17T21:09:00.830038Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x264, 0x4) failed: Bad address
2015-11-17T21:09:00.830110Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x418, 0x4) failed: Bad address
2015-11-17T21:09:00.830162Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x41c, 0x4) failed: Bad address
2015-11-17T21:09:00.830215Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x420, 0x4) failed: Bad address
2015-11-17T21:09:00.830284Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x424, 0x4) failed: Bad address
2015-11-17T21:09:00.830340Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x428, 0x4) failed: Bad address
2015-11-17T21:09:00.830397Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x42c, 0x4) failed: Bad address
2015-11-17T21:09:00.830487Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x430, 0x4) failed: Bad address
2015-11-17T21:09:00.830659Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x434, 0x4) failed: Bad address
2015-11-17T21:09:00.830704Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x438, 0x4) failed: Bad address
2015-11-17T21:09:00.830764Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x43c, 0x4) failed: Bad address
2015-11-17T21:09:00.834633Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x500, 0x4) failed: Bad address
2015-11-17T21:09:00.834673Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x504, 0x4) failed: Bad address
2015-11-17T21:09:00.834707Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x508, 0x4) failed: Bad address
2015-11-17T21:09:00.834737Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x50c, 0x4) failed: Bad address
2015-11-17T21:09:00.834768Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x510, 0x4) failed: Bad address
2015-11-17T21:09:00.834796Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x514, 0x4) failed: Bad address
2015-11-17T21:09:00.834825Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x51c, 0x4) failed: Bad address
2015-11-17T21:09:00.834854Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x600, 0x4) failed: Bad address
2015-11-17T21:09:00.834883Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x604, 0x4) failed: Bad address
2015-11-17T21:09:00.834912Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x608, 0x4) failed: Bad address
2015-11-17T21:09:00.834941Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x60c, 0x4) failed: Bad address
2015-11-17T21:09:00.834970Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x610, 0x4) failed: Bad address
2015-11-17T21:09:00.834999Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x624, 0x4) failed: Bad address
2015-11-17T21:09:00.835028Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x62c, 0x4) failed: Bad address
2015-11-17T21:09:00.835056Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x634, 0x4) failed: Bad address
2015-11-17T21:09:00.835085Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x63c, 0x4) failed: Bad address
2015-11-17T21:09:00.835114Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x658, 0x4) failed: Bad address
2015-11-17T21:09:00.835143Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x660, 0x4) failed: Bad address
2015-11-17T21:09:00.835172Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x700, 0x4) failed: Bad address
2015-11-17T21:09:00.835200Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x704, 0x4) failed: Bad address
2015-11-17T21:09:00.835229Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x708, 0x4) failed: Bad address
2015-11-17T21:09:00.835375Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x70c, 0x4) failed: Bad address
2015-11-17T21:09:00.836711Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x710, 0x4) failed: Bad address
2015-11-17T21:09:00.836800Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x714, 0x4) failed: Bad address
2015-11-17T21:09:00.836858Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x718, 0x4) failed: Bad address
2015-11-17T21:09:00.837095Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x71c, 0x4) failed: Bad address
2015-11-17T21:09:00.837205Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x720, 0x4) failed: Bad address
2015-11-17T21:09:00.837349Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x724, 0x4) failed: Bad address
2015-11-17T21:09:00.837417Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x728, 0x4) failed: Bad address
2015-11-17T21:09:00.837598Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x72c, 0x4) failed: Bad address
2015-11-17T21:09:00.837690Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x800, 0x4) failed: Bad address
2015-11-17T21:09:00.837770Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x804, 0x4) failed: Bad address
2015-11-17T21:09:00.837832Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x808, 0x4) failed: Bad address
2015-11-17T21:09:00.837904Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x810, 0x4) failed: Bad address
2015-11-17T21:09:00.837992Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x81c, 0x4) failed: Bad address
2015-11-17T21:09:00.838081Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x820, 0x4) failed: Bad address
2015-11-17T21:09:00.838170Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x824, 0x4) failed: Bad address
2015-11-17T21:09:00.838226Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x828, 0x4) failed: Bad address
2015-11-17T21:09:00.838342Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x82c, 0x4) failed: Bad address
2015-11-17T21:09:00.838389Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x830, 0x4) failed: Bad address
2015-11-17T21:09:00.838435Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x838, 0x4) failed: Bad address
2015-11-17T21:09:00.838492Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x83c, 0x4) failed: Bad address
2015-11-17T21:09:00.838536Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x840, 0x4) failed: Bad address
2015-11-17T21:09:00.838580Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x844, 0x4) failed: Bad address
2015-11-17T21:09:00.838623Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x848, 0x4) failed: Bad address
2015-11-17T21:09:00.838678Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x84c, 0x4) failed: Bad address
2015-11-17T21:09:00.838722Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x854, 0x4) failed: Bad address
2015-11-17T21:09:00.838791Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x858, 0x4) failed: Bad address
2015-11-17T21:09:00.838855Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x85c, 0x4) failed: Bad address
2015-11-17T21:09:00.838921Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x860, 0x4) failed: Bad address
2015-11-17T21:09:00.838984Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x864, 0x4) failed: Bad address
2015-11-17T21:09:00.839052Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x868, 0x4) failed: Bad address
2015-11-17T21:09:00.839108Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x86c, 0x4) failed: Bad address
2015-11-17T21:09:00.839636Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x870, 0x4) failed: Bad address
2015-11-17T21:09:00.839694Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x874, 0x4) failed: Bad address
2015-11-17T21:09:00.840008Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x878, 0x4) failed: Bad address
2015-11-17T21:09:00.840125Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x87c, 0x4) failed: Bad address
2015-11-17T21:09:00.840165Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x880, 0x4) failed: Bad address
2015-11-17T21:09:00.840199Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x884, 0x4) failed: Bad address
2015-11-17T21:09:00.840232Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x888, 0x4) failed: Bad address
2015-11-17T21:09:00.840427Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x88c, 0x4) failed: Bad address
2015-11-17T21:09:00.840476Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x890, 0x4) failed: Bad address
2015-11-17T21:09:00.840528Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x894, 0x4) failed: Bad address
2015-11-17T21:09:00.840578Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x898, 0x4) failed: Bad address
2015-11-17T21:09:00.840613Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x89c, 0x4) failed: Bad address
2015-11-17T21:09:00.840725Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8a0, 0x4) failed: Bad address
2015-11-17T21:09:00.840926Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8a8, 0x4) failed: Bad address
2015-11-17T21:09:00.840973Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8ac, 0x4) failed: Bad address
2015-11-17T21:09:00.841095Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8b4, 0x4) failed: Bad address
2015-11-17T21:09:00.841140Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8b8, 0x4) failed: Bad address
2015-11-17T21:09:00.841173Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8bc, 0x4) failed: Bad address
2015-11-17T21:09:00.841206Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8c4, 0x4) failed: Bad address
2015-11-17T21:09:00.841248Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8cc, 0x4) failed: Bad address
2015-11-17T21:09:00.841282Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8d0, 0x4) failed: Bad address
2015-11-17T21:09:00.841323Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8d8, 0x4) failed: Bad address
2015-11-17T21:09:00.841365Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8dc, 0x4) failed: Bad address
2015-11-17T21:09:00.841406Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x8e4, 0x4) failed: Bad address
2015-11-17T21:09:00.841449Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x900, 0x4) failed: Bad address
2015-11-17T21:09:00.841491Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x904, 0x4) failed: Bad address
2015-11-17T21:09:00.841534Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x908, 0x4) failed: Bad address
2015-11-17T21:09:00.841569Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x90c, 0x4) failed: Bad address
2015-11-17T21:09:00.841610Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x910, 0x4) failed: Bad address
2015-11-17T21:09:00.841651Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x914, 0x4) failed: Bad address
2015-11-17T21:09:00.841733Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x918, 0x4) failed: Bad address
2015-11-17T21:09:00.841769Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x91c, 0x4) failed: Bad address
2015-11-17T21:09:00.841802Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x920, 0x4) failed: Bad address
2015-11-17T21:09:00.841834Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x924, 0x4) failed: Bad address
2015-11-17T21:09:00.841865Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x928, 0x4) failed: Bad address
2015-11-17T21:09:00.841898Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x92c, 0x4) failed: Bad address
2015-11-17T21:09:00.841929Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x930, 0x4) failed: Bad address
2015-11-17T21:09:00.841961Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x934, 0x4) failed: Bad address
2015-11-17T21:09:00.841993Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x938, 0x4) failed: Bad address
2015-11-17T21:09:00.842025Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x93c, 0x4) failed: Bad address
2015-11-17T21:09:00.842057Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x940, 0x4) failed: Bad address
2015-11-17T21:09:00.842089Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x944, 0x4) failed: Bad address
2015-11-17T21:09:00.842120Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x948, 0x4) failed: Bad address
2015-11-17T21:09:00.842152Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x94c, 0x4) failed: Bad address
2015-11-17T21:09:00.842184Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x950, 0x4) failed: Bad address
2015-11-17T21:09:00.842217Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x954, 0x4) failed: Bad address
2015-11-17T21:09:00.842421Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x958, 0x4) failed: Bad address
2015-11-17T21:09:00.842453Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x95c, 0x4) failed: Bad address
2015-11-17T21:09:00.842501Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x960, 0x4) failed: Bad address
2015-11-17T21:09:00.842531Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x964, 0x4) failed: Bad address
2015-11-17T21:09:00.842575Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x968, 0x4) failed: Bad address
2015-11-17T21:09:00.842606Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x96c, 0x4) failed: Bad address
2015-11-17T21:09:00.842635Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x970, 0x4) failed: Bad address
2015-11-17T21:09:00.842662Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x974, 0x4) failed: Bad address
2015-11-17T21:09:00.842690Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x978, 0x4) failed: Bad address
2015-11-17T21:09:00.842718Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x97c, 0x4) failed: Bad address
2015-11-17T21:09:00.842746Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x980, 0x4) failed: Bad address
2015-11-17T21:09:00.842774Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x984, 0x4) failed: Bad address
2015-11-17T21:09:00.842801Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x988, 0x4) failed: Bad address
2015-11-17T21:09:00.842830Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x98c, 0x4) failed: Bad address
2015-11-17T21:09:00.842858Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa00, 0x4) failed: Bad address
2015-11-17T21:09:00.842885Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa04, 0x4) failed: Bad address
2015-11-17T21:09:00.842913Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa0c, 0x4) failed: Bad address
2015-11-17T21:09:00.842941Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa10, 0x4) failed: Bad address
2015-11-17T21:09:00.842969Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa14, 0x4) failed: Bad address
2015-11-17T21:09:00.842997Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa18, 0x4) failed: Bad address
2015-11-17T21:09:00.843024Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa1c, 0x4) failed: Bad address
2015-11-17T21:09:00.843052Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa20, 0x4) failed: Bad address
2015-11-17T21:09:00.843080Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa24, 0x4) failed: Bad address
2015-11-17T21:09:00.843107Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa28, 0x4) failed: Bad address
2015-11-17T21:09:00.843135Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa2c, 0x4) failed: Bad address
2015-11-17T21:09:00.843163Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa30, 0x4) failed: Bad address
2015-11-17T21:09:00.843190Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa34, 0x4) failed: Bad address
2015-11-17T21:09:00.843218Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa38, 0x4) failed: Bad address
2015-11-17T21:09:00.843257Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa3c, 0x4) failed: Bad address
2015-11-17T21:09:00.843286Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa40, 0x4) failed: Bad address
2015-11-17T21:09:00.843314Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa44, 0x4) failed: Bad address
2015-11-17T21:09:00.843342Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa48, 0x4) failed: Bad address
2015-11-17T21:09:00.843370Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa4c, 0x4) failed: Bad address
2015-11-17T21:09:00.843397Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa50, 0x4) failed: Bad address
2015-11-17T21:09:00.843425Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa54, 0x4) failed: Bad address
2015-11-17T21:09:00.843453Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa58, 0x4) failed: Bad address
2015-11-17T21:09:00.843481Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa60, 0x4) failed: Bad address
2015-11-17T21:09:00.843520Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa64, 0x4) failed: Bad address
2015-11-17T21:09:00.843551Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0xa68, 0x4) failed: Bad address
2015-11-17T21:09:00.843620Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x144, 0x4) failed: Bad address
2015-11-17T21:09:00.843674Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x144, 0xffffff30, 0x4) failed: Bad 
address
2015-11-17T21:09:00.843705Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x658, 0x4) failed: Bad address
2015-11-17T21:09:00.843735Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x658, 0xfffffff2, 0x4) failed: Bad 
address
2015-11-17T21:09:00.888117Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x624, 0x64ffe5e0, 0x4) failed: Bad 
address
2015-11-17T21:09:00.888174Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x62c, 0xb6e22085, 0x4) failed: Bad 
address
2015-11-17T21:09:00.888290Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x634, 0xbbde72f5, 0x4) failed: Bad 
address
2015-11-17T21:09:00.888385Z qemu-system-x86_64: 
vfio_pci_write_config(0000:02:00.0, 0x63c, 0x19980e3a, 0x4) failed: Bad 
address
2015-11-17T21:09:00.888434Z qemu-system-x86_64: 
vfio_pci_read_config(0000:02:00.0, 0x41c, 0x4) failed: Bad address


My hardware (as you can see, the 970 is claimed by vfio-pci):

[root at localhost Documents]# lspci -v
00:00.0 Host bridge: Intel Corporation Core Processor DMI (rev 11)
	Subsystem: Intel Corporation Device 0000
	Flags: fast devsel
	Capabilities: [40] #00 [0000]

00:03.0 PCI bridge: Intel Corporation Core Processor PCI Express Root 
Port 1 (rev 11) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 00004000-00004fff
	Memory behind bridge: f4000000-f50fffff
	Prefetchable memory behind bridge: 00000000c0000000-00000000d1ffffff
	Capabilities: [40] Subsystem: Intel Corporation Device 0000
	Capabilities: [60] MSI: Enable- Count=1/2 Maskable+ 64bit-
	Capabilities: [90] Express Root Port (Slot+), MSI 00
	Capabilities: [e0] Power Management version 3
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:05.0 PCI bridge: Intel Corporation Core Processor PCI Express Root 
Port 3 (rev 11) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 00003000-00003fff
	Memory behind bridge: f2000000-f30fffff
	Prefetchable memory behind bridge: 00000000e0000000-00000000f1ffffff
	Capabilities: [40] Subsystem: Intel Corporation Device 0000
	Capabilities: [60] MSI: Enable- Count=1/2 Maskable+ 64bit-
	Capabilities: [90] Express Root Port (Slot+), MSI 00
	Capabilities: [e0] Power Management version 3
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:08.0 System peripheral: Intel Corporation Core Processor System 
Management Registers (rev 11)
	Flags: fast devsel
	Capabilities: [40] Express Root Complex Integrated Endpoint, MSI 00

00:08.1 System peripheral: Intel Corporation Core Processor Semaphore 
and Scratchpad Registers (rev 11)
	Flags: fast devsel
	Capabilities: [40] Express Root Complex Integrated Endpoint, MSI 00

00:08.2 System peripheral: Intel Corporation Core Processor System 
Control and Status Registers (rev 11)
	Flags: fast devsel
	Capabilities: [40] Express Root Complex Integrated Endpoint, MSI 00

00:08.3 System peripheral: Intel Corporation Core Processor 
Miscellaneous Registers (rev 11)
	Flags: fast devsel

00:10.0 System peripheral: Intel Corporation Core Processor QPI Link 
(rev 11)
	Flags: fast devsel

00:10.1 System peripheral: Intel Corporation Core Processor QPI Routing 
and Protocol Registers (rev 11)
	Flags: fast devsel

00:19.0 Ethernet controller: Intel Corporation 82578DC Gigabit Network 
Connection (rev 05)
	DeviceName: Intel(R) 82578DC Gigabit Network Connection
	Subsystem: Intel Corporation Device 0000
	Flags: bus master, fast devsel, latency 0, IRQ 30
	Memory at f5300000 (32-bit, non-prefetchable) [size=128K]
	Memory at f5324000 (32-bit, non-prefetchable) [size=4K]
	I/O ports at 5020 [size=32]
	Capabilities: [c8] Power Management version 2
	Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [e0] PCI Advanced Features
	Kernel driver in use: e1000e
	Kernel modules: e1000e

00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset 
USB2 Enhanced Host Controller (rev 05) (prog-if 20 [EHCI])
	Subsystem: Intel Corporation Device 424b
	Flags: bus master, medium devsel, latency 0, IRQ 16
	Memory at f5402000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [50] Power Management version 2
	Capabilities: [58] Debug port: BAR=1 offset=00a0
	Capabilities: [98] PCI Advanced Features
	Kernel driver in use: ehci-pci

00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset 
High Definition Audio (rev 05)
	DeviceName: Intel(R) High Definition Audio Device
	Subsystem: Intel Corporation Device 0031
	Flags: bus master, fast devsel, latency 0, IRQ 32
	Memory at f5320000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
	Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI 
Express Root Port 1 (rev 05) (prog-if 00 [Normal decode])
	Flags: fast devsel, IRQ 17
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	I/O behind bridge: 00006000-00006fff
	Memory behind bridge: d2000000-d21fffff
	Prefetchable memory behind bridge: 00000000d2200000-00000000d23fffff
	Capabilities: [40] Express Root Port (Slot+), MSI 00
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: Intel Corporation Device 424b
	Capabilities: [a0] Power Management version 2
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:1c.7 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI 
Express Root Port 8 (rev 05) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 19
	Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
	I/O behind bridge: 00002000-00002fff
	Memory behind bridge: f5200000-f52fffff
	Capabilities: [40] Express Root Port (Slot-), MSI 00
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: Intel Corporation Device 424b
	Capabilities: [a0] Power Management version 2
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset 
USB2 Enhanced Host Controller (rev 05) (prog-if 20 [EHCI])
	Subsystem: Intel Corporation Device 424b
	Flags: bus master, medium devsel, latency 0, IRQ 23
	Memory at f5325000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [50] Power Management version 2
	Capabilities: [58] Debug port: BAR=1 offset=00a0
	Capabilities: [98] PCI Advanced Features
	Kernel driver in use: ehci-pci

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a5) (prog-if 
01 [Subtractive decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=05, subordinate=05, sec-latency=32
	I/O behind bridge: 00001000-00001fff
	Memory behind bridge: f5100000-f51fffff
	Capabilities: [50] Subsystem: Intel Corporation Device 424b

00:1f.0 ISA bridge: Intel Corporation P55 Chipset LPC Interface 
Controller (rev 05)
	Subsystem: Intel Corporation Device 424b
	Flags: bus master, medium devsel, latency 0
	Capabilities: [e0] Vendor Specific Information: Len=10 <?>
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich

00:1f.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 4 
port SATA IDE Controller (rev 05) (prog-if 8f [Master SecP SecO PriP 
PriO])
	DeviceName: Intel(R) SATA Controller 0
	Subsystem: Intel Corporation Device 424b
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
	I/O ports at 5098 [size=8]
	I/O ports at 50ac [size=4]
	I/O ports at 5090 [size=8]
	I/O ports at 50a8 [size=4]
	I/O ports at 5070 [size=16]
	I/O ports at 5060 [size=16]
	Capabilities: [70] Power Management version 3
	Capabilities: [b0] PCI Advanced Features
	Kernel driver in use: ata_piix
	Kernel modules: pata_acpi, ata_generic

00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus 
Controller (rev 05)
	Subsystem: Intel Corporation Device 424b
	Flags: medium devsel, IRQ 18
	Memory at f5403000 (64-bit, non-prefetchable) [size=256]
	I/O ports at 5000 [size=32]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801

00:1f.5 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 2 
port SATA IDE Controller (rev 05) (prog-if 85 [Master SecO PriO])
	DeviceName: Intel(R) SATA Controller 1
	Subsystem: Intel Corporation Device 424b
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
	I/O ports at 5088 [size=8]
	I/O ports at 50a4 [size=4]
	I/O ports at 5080 [size=8]
	I/O ports at 50a0 [size=4]
	I/O ports at 5050 [size=16]
	I/O ports at 5040 [size=16]
	Capabilities: [70] Power Management version 3
	Capabilities: [b0] PCI Advanced Features
	Kernel driver in use: ata_piix
	Kernel modules: pata_acpi, ata_generic

01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 
210] (rev a2) (prog-if 00 [VGA controller])
	Subsystem: Micro-Star International Co., Ltd. [MSI] N210 [Geforce 210] 
PCIe graphics adapter
	Flags: bus master, fast devsel, latency 0, IRQ 31
	Memory at f4000000 (32-bit, non-prefetchable) [size=16M]
	Memory at c0000000 (64-bit, prefetchable) [size=256M]
	Memory at d0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 4000 [size=128]
	Expansion ROM at f5080000 [disabled] [size=512K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Endpoint, MSI 00
	Capabilities: [b4] Vendor Specific Information: Len=14 <?>
	Kernel driver in use: nouveau
	Kernel modules: nouveau

01:00.1 Audio device: NVIDIA Corporation High Definition Audio 
Controller (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] N210 [Geforce 210] 
PCIe graphics adapter
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Memory at f5000000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Endpoint, MSI 00
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

02:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 
970] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3160
	Flags: fast devsel, IRQ 16
	Memory at f2000000 (32-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 3000 [size=128]
	Expansion ROM at f3080000 [disabled] [size=512K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Legacy Endpoint, MSI 00
	Kernel driver in use: vfio-pci
	Kernel modules: nouveau

02:00.1 Audio device: NVIDIA Corporation GM204 High Definition Audio 
Controller (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3160
	Flags: fast devsel, IRQ 17
	Memory at f3000000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Endpoint, MSI 00
	Kernel driver in use: vfio-pci
	Kernel modules: snd_hda_intel

04:00.0 IDE interface: Marvell Technology Group Ltd. 88SE6145 SATA II 
PCI-E controller (rev a1) (prog-if 8f [Master SecP SecO PriP PriO])
	Subsystem: Intel Corporation Device 424b
	Flags: bus master, fast devsel, latency 0, IRQ 19
	I/O ports at 2018 [size=8]
	I/O ports at 2024 [size=4]
	I/O ports at 2010 [size=8]
	I/O ports at 2020 [size=4]
	I/O ports at 2000 [size=16]
	Memory at f5200000 (32-bit, non-prefetchable) [size=1K]
	Expansion ROM at f5240000 [disabled] [size=256K]
	Capabilities: [48] Power Management version 2
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [e0] Express Legacy Endpoint, MSI 00
	Kernel driver in use: pata_marvell
	Kernel modules: pata_marvell, pata_acpi, ata_generic

05:00.0 Multimedia audio controller: Creative Labs CA0106 Soundblaster
	Subsystem: Creative Labs Device 1004
	Flags: bus master, medium devsel, latency 32, IRQ 21
	I/O ports at 1000 [size=32]
	Capabilities: [dc] Power Management version 2
	Kernel driver in use: snd_ca0106
	Kernel modules: snd_ca0106

05:03.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22A 
IEEE-1394a-2000 Controller (PHY/Link) [iOHCI-Lynx] (prog-if 10 [OHCI])
	Subsystem: Intel Corporation Device 424b
	Flags: bus master, medium devsel, latency 32, IRQ 19
	Memory at f5104000 (32-bit, non-prefetchable) [size=2K]
	Memory at f5100000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: firewire_ohci
	Kernel modules: firewire_ohci





Dmesg log:

[root at localhost Documents]# dmesg | grep DMAR
[    0.000000] ACPI: DMAR 0x00000000BF7E5000 000080 (v01 INTEL  KBIBX10J 
00001730 MSFT 0100000D)
[    0.000000] DMAR: IOMMU enabled
[    0.036016] DMAR: Host address width 36
[    0.036018] DMAR: DRHD base: 0x000000fe710000 flags: 0x1
[    0.036024] DMAR: dmar0: reg_base_addr fe710000 ver 1:0 cap 
c90780106f0462 ecap f020a2
[    0.036026] DMAR: RMRR base: 0x000000bf59b000 end: 0x000000bf59bfff
[    0.036027] DMAR: RMRR base: 0x000000bf598000 end: 0x000000bf598fff
[    0.614894] DMAR: No ATSR found
[    0.615031] DMAR: dmar0: Using Queued invalidation
[    0.615043] DMAR: Setting RMRR:
[    0.615061] DMAR: Setting identity map for device 0000:00:1a.0 
[0xbf598000 - 0xbf598fff]
[    0.615088] DMAR: Setting identity map for device 0000:00:1d.0 
[0xbf59b000 - 0xbf59bfff]
[    0.615104] DMAR: Prepare 0-16MiB unity mapping for LPC
[    0.615114] DMAR: Setting identity map for device 0000:00:1f.0 [0x0 - 
0xffffff]
[    0.615235] DMAR: Intel(R) Virtualization Technology for Directed I/O


My current libvirt config:

[root at localhost Documents]# virsh dumpxml win8
<domain type='kvm'>
   <name>win8</name>
   <uuid>e0e546b9-6a9a-445e-826e-3804ad554b02</uuid>
   <memory unit='KiB'>8388608</memory>
   <currentMemory unit='KiB'>8388608</currentMemory>
   <vcpu placement='static'>6</vcpu>
   <os>
     <type arch='x86_64' machine='pc-q35-2.4'>hvm</type>
     <loader readonly='yes' 
type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
     <nvram>/var/lib/libvirt/qemu/nvram/win8_VARS.fd</nvram>
   </os>
   <features>
     <acpi/>
     <apic/>
     <pae/>
     <kvm>
       <hidden state='on'/>
     </kvm>
     <vmport state='off'/>
   </features>
   <cpu mode='custom' match='exact'>
     <model fallback='allow'>Nehalem</model>
   </cpu>
   <clock offset='localtime'>
     <timer name='rtc' tickpolicy='catchup'/>
     <timer name='pit' tickpolicy='delay'/>
     <timer name='hpet' present='no'/>
   </clock>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
   <on_crash>restart</on_crash>
   <pm>
     <suspend-to-mem enabled='no'/>
     <suspend-to-disk enabled='no'/>
   </pm>
   <devices>
     <emulator>/usr/bin/qemu-kvm</emulator>
     <disk type='file' device='cdrom'>
       <driver name='qemu' type='raw'/>
       <source file='/home/ronnie/Downloads/windows_8_pro_x64.iso'/>
       <target dev='sda' bus='sata'/>
       <readonly/>
       <boot order='2'/>
       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
     </disk>
     <disk type='file' device='disk'>
       <driver name='qemu' type='raw'/>
       <source file='/home/ronnie/Downloads/win8.img'/>
       <target dev='sdb' bus='sata'/>
       <boot order='1'/>
       <address type='drive' controller='0' bus='0' target='0' unit='1'/>
     </disk>
     <disk type='file' device='cdrom'>
       <driver name='qemu' type='raw'/>
       <source file='/usr/share/virtio-win/virtio-win-0.1.102.iso'/>
       <target dev='sdc' bus='sata'/>
       <readonly/>
       <address type='drive' controller='0' bus='0' target='0' unit='2'/>
     </disk>
     <controller type='usb' index='0' model='ich9-ehci1'>
       <address type='pci' domain='0x0000' bus='0x02' slot='0x03' 
function='0x7'/>
     </controller>
     <controller type='usb' index='0' model='ich9-uhci1'>
       <master startport='0'/>
       <address type='pci' domain='0x0000' bus='0x02' slot='0x03' 
function='0x0' multifunction='on'/>
     </controller>
     <controller type='usb' index='0' model='ich9-uhci2'>
       <master startport='2'/>
       <address type='pci' domain='0x0000' bus='0x02' slot='0x03' 
function='0x1'/>
     </controller>
     <controller type='usb' index='0' model='ich9-uhci3'>
       <master startport='4'/>
       <address type='pci' domain='0x0000' bus='0x02' slot='0x03' 
function='0x2'/>
     </controller>
     <controller type='sata' index='0'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' 
function='0x2'/>
     </controller>
     <controller type='pci' index='0' model='pcie-root'/>
     <controller type='pci' index='1' model='dmi-to-pci-bridge'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' 
function='0x0'/>
     </controller>
     <controller type='pci' index='2' model='pci-bridge'>
       <address type='pci' domain='0x0000' bus='0x01' slot='0x01' 
function='0x0'/>
     </controller>
     <interface type='network'>
       <mac address='52:54:00:33:ec:2b'/>
       <source network='default'/>
       <model type='rtl8139'/>
       <address type='pci' domain='0x0000' bus='0x02' slot='0x01' 
function='0x0'/>
     </interface>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <graphics type='spice' autoport='yes'/>
     <video>
       <model type='qxl' ram='65536' vram='65536' vgamem='16384' 
heads='1'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x0'/>
     </video>
     <hostdev mode='subsystem' type='pci' managed='yes'>
       <source>
         <address domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
       </source>
       <rom bar='on'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' 
function='0x0' multifunction='on'/>
     </hostdev>
     <hostdev mode='subsystem' type='pci' managed='yes'>
       <source>
         <address domain='0x0000' bus='0x02' slot='0x00' function='0x1'/>
       </source>
       <rom bar='on'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' 
function='0x1'/>
     </hostdev>
     <hostdev mode='subsystem' type='usb' managed='yes'>
       <source>
         <vendor id='0x046d'/>
         <product id='0xc32b'/>
       </source>
     </hostdev>
     <memballoon model='virtio'>
       <address type='pci' domain='0x0000' bus='0x02' slot='0x08' 
function='0x0'/>
     </memballoon>
   </devices>
</domain>


The dracut and modprobe configs:
[root at localhost Documents]# cat /etc/dracut.conf.d/vfio.conf
add_drivers+="vfio vfio_iommu_type1 vfio-pci vfio_virqfd"
install_items+="/sbin/vfio_claim.sh"

[root at localhost Documents]# cat /etc/modprobe.d/vfio.conf
install vfio-pci /sbin/vfio_claim.sh
options vfio-pci disable_vga=1
options vfio_iommu_type1 allow_unsafe_interrupts=1

[root at localhost Documents]# cat /sbin/vfio_claim.sh
#!/bin/sh

DEVS="0000:02:00.0 0000:02:00.1"

for DEV in $DEVS; do
     echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override
done

modprobe -i vfio-pci



I'm currently running Fedora 23. I've tried kernels 4.0.4 (on fedora 
22), 4.2.5 (both 22 and 23) and the 4.3.0 mainline version. I've tried 
both the i440fx and q35 chipsets. In the config file above I've tried to 
move the graphics card to an PCIe slot, but this didn't work either. It 
always ends in the errors above.

The weird thing is that while everything crashes with my 970, using a 
spare radeon HD 5870 instead of the 970 worked just fine after adding 
ignore_msrs=1.

Currently I'm at a total loss. Does anyone have an idea if this is even 
possible?










More information about the vfio-users mailing list