lightnvm: refactor and change vendor id for qemu
authorMatias Bjørling <m@bjorling.me>
Sat, 28 Nov 2015 15:49:26 +0000 (16:49 +0100)
committerJens Axboe <axboe@fb.com>
Sun, 29 Nov 2015 21:34:58 +0000 (14:34 -0700)
commit09f2e716096811081b204c6afd6264c2e64d1210
tree026e798bc14a99b33366adbdcef4837aaee3b959
parentd160147b5c96ef5ec842c604ccd79f5f03306677
lightnvm: refactor and change vendor id for qemu

The QEMU NVMe implementation uses Intel vendor, Intel device id, and the
first vendor specific byte to identify a LightNVM compatible nvme
instance.

Instead of using the Intel specific, use a preallocated from CNEX Labs
instead. This lets us uniquely identify a QEMU lightnvm device without
breaking other vendor specific work in the qemu device driver.

Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/lightnvm.c