Windows 10 VM detects SSD as HDD

I’m trying to get my Windows VM to detect the SSD I passed to it to be detected as an SDD instead of an HDD for TRIM, among other reasons. From what I’ve read, setting “discard” to “unmap” and “io” to “native” should have it detect properly, but it just doesn’t.

The D: drive is just a qcow2 image i added for troubleshooting.

Here’s where the drive gets passed-through in my XML:

<disk type="block" device="disk">
  <driver name="qemu" type="raw" cache="none" io="native" discard="unmap"/>
  <source dev="/dev/disk/by-id/ata-Samsung_SSD_860_EVO_1TB_S3Z8NY0M705649N"/>
  <target dev="vdb" bus="sata"/>
  <boot order="1"/>
  <address type="drive" controller="0" bus="0" target="0" unit="1"/>
</disk>
1 Like