Package: qemu-kvm Version: 2.1+dfsg-2~bpo70+2 Severity: normal Hello,
I was able to successfully use the passthrough TRIM support with an IDE interface virtual disk in Qemu-KVM version 2.0. However after upgrading to 2.1 and restarting my VM, TRIM now fails in it with messages like those quoted below (dmesg from the guest). There are no messages in dmesg related to that on the host. I run two VMs, and the other has not been restarted yet (it's running with the old 2.0 binaries), and there TRIM works without issue. So it clearly seems to be due to some change in 2.1. [ 63.096106] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 [ 63.097698] ata1.00: BMDMA stat 0x4 [ 63.098470] ata1.00: failed command: DATA SET MANAGEMENT [ 63.099245] ata1.00: cmd 06/01:01:00:00:00/00:00:00:00:00/a0 tag 0 dma 512 out [ 63.099245] res 41/04:01:00:00:00/04:01:00:00:00/a0 Emask 0x1 (device error) [ 63.100894] ata1.00: status: { DRDY ERR } [ 63.101698] ata1.00: error: { ABRT } [ 63.102465] ata1.00: device reported invalid CHS sector 0 [ 63.102471] sd 0:0:0:0: [sda] [ 63.102473] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 63.102474] sd 0:0:0:0: [sda] [ 63.102475] Sense Key : Aborted Command [current] [descriptor] [ 63.102477] Descriptor sense data with sense descriptors (in hex): [ 63.102478] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00 [ 63.102482] 00 00 00 00 [ 63.102484] sd 0:0:0:0: [sda] [ 63.102485] Add. Sense: No additional sense information [ 63.102486] sd 0:0:0:0: [sda] CDB: [ 63.102487] Write same(16): 93 08 00 00 00 00 00 84 37 60 00 00 00 18 00 00 [ 63.102492] end_request: I/O error, dev sda, sector 8664928 [ 63.103438] EXT4-fs (sda1): discard request in group:33 block:1516 count:3 failed with -5 [ 63.256058] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 [ 63.256897] ata1.00: BMDMA stat 0x4 [ 63.257697] ata1.00: failed command: DATA SET MANAGEMENT [ 63.258479] ata1.00: cmd 06/01:01:00:00:00/00:00:00:00:00/a0 tag 0 dma 512 out [ 63.258479] res 41/04:01:00:00:00/04:01:00:00:00/a0 Emask 0x1 (device error) [ 63.260126] ata1.00: status: { DRDY ERR } [ 63.260954] ata1.00: error: { ABRT } [ 63.261731] ata1.00: device reported invalid CHS sector 0 [ 63.261737] sd 0:0:0:0: [sda] [ 63.261738] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 63.261739] sd 0:0:0:0: [sda] [ 63.261740] Sense Key : Aborted Command [current] [descriptor] [ 63.261742] Descriptor sense data with sense descriptors (in hex): [ 63.261743] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00 [ 63.261747] 00 00 00 00 [ 63.261749] sd 0:0:0:0: [sda] [ 63.261750] Add. Sense: No additional sense information [ 63.261751] sd 0:0:0:0: [sda] CDB: [ 63.261752] Write same(16): 93 08 00 00 00 00 00 93 c8 08 00 00 00 38 00 00 [ 63.261757] end_request: I/O error, dev sda, sector 9685000 [ 63.262756] EXT4-fs (sda1): discard request in group:36 block:30721 count:7 failed with -5 [ 66.328099] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 [ 66.328991] ata1.00: BMDMA stat 0x4 [ 66.329811] ata1.00: failed command: DATA SET MANAGEMENT [ 66.330659] ata1.00: cmd 06/01:01:00:00:00/00:00:00:00:00/a0 tag 0 dma 512 out [ 66.330659] res 41/04:01:00:00:00/04:01:00:00:00/a0 Emask 0x1 (device error) [ 66.332307] ata1.00: status: { DRDY ERR } [ 66.333122] ata1.00: error: { ABRT } [ 66.333918] ata1.00: device reported invalid CHS sector 0 [ 66.333923] sd 0:0:0:0: [sda] [ 66.333925] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 66.333926] sd 0:0:0:0: [sda] [ 66.333927] Sense Key : Aborted Command [current] [descriptor] [ 66.333929] Descriptor sense data with sense descriptors (in hex): [ 66.333930] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00 [ 66.333934] 00 00 00 00 [ 66.333936] sd 0:0:0:0: [sda] [ 66.333937] Add. Sense: No additional sense information [ 66.333938] sd 0:0:0:0: [sda] CDB: [ 66.333939] Write same(16): 93 08 00 00 00 00 00 84 48 60 00 00 00 08 00 00 [ 66.333944] end_request: I/O error, dev sda, sector 8669280 [ 66.335084] EXT4-fs (sda1): discard request in group:33 block:2060 count:1 failed with -5 [ 67.332057] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 [ 67.332929] ata1.00: BMDMA stat 0x4 [ 67.333745] ata1.00: failed command: DATA SET MANAGEMENT [ 67.334574] ata1.00: cmd 06/01:01:00:00:00/00:00:00:00:00/a0 tag 0 dma 512 out [ 67.334574] res 41/04:01:00:00:00/04:01:00:00:00/a0 Emask 0x1 (device error) [ 67.336264] ata1.00: status: { DRDY ERR } [ 67.337114] ata1.00: error: { ABRT } [ 67.337936] ata1.00: device reported invalid CHS sector 0 [ 67.337942] sd 0:0:0:0: [sda] [ 67.337943] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 67.337945] sd 0:0:0:0: [sda] [ 67.337946] Sense Key : Aborted Command [current] [descriptor] [ 67.337948] Descriptor sense data with sense descriptors (in hex): [ 67.337949] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00 [ 67.337953] 00 00 00 00 [ 67.337955] sd 0:0:0:0: [sda] [ 67.337956] Add. Sense: No additional sense information [ 67.337957] sd 0:0:0:0: [sda] CDB: [ 67.337958] Write same(16): 93 08 00 00 00 00 00 01 32 40 00 00 00 10 00 00 [ 67.337963] end_request: I/O error, dev sda, sector 78400 --- System information. --- Architecture: amd64 Kernel: Linux 3.14.14-rm1+ Debian Release: 7.6 990 stable www.emdebian.org 990 stable approx.home.romanrm.net 100 wheezy-backports approx.home.romanrm.net --- Package information. --- Depends (Version) | Installed ======================================-+-=================== qemu-system-x86 (>= 1.7.0+dfsg-2~) | 2.1+dfsg-2~bpo70+2 Package's Recommends field is empty. Package's Suggests field is empty. -- With respect, Roman
signature.asc
Description: PGP signature