From nobody Sat Feb 7 21:16:01 2026 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; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1596138581; cv=none; d=zohomail.com; s=zohoarc; b=EoqGbDiD4rbrSSlHQG1OcRW3PXUHCoWTR5DJYwTNZuqAAPA3+EKmSmKZ2PT7v97HgcVHEHjNsRRzk8Uz8dWNQmzriugqquG7/ydp6l842u1yObMCxkriuFtbgFlT25kptbuPK7Agj4jitfpAkRaRXLbNDJXCKCunBQv23Rvipl4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1596138581; 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=d2jvmNlzVsPGlDJilCmYcj3gD4/HSK0J67UQ1HlQzYk=; b=IPEzGqcOq/16PRKZm6jD2jYKWgL81xdEeKAR2exiOZZ9C06cdVLXeeJdPfbozuMxSh0oAe+5hKJcO4NpXZaxHxjIoYIzz8Kw4WC6e/sW1sgnNy2JUw896HD0C78ITHWiDBrJHuXzlHlGy/Uf/Ecr9mQFzltcOQfxNSoFQAGH9Ok= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1596138581019476.6262512014954; Thu, 30 Jul 2020 12:49:41 -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-191-gsRmyA7QMta3E7SnkRsxTw-1; Thu, 30 Jul 2020 15:49:37 -0400 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 91F5B57; Thu, 30 Jul 2020 19:49:31 +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 71DC35DA72; Thu, 30 Jul 2020 19:49:31 +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 329479A0F2; Thu, 30 Jul 2020 19:49:31 +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 06UJmOMY002974 for ; Thu, 30 Jul 2020 15:48:24 -0400 Received: by smtp.corp.redhat.com (Postfix) id 03DC810328B; Thu, 30 Jul 2020 19:48:24 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F3203FED3C for ; Thu, 30 Jul 2020 19:48:21 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (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 C21578007CB for ; Thu, 30 Jul 2020 19:48:21 +0000 (UTC) Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-508-X97PJ0v8OeOtPHvVSE1e1w-1; Thu, 30 Jul 2020 15:48:18 -0400 Received: by mail-qk1-f196.google.com with SMTP id u64so26719034qka.12 for ; Thu, 30 Jul 2020 12:48:17 -0700 (PDT) Received: from rekt.ibmuc.com ([2804:431:c7c7:fea0:f34f:387b:ebfa:f155]) by smtp.gmail.com with ESMTPSA id d20sm3301823qkk.84.2020.07.30.12.48.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2020 12:48:16 -0700 (PDT) X-MC-Unique: gsRmyA7QMta3E7SnkRsxTw-1 X-MC-Unique: X97PJ0v8OeOtPHvVSE1e1w-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=d2jvmNlzVsPGlDJilCmYcj3gD4/HSK0J67UQ1HlQzYk=; b=ojWPE1d45Opo6cGHhAQlN8Ykfh3hAUZCh4qZYUEr3wd4KovjP1tF5/YGZeUHrle/Da 4y+V7nVRSZjAgugMz+1g4GMeVqTa10kV0+C7qXQlsgg9RBQmbJo0lDnlu6ZJLSucPFiu 6G5UN545HyIpxM2nlfiEJ4JUn5V3MG7DQEG9sbQMEa5EuSPEbGOR29u3KbqIZOR7TRfb s2Y5q+nFNgsexUfgLTZTYNczv+KKuyT8i5Wokykxzlf9yoiVKlsmAlNnm9+21C5bEDOA 9/8kyLxvX+Ok/iGd/ZE19xlaipSGYkA45x/TJiUKmXxNnGLFl5joGUCxJ5PVb8ucQleb /fAA== X-Gm-Message-State: AOAM532HUJdgGueSexk52tpGpxYAiHMlkjPAttTFno80qvC9Fj1oiiAG 5LSdxz0/QGAMj8wkI6cDv4VUUB0N X-Google-Smtp-Source: ABdhPJx1BbqEQA+48ostSkSC/F4bddPzaRb8ufjMqhpkgDxqrwQQX4ktv/VVNAH7vqzMUyrxbTzmbA== X-Received: by 2002:a05:620a:20d1:: with SMTP id f17mr756796qka.428.1596138497226; Thu, 30 Jul 2020 12:48:17 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 1/5] qemu_domain.c: make qemuDomainGetMemorySizeAlignment() public Date: Thu, 30 Jul 2020 16:48:00 -0300 Message-Id: <20200730194804.491732-2-danielhb413@gmail.com> In-Reply-To: <20200730194804.491732-1-danielhb413@gmail.com> References: <20200730194804.491732-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 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.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Next patch will use it outside of qemu_domain.c. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 2 +- src/qemu/qemu_domain.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 2058290870..dfe3c3b64b 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -7939,7 +7939,7 @@ qemuDomainAgentAvailable(virDomainObjPtr vm, } =20 =20 -static unsigned long long +unsigned long long qemuDomainGetMemorySizeAlignment(virDomainDefPtr def) { /* PPC requires the memory sizes to be rounded to 256MiB increments, so diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h index 29849a7313..cbd56861da 100644 --- a/src/qemu/qemu_domain.h +++ b/src/qemu/qemu_domain.h @@ -989,6 +989,9 @@ qemuDomainFixupCPUs(virDomainObjPtr vm, char * qemuDomainGetMachineName(virDomainObjPtr vm); =20 +unsigned long long +qemuDomainGetMemorySizeAlignment(virDomainDefPtr def); + void qemuDomainObjPrivateXMLFormatAllowReboot(virBufferPtr buf, virTristateBool allowReboot); --=20 2.26.2