{"action":"created","issue":{"url":"https://api.github.com/repos/spdk/spdk/issues/432","repository_url":"https://api.github.com/repos/spdk/spdk","labels_url":"https://api.github.com/repos/spdk/spdk/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/spdk/spdk/issues/432/comments","events_url":"https://api.github.com/repos/spdk/spdk/issues/432/events","html_url":"https://github.com/spdk/spdk/issues/432","id":358221872,"node_id":"MDU6SXNzdWUzNTgyMjE4NzI=","number":432,"title":"vhost-user-scsi-pci is unusable with Windows 10","user":{"login":"blu3bird","id":1130532,"node_id":"MDQ6VXNlcjExMzA1MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1130532?v=4","gravatar_id":"","url":"https://api.github.com/users/blu3bird","html_url":"https://github.com/blu3bird","followers_url":"https://api.github.com/users/blu3bird/followers","following_url":"https://api.github.com/users/blu3bird/following{/other_user}","gists_url":"https://api.github.com/users/blu3bird/gists{/gist_id}","starred_url":"https://api.github.com/users/blu3bird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blu3bird/subscriptions","organizations_url":"https://api.github.com/users/blu3bird/orgs","repos_url":"https://api.github.com/users/blu3bird/repos","events_url":"https://api.github.com/users/blu3bird/events{/privacy}","received_events_url":"https://api.github.com/users/blu3bird/received_events","type":"User","site_admin":false},"labels":[{"id":235898962,"node_id":"MDU6TGFiZWwyMzU4OTg5NjI=","url":"https://api.github.com/repos/spdk/spdk/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"pelplinski","id":24698465,"node_id":"MDQ6VXNlcjI0Njk4NDY1","avatar_url":"https://avatars2.githubusercontent.com/u/24698465?v=4","gravatar_id":"","url":"https://api.github.com/users/pelplinski","html_url":"https://github.com/pelplinski","followers_url":"https://api.github.com/users/pelplinski/followers","following_url":"https://api.github.com/users/pelplinski/following{/other_user}","gists_url":"https://api.github.com/users/pelplinski/gists{/gist_id}","starred_url":"https://api.github.com/users/pelplinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelplinski/subscriptions","organizations_url":"https://api.github.com/users/pelplinski/orgs","repos_url":"https://api.github.com/users/pelplinski/repos","events_url":"https://api.github.com/users/pelplinski/events{/privacy}","received_events_url":"https://api.github.com/users/pelplinski/received_events","type":"User","site_admin":false},"assignees":[{"login":"pelplinski","id":24698465,"node_id":"MDQ6VXNlcjI0Njk4NDY1","avatar_url":"https://avatars2.githubusercontent.com/u/24698465?v=4","gravatar_id":"","url":"https://api.github.com/users/pelplinski","html_url":"https://github.com/pelplinski","followers_url":"https://api.github.com/users/pelplinski/followers","following_url":"https://api.github.com/users/pelplinski/following{/other_user}","gists_url":"https://api.github.com/users/pelplinski/gists{/gist_id}","starred_url":"https://api.github.com/users/pelplinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelplinski/subscriptions","organizations_url":"https://api.github.com/users/pelplinski/orgs","repos_url":"https://api.github.com/users/pelplinski/repos","events_url":"https://api.github.com/users/pelplinski/events{/privacy}","received_events_url":"https://api.github.com/users/pelplinski/received_events","type":"User","site_admin":false},{"login":"ChenWang01","id":28883265,"node_id":"MDQ6VXNlcjI4ODgzMjY1","avatar_url":"https://avatars1.githubusercontent.com/u/28883265?v=4","gravatar_id":"","url":"https://api.github.com/users/ChenWang01","html_url":"https://github.com/ChenWang01","followers_url":"https://api.github.com/users/ChenWang01/followers","following_url":"https://api.github.com/users/ChenWang01/following{/other_user}","gists_url":"https://api.github.com/users/ChenWang01/gists{/gist_id}","starred_url":"https://api.github.com/users/ChenWang01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChenWang01/subscriptions","organizations_url":"https://api.github.com/users/ChenWang01/orgs","repos_url":"https://api.github.com/users/ChenWang01/repos","events_url":"https://api.github.com/users/ChenWang01/events{/privacy}","received_events_url":"https://api.github.com/users/ChenWang01/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-09-07T21:49:36Z","updated_at":"2018-10-28T18:09:37Z","closed_at":"2018-10-16T05:54:35Z","author_association":"NONE","body":"When starting a Windows 10 VM (fresh install) in QEMU with a vhost-user-scsi-pci device attached, the boot already takes quite long, way longer than it should. Once the OS is finally booted, trying to use the disk, for instance to partition it using disk manager, produces I/O errors.\r\nWhen booting the VM with a Linux ISO (systemrescuecd-x86-5.2.2.iso), the disk works perfectly.\r\n\r\n## Expected Behavior\r\nWindows should be able to use the disk.\r\n\r\n## Current Behavior\r\nDisk is unusable, I/O errors whenever trying to access it. Boot takes quite long. \r\n\r\n## Possible Solution\r\nWhen using construct_malloc_bdev instead of construct_aio_bdev the disk is usable and the boot delay disappears.\r\n\r\n## Steps to Reproduce\r\n- create basic VM with Windows 10 (1803)\r\n- start vhost app, add an aio-bdev and vhost-scsi controller/lun\r\n- start VM with [...] -chardev socket,id=vhostuser1,path=/run/vhost.1 -device vhost-user-scsi-pci,chardev=vhostuser1 [...]\r\n- install driver (virtio-win-0.1.160.iso, but older versions also produce the error)\r\n- start disk manager\r\n- try to create a simple partition on the disk\r\n\r\n## Context (Environment including OS version, SPDK version, etc.)\r\nHost-OS: Gentoo Linux with kernel 4.18.6\r\nSPDK: Current git head, commit b6938efd\r\nDPDK: via submodule from spdk git head, commit c860b292\r\nQemu: 3.0.0\r\nBackend-Dev: AIO, USB-Stick with a blocksize of 512\r\nRPC-Calls: construct_aio_bdev /dev/sdd aio.0 && construct_vhost_scsi_controller vhost.1 && add_vhost_scsi_lun vhost.1 0 aio.0\r\n\r\nAlready talked to Jim Harris on IRC, he told me to enable the trace-flags aio, bdev, vhost_scsi, vhost_scsi_queue, vhost_scsi_data and scsi. The debug log is attached, I tried to partition the disk at 23:32:12, the I/O error appeared at 23:32:20.\r\n[vhost-user-scsi-pci.debug.log](https://github.com/spdk/spdk/files/2362597/vhost-user-scsi-pci.debug.log)\r\n\r\nIf you need more information or want me to test something just let me know.\r\n\r\nRegards,\r\nFriedrich\r\n"},"comment":{"url":"https://api.github.com/repos/spdk/spdk/issues/comments/433727912","html_url":"https://github.com/spdk/spdk/issues/432#issuecomment-433727912","issue_url":"https://api.github.com/repos/spdk/spdk/issues/432","id":433727912,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzcyNzkxMg==","user":{"login":"blu3bird","id":1130532,"node_id":"MDQ6VXNlcjExMzA1MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1130532?v=4","gravatar_id":"","url":"https://api.github.com/users/blu3bird","html_url":"https://github.com/blu3bird","followers_url":"https://api.github.com/users/blu3bird/followers","following_url":"https://api.github.com/users/blu3bird/following{/other_user}","gists_url":"https://api.github.com/users/blu3bird/gists{/gist_id}","starred_url":"https://api.github.com/users/blu3bird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blu3bird/subscriptions","organizations_url":"https://api.github.com/users/blu3bird/orgs","repos_url":"https://api.github.com/users/blu3bird/repos","events_url":"https://api.github.com/users/blu3bird/events{/privacy}","received_events_url":"https://api.github.com/users/blu3bird/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T18:09:37Z","updated_at":"2018-10-28T18:09:37Z","author_association":"NONE","body":"Still reproducable with 9f9cfdc5.\r\n\r\n@wanqunintel the merged patch (https://review.gerrithub.io/#/c/spdk/spdk/+/425213/) did not solve the issue, it was just to enhance logging."}}
{"actor":{"display_login":"blu3bird"}}