From nobody Mon Feb 9 00:54:09 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1602515703; cv=none; d=zohomail.com; s=zohoarc; b=RMRJxbdRl1GlpCJVbmY7M67LGU6En7WL/NsuaVbuf+h/B4KrnLHmCRvCK5QzwQyVOkrU9oscGFkGARLlGDPO8YyAl3dSzlLUKqTaVqXDueqLUY5KDpVhqAyHke5Ciwyy8GXDBNNh+7qfbX79sSfyHmmOYHjbXjcRlfbR4+FZukM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602515703; h=Content-Type:Content-Transfer-Encoding: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=9i8TlnLJs/YIZS0d9q/hV+LCzodmbQdZiM7Cs4Ar5h8=; b=LHgTTXQ0jVbHYZILegj1ExMJ5ghiKrl2NuMsr0iv8W3OC36t6C3lgBaPQfUpXKRxq5C1iauKcn/SMdRL8r6/r/BAbacBRbNd336vW+s5V4Nozl8UausEbPuQKIQh6qF8qhxon0E0TElSAGgkj2KRvNNE5pisLqXvncRiifBG3VA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1602515703534252.29044568701863; Mon, 12 Oct 2020 08:15:03 -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-527-YB6w69bmPYa652vQH0OfWA-1; Mon, 12 Oct 2020 11:14:21 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EB17A1868407; Mon, 12 Oct 2020 15:14:14 +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 C989D73665; Mon, 12 Oct 2020 15:14:14 +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 97464183D023; Mon, 12 Oct 2020 15:14:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 09CFDvLc014630 for ; Mon, 12 Oct 2020 11:13:57 -0400 Received: by smtp.corp.redhat.com (Postfix) id C0BD75C22B; Mon, 12 Oct 2020 15:13:57 +0000 (UTC) Received: from lindworm.usersys.redhat.com (unknown [10.34.247.222]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3E8155C225 for ; Mon, 12 Oct 2020 15:13:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602515702; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=9i8TlnLJs/YIZS0d9q/hV+LCzodmbQdZiM7Cs4Ar5h8=; b=Qsm8VoCCzirMi6Qco97MF6hm567azHT3AKDEBWGqA+s6qwdu2j0ExJKY4LQPsrXPFtNCVt Qv1MRYtKYx/kwHPxtcVuwypFNDmJV0fwMLvNkwVY9d+d2QoxfdVx/gL+vGWRCv1P535MJx uCVz0NIPUYe1HaUXsnmtJ4hmSflrsRQ= X-MC-Unique: YB6w69bmPYa652vQH0OfWA-1 From: Pino Toscano To: libvir-list@redhat.com Subject: [libvirt PATCH 3/4] vmx: expand the disk array Date: Mon, 12 Oct 2020 17:13:47 +0200 Message-Id: <20201012151348.4067266-4-ptoscano@redhat.com> In-Reply-To: <20201012151348.4067266-1-ptoscano@redhat.com> References: <20201012151348.4067266-1-ptoscano@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com 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.13 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" Account for the possible SATA disks too, which means 120 potential disks. This means the size of the array triples, however that is unavoidable with the current way of reading disks. Signed-off-by: Pino Toscano --- src/vmx/vmx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vmx/vmx.c b/src/vmx/vmx.c index 0ec6222f50..6e4b455794 100644 --- a/src/vmx/vmx.c +++ b/src/vmx/vmx.c @@ -1645,8 +1645,8 @@ virVMXParseConfig(virVMXContext *ctx, if (def->graphics[def->ngraphics] !=3D NULL) ++def->ngraphics; =20 - /* def:disks: 4 * 15 scsi + 2 * 2 ide + 2 floppy =3D 66 */ - def->disks =3D g_new0(virDomainDiskDefPtr, 66); + /* def:disks: 4 * 15 scsi + 4 * 30 sata + 2 * 2 ide + 2 floppy =3D 186= */ + def->disks =3D g_new0(virDomainDiskDefPtr, 186); def->ndisks =3D 0; =20 /* def:disks (scsi) */ --=20 2.26.2