From nobody Sun May 5 08:15:17 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1592294129; cv=none; d=zohomail.com; s=zohoarc; b=DZv/p/I1nl3OnrtXeyWWNhlwYx2BzW3EZZCDZTiR/y6780aF6fmCfNj9CCUzuVe7iWD8AIKhsZFxKJIYbtBnQkB3Xi4m2Rcbau3eMU6VHGSWIItpsdraRp0SqJG+zJi2WYe5b0xGSyuh4tOQ3IYcUbBDHLBI+KAjezj7AqCeKq8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592294129; 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=cOPXjJMA/BefbROZpDM2nnCGWX5B9su2iXcDN2HiYc8=; b=KEvajPYky5DToTiTn0NF/8ZxqNdSctBjm85dZpwBpnv4kzbGN0l7Da/2BqH9rXbEDVnHDCmiEXp933pU49opvEM7C44dQLX3gSA4Qcs8nv3YFCw/8ghvNX6j3qTuub3WiG4c2wuGEn+SaX7kPokUOmJMq7lefR5ZXuAfbn40GS8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 159229412985244.26345191104747; Tue, 16 Jun 2020 00:55:29 -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-45-Js332M2POA-JzXKq7VJ95Q-1; Tue, 16 Jun 2020 03:55:26 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3E228E914; Tue, 16 Jun 2020 07:55:21 +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 C8C855C1C3; Tue, 16 Jun 2020 07:55:20 +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 B7B5A833C1; Tue, 16 Jun 2020 07:55:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05G7tG96005024 for ; Tue, 16 Jun 2020 03:55:17 -0400 Received: by smtp.corp.redhat.com (Postfix) id DA87682861; Tue, 16 Jun 2020 07:55:16 +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 D522982863 for ; Tue, 16 Jun 2020 07:55:15 +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 D97978007A4 for ; Tue, 16 Jun 2020 07:55:14 +0000 (UTC) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80049.outbound.protection.outlook.com [40.107.8.49]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-282-EKBf_YGmO2OlrmZ0LXDBjg-2; Tue, 16 Jun 2020 03:55:11 -0400 Received: from AM6PR04MB5782.eurprd04.prod.outlook.com (2603:10a6:20b:aa::17) by AM6PR04MB5765.eurprd04.prod.outlook.com (2603:10a6:20b:ae::26) 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:10 +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:10 +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:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592294128; 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=cOPXjJMA/BefbROZpDM2nnCGWX5B9su2iXcDN2HiYc8=; b=VarDiiQgnZTYxHi6zd2ZtK5XhcEuT/3YxFizvBUluLWTD8bDk4lzG1OyEfoZjxTBhzqJBA 6NdaOCBzMV9DbcE6iMyScbB1X5sNdiM9JXJgVgrWSCYKwpQea1FftyFPQ9Xmam4eowzjmZ rPFaVSvwvCKpAico656xJFQMfBGjdTo= X-MC-Unique: Js332M2POA-JzXKq7VJ95Q-1 X-MC-Unique: EKBf_YGmO2OlrmZ0LXDBjg-2 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/5] conf: Add support for discard granularity Date: Tue, 16 Jun 2020 15:54:34 +0800 Message-ID: <20200616075438.5726-2-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: 800e2010-f02d-4ed7-1c28-08d811ca9765 X-MS-TrafficTypeDiagnostic: AM6PR04MB5765: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-Forefront-PRVS: 04362AC73B X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kOnYl1T/dL66FQJgC2/wVrt3QfKBj1/Qk9k8DD6HzJd7nINHnEPTicCVLl9RX7t+jf5ozEseiiSmeLhWvKcU3cR/raZvFks6K+ZHoL7eZazT8nn0Clob1CUvhEbXKPO8du0mN9vEh6aTkTOlcX2OlV4EjdD0yzvLXQig8wh87MxvZuNc0zIydMGckzVvjoRMgrbl32I0bhzpfB1BSyi0opgN767Az68mPMV7i7xb9fHnNEHB9XRy5l5s5juD5bd0rdxcWRHTT6xeZEuJXvS8mnQf2g/abC6AHSSoy9jQFaaVrzdUEJ7OsLIku4FRZKfiSc47R7GGQMZG8NLhHdGlEDwxmiWuX/fL5q6uKA/sUVcCUUc+ovxXeuv43i95R7Q7 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:(346002)(39860400002)(136003)(366004)(396003)(376002)(2906002)(508600001)(6486002)(6512007)(316002)(1076003)(6506007)(83380400001)(52116002)(186003)(16526019)(8676002)(8936002)(26005)(2616005)(956004)(86362001)(66556008)(66476007)(66946007)(6666004)(5660300002)(6916009)(4326008)(36756003)(107886003)(19607625011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: QbkU6lnyl/b93HlBSm6GCl+KO46eFo5ZPpIQSs3WXcJEthDbpf1AWcLwj8x7gwd9aqpACZDU/GA5NyV2HNPa25MdmnnHwyzYACyEMkcqwYJHH5LNMyAS5EHM/VqOqAm3+l21oU8X7Zc+56wiSeGSNio/OxIkBgYTAFY6z+aiHmzaCBTInSlE9MfjTAXGlt2u+llk+v2waHJF5FO9HNvg/c+BixJZvN8WQGOosBN3DVyK+ZCUjlPg+Wz4fEXU8816sCtxpYPFt0jbqD3KB0hz2TnKtRXrIBfgGOxP1sH3vS9f23XPxgCDaOif1nRDElzKoMm43LPF/ZKb9VF+E37325w1uMQoETTA4Oa9IPRCmCLmrhu0XUQIsD7JOUPJ+BStF5x4zO5q+jUHEcbd4dnCBiuqezIN7Dgieh34q6p99EyG47kpnRdT8iBk68QgBmoGcML2tKn9sUFHL1N1qAbqYsVQ3aCBFK5hlTcH2mgEQCM= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 800e2010-f02d-4ed7-1c28-08d811ca9765 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2020 07:55:10.0383 (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: VsqCGaSc6Vg37V+n4RhO+Ujn1/5JeWUvvld1V6m9aS03kVeAJudl65G5v+N1pn9L X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB5765 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 05G7tG96005024 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.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com 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 | 6 +++++- docs/schemas/domaincommon.rng | 5 +++++ src/conf/domain_conf.c | 19 ++++++++++++++++++- src/conf/domain_conf.h | 1 + src/qemu/qemu_domain.c | 2 ++ 5 files changed, 31 insertions(+), 2 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 20c28a47e3..59ee50225a 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -3019,7 +3019,7 @@ <driver name=3D'qemu' type=3D'raw'/> <source dev=3D'/dev/sda'/> <geometry cyls=3D'16383' heads=3D'16' secs=3D'63' trans=3D'lba'/> - <blockio logical_block_size=3D'512' physical_block_size=3D'4096'/&g= t; + <blockio logical_block_size=3D'512' physical_block_size=3D'4096' di= scard_granularity=3D'4096'/> <target dev=3D'hdj' bus=3D'ide'/> </disk> <disk type=3D'volume' device=3D'disk'> @@ -4067,6 +4067,10 @@ BLKPBSZGET ioctl and describes the disk's hardware sector size which can be relevant for the alignment of disk data. +
discard_granularity
+
Its value impacts the Optimal Unmap Granularity field in + the block limits VPD page. Since 6.5.0 +
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index e3bf7f5d55..5206c4e246 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -2177,6 +2177,11 @@ + + + + +