"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hw/block/nvme.c" between
qemu-6.0.0-rc1.tar.xz and qemu-6.0.0-rc2.tar.xz

About: QEMU is a generic machine/processor emulator and virtualizer. Release candidate.

nvme.c  (qemu-6.0.0-rc1.tar.xz):nvme.c  (qemu-6.0.0-rc2.tar.xz)
skipping to change at line 94 skipping to change at line 94
* this value is specified as a power of two (2^n) and is in units of the * this value is specified as a power of two (2^n) and is in units of the
* minimum memory page size (CAP.MPSMIN). The default value is 7 (i.e. 512 * minimum memory page size (CAP.MPSMIN). The default value is 7 (i.e. 512
* KiB). * KiB).
* *
* - `zoned.zasl` * - `zoned.zasl`
* Indicates the maximum data transfer size for the Zone Append command. Like * Indicates the maximum data transfer size for the Zone Append command. Like
* `mdts`, the value is specified as a power of two (2^n) and is in units of * `mdts`, the value is specified as a power of two (2^n) and is in units of
* the minimum memory page size (CAP.MPSMIN). The default value is 0 (i.e. * the minimum memory page size (CAP.MPSMIN). The default value is 0 (i.e.
* defaulting to the value of `mdts`). * defaulting to the value of `mdts`).
* *
* - `zoned.append_size_limit`
* The maximum I/O size in bytes that is allowed in Zone Append command.
* The default is 128KiB. Since internally this this value is maintained as
* ZASL = log2(<maximum append size> / <page size>), some values assigned
* to this property may be rounded down and result in a lower maximum ZA
* data size being in effect. By setting this property to 0, users can make
* ZASL to be equal to MDTS. This property only affects zoned namespaces.
*
* nvme namespace device parameters * nvme namespace device parameters
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* - `subsys` * - `subsys`
* If given, the namespace will be attached to all controllers in the * If given, the namespace will be attached to all controllers in the
* subsystem. Otherwise, `bus` must be given to attach this namespace to a * subsystem. Otherwise, `bus` must be given to attach this namespace to a
* specific controller as a non-shared namespace. * specific controller as a non-shared namespace.
* *
* - `detached` * - `detached`
* This parameter is only valid together with the `subsys` parameter. If left * This parameter is only valid together with the `subsys` parameter. If left
* at the default value (`false/off`), the namespace will be attached to all * at the default value (`false/off`), the namespace will be attached to all
skipping to change at line 6338 skipping to change at line 6330
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
dc->desc = "Non-Volatile Memory Express"; dc->desc = "Non-Volatile Memory Express";
device_class_set_props(dc, nvme_props); device_class_set_props(dc, nvme_props);
dc->vmsd = &nvme_vmstate; dc->vmsd = &nvme_vmstate;
} }
static void nvme_instance_init(Object *obj) static void nvme_instance_init(Object *obj)
{ {
NvmeCtrl *n = NVME(obj); NvmeCtrl *n = NVME(obj);
if (n->namespace.blkconf.blk) { device_add_bootindex_property(obj, &n->namespace.blkconf.bootindex,
device_add_bootindex_property(obj, &n->namespace.blkconf.bootindex, "bootindex", "/namespace@1,0",
"bootindex", "/namespace@1,0", DEVICE(obj));
DEVICE(obj));
}
object_property_add(obj, "smart_critical_warning", "uint8", object_property_add(obj, "smart_critical_warning", "uint8",
nvme_get_smart_warning, nvme_get_smart_warning,
nvme_set_smart_warning, NULL, NULL); nvme_set_smart_warning, NULL, NULL);
} }
static const TypeInfo nvme_info = { static const TypeInfo nvme_info = {
.name = TYPE_NVME, .name = TYPE_NVME,
.parent = TYPE_PCI_DEVICE, .parent = TYPE_PCI_DEVICE,
.instance_size = sizeof(NvmeCtrl), .instance_size = sizeof(NvmeCtrl),
 End of changes. 2 change blocks. 
13 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)