diff options
author | grehan <grehan@FreeBSD.org> | 2015-10-05 14:57:45 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2015-10-05 14:57:45 +0000 |
commit | 949b203cbe48e9bb3040c9c68577fa6e336ed58e (patch) | |
tree | 48973696edebf37fb0334868cc874f0c9dc84ed2 /usr.sbin/bhyve | |
parent | 7b9bab6fbb69066f6e2ca96e5ca5b62fe834a2bb (diff) | |
download | FreeBSD-src-949b203cbe48e9bb3040c9c68577fa6e336ed58e.zip FreeBSD-src-949b203cbe48e9bb3040c9c68577fa6e336ed58e.tar.gz |
Clean up some harmless unimplemented-command warning messages.
- Don't advertize trusted-computing capability in the Identify page.
This prevents Windows from issuing a TRUSTED_RECEIVE_DMA command.
- Windows will send down SMART and SECURITY_FREEZE_LOCK
even though smart and security capabilities were not advertized.
Send back a silent abort.
Reviewed by: mav
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r-- | usr.sbin/bhyve/pci_ahci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/pci_ahci.c b/usr.sbin/bhyve/pci_ahci.c index 13ab7c1..5c4743c 100644 --- a/usr.sbin/bhyve/pci_ahci.c +++ b/usr.sbin/bhyve/pci_ahci.c @@ -926,7 +926,7 @@ handle_identify(struct ahci_port *p, int slot, uint8_t *cfis) ata_string((uint8_t *)(buf+23), "001", 8); ata_string((uint8_t *)(buf+27), "BHYVE SATA DISK", 40); buf[47] = (0x8000 | 128); - buf[48] = 0x1; + buf[48] = 0; buf[49] = (1 << 8 | 1 << 9 | 1 << 11); buf[50] = (1 << 14); buf[53] = (1 << 1 | 1 << 2); @@ -1683,6 +1683,8 @@ ahci_handle_cmd(struct ahci_port *p, int slot, uint8_t *cfis) case ATA_READ_LOG_DMA_EXT: ahci_handle_read_log(p, slot, cfis); break; + case ATA_SECURITY_FREEZE_LOCK: + case ATA_SMART_CMD: case ATA_NOP: ahci_write_fis_d2h(p, slot, cfis, (ATA_E_ABORT << 8) | ATA_S_READY | ATA_S_ERROR); |