aboutsummaryrefslogtreecommitdiff
path: root/hw/block
diff options
context:
space:
mode:
authorKlaus Jensen <k.jensen@samsung.com>2021-03-09 12:17:15 +0100
committerKlaus Jensen <k.jensen@samsung.com>2021-05-17 09:19:00 +0200
commit83e85b614ddab2810b75583c6b3106ff42207a57 (patch)
tree0688ca66ecd0c0d7173df25d649541533b983f68 /hw/block
parent9d394c80f19b86c5a0a8ca30d976bf2a25c3b645 (diff)
downloadqemu-83e85b614ddab2810b75583c6b3106ff42207a57.zip
qemu-83e85b614ddab2810b75583c6b3106ff42207a57.tar.gz
qemu-83e85b614ddab2810b75583c6b3106ff42207a57.tar.bz2
hw/block/nvme: remove irrelevant zone resource checks
It is not an error to report more active/open zones supported than the number of zones in the namespace. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'hw/block')
-rw-r--r--hw/block/nvme-ns.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/hw/block/nvme-ns.c b/hw/block/nvme-ns.c
index b25838a..008deb5 100644
--- a/hw/block/nvme-ns.c
+++ b/hw/block/nvme-ns.c
@@ -210,19 +210,6 @@ static int nvme_ns_zoned_check_calc_geometry(NvmeNamespace *ns, Error **errp)
return -1;
}
- if (ns->params.max_open_zones > ns->num_zones) {
- error_setg(errp,
- "max_open_zones value %u exceeds the number of zones %u",
- ns->params.max_open_zones, ns->num_zones);
- return -1;
- }
- if (ns->params.max_active_zones > ns->num_zones) {
- error_setg(errp,
- "max_active_zones value %u exceeds the number of zones %u",
- ns->params.max_active_zones, ns->num_zones);
- return -1;
- }
-
if (ns->params.max_active_zones) {
if (ns->params.max_open_zones > ns->params.max_active_zones) {
error_setg(errp, "max_open_zones (%u) exceeds max_active_zones (%u)",