From nobody Tue Feb 10 23:53:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 155437925913047.25929294276409; Thu, 4 Apr 2019 05:00:59 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 88A7C3091784; Thu, 4 Apr 2019 12:00:57 +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 5D99617DD5; Thu, 4 Apr 2019 12:00:57 +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 20B2365D14; Thu, 4 Apr 2019 12:00:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x34C0siF000691 for ; Thu, 4 Apr 2019 08:00:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7DC2517C2D; Thu, 4 Apr 2019 12:00:54 +0000 (UTC) Received: from icr.brq.redhat.com (unknown [10.43.2.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 05FC65DD97 for ; Thu, 4 Apr 2019 12:00:53 +0000 (UTC) From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Date: Thu, 4 Apr 2019 14:00:50 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 3/3] qemu: remove qemuGetDomainDefaultHugepath 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: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 04 Apr 2019 12:00:58 +0000 (UTC) It is no longer used. Signed-off-by: J=C3=A1n Tomko --- src/qemu/qemu_conf.c | 24 ------------------------ src/qemu/qemu_conf.h | 3 --- 2 files changed, 27 deletions(-) diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index 4bec885c6b..daea11dacb 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -1899,30 +1899,6 @@ qemuGetDomainHugepagePath(const virDomainDef *def, } =20 =20 -/** - * qemuGetDomainDefaultHugepath: - * @def: domain definition - * @hugetlbfs: array of configured hugepages - * @nhugetlbfs: number of item in the array - * - * Callers must ensure that @hugetlbfs contains at least one entry. - * - * Returns 0 on success, -1 otherwise. - * */ -char * -qemuGetDomainDefaultHugepath(const virDomainDef *def, - virHugeTLBFSPtr hugetlbfs, - size_t nhugetlbfs) -{ - virHugeTLBFSPtr p; - - if (!(p =3D virFileGetDefaultHugepage(hugetlbfs, nhugetlbfs))) - p =3D &hugetlbfs[0]; - - return qemuGetDomainHugepagePath(def, p); -} - - /** * qemuGetDomainHupageMemPath: Construct HP enabled memory backend path * diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h index 14c9d15a72..983e74a3cf 100644 --- a/src/qemu/qemu_conf.h +++ b/src/qemu/qemu_conf.h @@ -374,9 +374,6 @@ int qemuTranslateSnapshotDiskSourcePool(virDomainSnapsh= otDiskDefPtr def); char * qemuGetBaseHugepagePath(virHugeTLBFSPtr hugepage); char * qemuGetDomainHugepagePath(const virDomainDef *def, virHugeTLBFSPtr hugepage); -char * qemuGetDomainDefaultHugepath(const virDomainDef *def, - virHugeTLBFSPtr hugetlbfs, - size_t nhugetlbfs); =20 int qemuGetDomainHupageMemPath(const virDomainDef *def, virQEMUDriverConfigPtr cfg, --=20 2.19.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list