From nobody Sun Feb 8 21:33:42 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1605132772; cv=none; d=zohomail.com; s=zohoarc; b=bGu21zOJ9UfxSl6S2rQxlsmtG3F8P3pug9WoGhVOYLZErgCVRgmYAgY4yFFhQSLsh7aNVspUYKlcUAm+0TmR776tQymUusuqhIrmhSYTi/YXykz/Jn6Xm9AQ2iMJfDAYy0U4phyJyDGqIhvHIXF9nu4tlOMfP41KzOiYIFj1N20= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605132772; 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=CudYN5PretkFaUuEkz5lCkPrw8UmgajeFoYef1gu5xs=; b=Jk+D+eL5kiAHcK9aqzVb/wmNn8p6BlWoIXoeuZFIMMTrYj89X2ovDfoP/2Y5gSGDsMSeRPut0KwP4CckCkiTEy5ad4UnMnspi5PlOcMqKNBYTj8JrJzjAT6L7a+N/PhJRcBZB9oj7B3m17neO5Dz20lnswMZVoD8RuYeqISYftM= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 16051327720351013.988303593956; Wed, 11 Nov 2020 14:12:52 -0800 (PST) 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-190-6-JM0ShkMUedipTwUeh2bg-1; Wed, 11 Nov 2020 17:12:48 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 95FD05720A; Wed, 11 Nov 2020 22:12:43 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6BDD475136; Wed, 11 Nov 2020 22:12:43 +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 05EE4181A050; Wed, 11 Nov 2020 22:12:43 +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 0ABM7ol5006152 for ; Wed, 11 Nov 2020 17:07:50 -0500 Received: by smtp.corp.redhat.com (Postfix) id 37A0C2166BDD; Wed, 11 Nov 2020 22:07:50 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 326C72166BA3 for ; Wed, 11 Nov 2020 22:07:50 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (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 1A76F90E425 for ; Wed, 11 Nov 2020 22:07:50 +0000 (UTC) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-467-5l1XcenMNwK0MT9lq7TSCw-1; Wed, 11 Nov 2020 17:07:47 -0500 Received: by mail-qk1-f193.google.com with SMTP id r7so3424699qkf.3 for ; Wed, 11 Nov 2020 14:07:47 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c7:b9cd:904e:d02:53c4:1c05]) by smtp.gmail.com with ESMTPSA id a200sm3427842qkb.66.2020.11.11.14.07.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 14:07:46 -0800 (PST) X-MC-Unique: 6-JM0ShkMUedipTwUeh2bg-1 X-MC-Unique: 5l1XcenMNwK0MT9lq7TSCw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CudYN5PretkFaUuEkz5lCkPrw8UmgajeFoYef1gu5xs=; b=hYLf6PS6Y+mfYVi4fuykUDmjfSzaGoY2wNEaMaY0n1yVLFPva4yqURqaF5na9X4vTV 9gJPTj033R0tRX2vTfASusUt2Xv3nFAy/bAzTSYLt6VVNxvyZN+7eKbKGXRa6QsD0c5t 1w2vyJ4hUFVWN86shUA4+o5us+5wr32hfucEWVmvn6F2UxF/go9iloMib/n8RFaXiQrD v0rYqkvgwVqIKNvjpcaaLx3lufpy3caSVL5X2Tx8b+UArgluEnarqJvCsLGPOeRq8/zs KYARnvFotR+TbfMq3f09GsPyx4gCMXv6V0fc12uT1/qeFPdDHm2VYHEmtkceGIdZiO0K 39gQ== X-Gm-Message-State: AOAM533mI6iaK9S7a+lxhd8jsYmrjiKn1CKgW6hFOb1flbCBqy08jH2C AJlgmVT0ODPSqSCMH8E1TDYHgnK1RprVbg== X-Google-Smtp-Source: ABdhPJyi4w11kvZ4MqEFlvCbVm8MBVDwKiVJgfIkCiYS+PYfP9g4ZvgQe3xc7l6ckGRi5TlvjkWvBQ== X-Received: by 2002:a05:620a:1419:: with SMTP id d25mr21110164qkj.469.1605132467256; Wed, 11 Nov 2020 14:07:47 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH v1 09/10] qemu_domain.c: remove qemuDomainMemoryDeviceAlignSize() Date: Wed, 11 Nov 2020 19:07:24 -0300 Message-Id: <20201111220725.356297-10-danielhb413@gmail.com> In-Reply-To: <20201111220725.356297-1-danielhb413@gmail.com> References: <20201111220725.356297-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza 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.15 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 Content-Type: text/plain; charset="utf-8" This function has no callers left after we moved the mem module alignment to PostParse callbacks. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 20 -------------------- src/qemu/qemu_domain.h | 2 -- 2 files changed, 22 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 7067d49d7a..8d69be682e 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -8130,26 +8130,6 @@ qemuDomainAlignMemorySizes(virDomainDefPtr def) } =20 =20 -/** - * qemuDomainMemoryDeviceAlignSize: - * @mem: memory device definition object - * - * Aligns the size of the memory module as qemu enforces it. The size is u= pdated - * inplace. Default rounding is now to 1 MiB (qemu requires rounding to pa= ge, - * size so this should be safe). - */ -int -qemuDomainMemoryDeviceAlignSize(virDomainDefPtr def, - virDomainMemoryDefPtr mem) -{ - if (!ARCH_IS_PPC64(def->os.arch)) - mem->size =3D VIR_ROUND_UP(mem->size, - qemuDomainGetMemorySizeAlignment(def)); - - return 0; -} - - /** * qemuDomainGetMonitor: * @vm: domain object diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h index ca041e207b..8e6fde412e 100644 --- a/src/qemu/qemu_domain.h +++ b/src/qemu/qemu_domain.h @@ -757,8 +757,6 @@ bool qemuDomainHasBlockjob(virDomainObjPtr vm, bool cop= y_only) ATTRIBUTE_NONNULL(1); =20 int qemuDomainAlignMemorySizes(virDomainDefPtr def); -int qemuDomainMemoryDeviceAlignSize(virDomainDefPtr def, - virDomainMemoryDefPtr mem); =20 virDomainChrDefPtr qemuFindAgentConfig(virDomainDefPtr def); =20 --=20 2.26.2