{"action":"created","issue":{"url":"https://api.github.com/repos/RadeonOpenCompute/ROCK-Kernel-Driver/issues/26","repository_url":"https://api.github.com/repos/RadeonOpenCompute/ROCK-Kernel-Driver","labels_url":"https://api.github.com/repos/RadeonOpenCompute/ROCK-Kernel-Driver/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/RadeonOpenCompute/ROCK-Kernel-Driver/issues/26/comments","events_url":"https://api.github.com/repos/RadeonOpenCompute/ROCK-Kernel-Driver/issues/26/events","html_url":"https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/issues/26","id":241431735,"number":26,"title":"ROC with KVM","user":{"login":"insujang","id":4559373,"avatar_url":"https://avatars3.githubusercontent.com/u/4559373?v=3","gravatar_id":"","url":"https://api.github.com/users/insujang","html_url":"https://github.com/insujang","followers_url":"https://api.github.com/users/insujang/followers","following_url":"https://api.github.com/users/insujang/following{/other_user}","gists_url":"https://api.github.com/users/insujang/gists{/gist_id}","starred_url":"https://api.github.com/users/insujang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insujang/subscriptions","organizations_url":"https://api.github.com/users/insujang/orgs","repos_url":"https://api.github.com/users/insujang/repos","events_url":"https://api.github.com/users/insujang/events{/privacy}","received_events_url":"https://api.github.com/users/insujang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-07-08T07:00:34Z","updated_at":"2017-07-08T14:10:57Z","closed_at":"2017-07-08T12:36:25Z","body":"Created a new issue from [here](https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/issues/25), as the topic is slightly different.\r\n\r\nI am trying to use ROC on a virtualized guest machine.\r\n\r\nMy machine is\r\nCPU: Intel Core i7 6700\r\nGPU: AMD Radeon RX 480\r\nwhich satisfies AMD ROC requirements (PCIe 3.0, AtomicOps), and it actually works on the host.\r\n\r\nin [here](https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/open-source-amd-linux/911118-radeon-open-compute-1-3-platform-brings-polaris-other-features?p=911126#post911126), ROCm 1.3 officially announced that it supports kvm passthrough-ed virtual machine. However, in my setup, it is impossible due to the following error when I run the sample on the guest machine.\r\n\r\n```\r\nkfd kfd: skipped device 1002:67df, PCI rejects atomics\r\n```\r\n\r\nVirtualization setup is as follows.\r\nHypervisor: QEMU 2.7.92 + KVM (kernel 4.11)\r\nQEMU script:\r\n```\r\nsudo vfio-bind 0000:01:00.0 0000:01:00.1 &&\r\n\r\nsudo qemu-system-x86_64 -enable-kvm -cpu host,kvm=off \\\r\n-m 8192 -smp 8 -M q35 \\\r\n-vga none -nographic \\\r\n-usb \\\r\n-device usb-host,hostbus=1,hostaddr=2 \\\r\n-device vfio-pci,host=01:00.0,multifunction=on,x-vga=on \\\r\n-device vfio-pci,host=01:00.1 \\\r\n-drive if=pflash,format=raw,readonly,file=OVMF_CODE.fd \\\r\n-drive if=pflash,format=raw,file=OVMF_VARS.fd \\\r\n-hda ubuntu.qcow2 \\\r\n-net nic \\\r\n-net user,hostfwd=tcp::54321-:22\r\n```\r\n\r\nI didn't use ioh3420 virtualized pcie controller as if there is in the system, both guest machine and host machine freeze during loading amdgpu driver.\r\n\r\nBut AMD says it officially support virtualized environment, could you tell me more detailed setup that I missed?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/RadeonOpenCompute/ROCK-Kernel-Driver/issues/comments/313857976","html_url":"https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/issues/26#issuecomment-313857976","issue_url":"https://api.github.com/repos/RadeonOpenCompute/ROCK-Kernel-Driver/issues/26","id":313857976,"user":{"login":"insujang","id":4559373,"avatar_url":"https://avatars3.githubusercontent.com/u/4559373?v=3","gravatar_id":"","url":"https://api.github.com/users/insujang","html_url":"https://github.com/insujang","followers_url":"https://api.github.com/users/insujang/followers","following_url":"https://api.github.com/users/insujang/following{/other_user}","gists_url":"https://api.github.com/users/insujang/gists{/gist_id}","starred_url":"https://api.github.com/users/insujang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insujang/subscriptions","organizations_url":"https://api.github.com/users/insujang/orgs","repos_url":"https://api.github.com/users/insujang/repos","events_url":"https://api.github.com/users/insujang/events{/privacy}","received_events_url":"https://api.github.com/users/insujang/received_events","type":"User","site_admin":false},"created_at":"2017-07-08T14:10:56Z","updated_at":"2017-07-08T14:10:56Z","body":"@gstoner \r\nThank you for your detailed and kind explanation!!\r\nLet me try it and leave a result in here.\r\n\r\nThank you!"}}
{"actor":{"display_login":"insujang"}}