From nobody Mon Feb 9 00:54:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1592294145; cv=none; d=zohomail.com; s=zohoarc; b=QqSFK0ikwrUY4wrBdtP1XHV2DE14wEZrMKWkcyGkCuX72aFzRQ5MBD6tXErVoX8BMRF32dLpFKz49vtv7KmFrH0Iv//sOu53lXe3sfztcnlEapk7fkzCGVelbZWqm+JYhHmTXoJs8Zx1jzC3dl+nP1GZGGUEIn5YFUFxMip4Sg0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592294145; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=FbQfhfwZFYZBSUtqUxMCNHn5mCrpwj0zgwTdS7EvVRo=; b=dMXF8lFXrq5n3zQnRspNLJehqJucM0TlZsbc3EXRyR/QNRTecblEZh34MvhUSdengHTE/k8QUJOozdOLG9QKwMtdwxApSADx4nANfeBkDtlXWzkTtSeh5U4G8q7ZoGDhoGko+PvSUx6d5SIJZuze1lt46oNLxrB7X3QjkgULtDc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1592294145680206.91933940850595; Tue, 16 Jun 2020 00:55:45 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-228-FblaM4IBOjiG7FF-a_pHyw-1; Tue, 16 Jun 2020 03:55:42 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3BC72873426; Tue, 16 Jun 2020 07:55:37 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 14872100164C; Tue, 16 Jun 2020 07:55:37 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id DD3CB833CD; Tue, 16 Jun 2020 07:55:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05G7tJNp005032 for ; Tue, 16 Jun 2020 03:55:19 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0BBBE2157F23; Tue, 16 Jun 2020 07:55:19 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 069962166BA0 for ; Tue, 16 Jun 2020 07:55:19 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DB23D8007B1 for ; Tue, 16 Jun 2020 07:55:18 +0000 (UTC) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2040.outbound.protection.outlook.com [40.107.20.40]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-220-_TrTjwBcMn6MdGJhfLvI_g-1; Tue, 16 Jun 2020 03:55:16 -0400 Received: from AM6PR04MB5782.eurprd04.prod.outlook.com (2603:10a6:20b:aa::17) by AM6PR04MB4278.eurprd04.prod.outlook.com (2603:10a6:209:4f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.21; Tue, 16 Jun 2020 07:55:14 +0000 Received: from AM6PR04MB5782.eurprd04.prod.outlook.com ([fe80::d848:9dea:7742:a55]) by AM6PR04MB5782.eurprd04.prod.outlook.com ([fe80::d848:9dea:7742:a55%4]) with mapi id 15.20.3088.029; Tue, 16 Jun 2020 07:55:14 +0000 Received: from t440p.gns.novell.com (114.255.249.163) by SN4PR0201CA0062.namprd02.prod.outlook.com (2603:10b6:803:20::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.19 via Frontend Transport; Tue, 16 Jun 2020 07:55:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592294144; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=FbQfhfwZFYZBSUtqUxMCNHn5mCrpwj0zgwTdS7EvVRo=; b=R39sqCGl7iQxS6oQw0SGOB1s6YHa0gZZCbtr2BhIC6iFQ20z9ycWbxxurav8BE0Dy3tfaP yebXmj7lyJLaDECTHMfmAqTkwJYgcNzZKZ/tiCOZl02PtmeQOvPvOueyjaGG1wHf7V4cC5 A3A0KM0XWF4PqT3xdBxxUz4HkgBUqyk= X-MC-Unique: FblaM4IBOjiG7FF-a_pHyw-1 X-MC-Unique: _TrTjwBcMn6MdGJhfLvI_g-1 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH 3/5] conf: Add support for unmap limit Date: Tue, 16 Jun 2020 15:54:36 +0800 Message-ID: <20200616075438.5726-4-lma@suse.com> In-Reply-To: <20200616075438.5726-1-lma@suse.com> References: <20200616075438.5726-1-lma@suse.com> X-ClientProxiedBy: SN4PR0201CA0062.namprd02.prod.outlook.com (2603:10b6:803:20::24) To AM6PR04MB5782.eurprd04.prod.outlook.com (2603:10a6:20b:aa::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Originating-IP: [114.255.249.163] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 904d2a1f-25ba-43b2-6a26-08d811ca9a5c X-MS-TrafficTypeDiagnostic: AM6PR04MB4278: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:190; X-Forefront-PRVS: 04362AC73B X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CZsKu5lguKfA0/UT0f6zYpfkw8vvxXE+QYt3vgFDTtLhqhUBY9ShSp/OOqTiuMjJTznbe1Dgtd/THqB1aXrLMSaYESAZh9upMQWglK4oKxe8oFT6VBOZWxqqH5zrJ7K/oZwd03zUIbR9dZwFx1SsdttarbYOZU6QqrSxZYnM/ri8hdy2pMNk7tOKVXOdk2ytqUSZ5aTtGXLlLJ9OshU9i/ETRrnHziOmc8KSMrgkniBcz1ZrzaqogbxUaS2PUX8Bp8URtnjHgXpA6HHtsYfaSYkZvP9VqkuUcmyHwn8MbijAQoko+mGCOpI4UeC2L9LCmRAm92e3F7u/A8+clij2TGv2KBP/3CYtuVo/Ku9pmHwqv1738oIGROfazAHrGgxv X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB5782.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(136003)(39860400002)(396003)(366004)(376002)(346002)(8676002)(2906002)(8936002)(6916009)(107886003)(6486002)(5660300002)(508600001)(4326008)(6512007)(956004)(2616005)(16526019)(186003)(26005)(66946007)(66476007)(66556008)(83380400001)(6666004)(6506007)(86362001)(316002)(52116002)(36756003)(1076003)(19607625011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: XPmzhFiRi+Ighgy+1nrlg5xZlpfDM+Jf8jcRNOQL9K45wzTZGYmToMs4i4R3LCiHgSZX8fiAcrwiR6tlqzuVD2wKbgLiQcvu8vnfhRzUlEobVHPKajDRapdZw+pT5zVdhQlAXanTzzYw6BEsvzrR+6chshbsCJpK65pubdrKjjLOZctmL1L1WHHIqSiXaxa+lt8CCz1iZy2/kgrYxD1LIW4SxZ9q8D0rb/YnwmxKeDDtInnAU1E1jBHG7RdZMAEV2YHcrgFqPsbx+83e8gkh0A7/zc+vcEjjMY464jn7yxruksdwS9oMprebQryCBEjukU16RCGYPPR8VZsXw06H0MJQTjjyPLq2lz6LAK8Yna6liYsUSDpGt0g5asgf1jYFfTRkv5XxkL4J2tEWzxXsrUGp+6meAPtK4C5cQ8XTSVhzB/iqewwK4VvMN5jd6E8//AyiyNjqBZNTTFcHsIXeRFXRNO4nFJ6Pw5tnETxEyfE= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 904d2a1f-25ba-43b2-6a26-08d811ca9a5c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2020 07:55:14.8256 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lD+dLIMt+I3oZ1hYLVvuZzDBhWelFkzzLFFDij2naVUeKWti4ccTGXtEjf4Vzo9T X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4278 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 05G7tJNp005032 X-loop: libvir-list@redhat.com Cc: Lin Ma X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Lin Ma --- docs/formatdomain.html.in | 12 ++++++++++++ docs/schemas/domaincommon.rng | 5 +++++ src/conf/domain_conf.c | 26 +++++++++++++++++++++++++- src/conf/domain_conf.h | 1 + src/qemu/qemu_domain.c | 2 ++ 5 files changed, 45 insertions(+), 1 deletion(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 59ee50225a..c4c510ab5f 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -3015,6 +3015,13 @@ <target dev=3D'sda' bus=3D'scsi'/> <address type=3D'drive' controller=3D'0' bus=3D'0' target=3D'3' uni= t=3D'0'/> </disk> + <disk type=3D'file' device=3D'disk'> + <driver name=3D'qemu' type=3D'qcow2'/> + <source file=3D'/var/lib/libvirt/images/domain.qcow2'/> + <blockio max_unmap_size=3D'1073741824'/> + <target dev=3D'sdb' bus=3D'scsi'/> + <address type=3D'drive' controller=3D'0' bus=3D'0' target=3D'0' uni= t=3D'0'/> + </disk> <disk type=3D'block' device=3D'disk'> <driver name=3D'qemu' type=3D'raw'/> <source dev=3D'/dev/sda'/> @@ -4071,6 +4078,11 @@
Its value impacts the Optimal Unmap Granularity field in the block limits VPD page. Since 6.5.0
+
max_unmap_size
+
Available for scsi disks only. It impacts the Maximum + Unmap LBA count field in the block limits VPD page. + Since 6.5.0 (QEMU 2.0) +
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 5206c4e246..8d037c4d07 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -2182,6 +2182,11 @@ + + + + +