From nobody Tue Feb 10 00:01:02 2026 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902894; cv=none; d=zoho.com; s=zohoarc; b=F6EidkFBxMNksEzvZjppBQ8m/C19GzMWlPT18jtU1OvNrFXoX+NdcnxChg+WoXt1ouB1g8/YMXiaRjTh3Ky+1E8eDp7FS77UZY/7cMwgKZRiIrKz5SG3SM3v6UzEyMUu54fK/CHwhH6p2eS8xthyuIrx60frANbd6/VansY1++w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902894; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=4n+mtkSha8PrB6dKgNhLvDGiMSV6cn4ulsqTA1wBz5g=; b=WmwDJx1KFAEvVz7OT4bf07k0W8FidS5d9SOcQXoOhY+y3YA9ReWUMbPDhTsXnFdosc1l04flkb98BdWyDUbdW3G0B33bQTgRLE0Th+gkj3jsj5BfeOkA4974MblPcxZvmljnakeUhthahajUbdDKlRqKRhZ8UtqkCVxQ8fbOpn8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556902894174535.0875305950514; Fri, 3 May 2019 10:01:34 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXi-000858-Ca; Fri, 03 May 2019 17:00:14 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXh-00084T-Aa for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:13 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e9f68e9c-6dc4-11e9-843c-bc764e045a96; Fri, 03 May 2019 17:00:11 +0000 (UTC) X-Inumbo-ID: e9f68e9c-6dc4-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085350" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:57 +0100 Message-ID: <20190503165957.5960-12-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 11/11] mg-allocate: Don't try allocating the same resource for two specs X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This is obviously wrong. In fact it does not work (we bomb out in the allocation). Signed-off-by: Ian Jackson --- v2: New patch --- mg-allocate | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mg-allocate b/mg-allocate index 087b14b0..b5dc185e 100755 --- a/mg-allocate +++ b/mg-allocate @@ -437,6 +437,16 @@ sub plan () { map { [ @$possreqs, $_ ] } @reqlist; } @possmatrix; } + @possmatrix =3D grep { + my $possreqs =3D $_; + my %got; + my $ok=3D1; + foreach (@$possreqs) { + next if !$got{$_->{Reso}}++; + $ok=3D0; last; + } + $ok; + } @possmatrix; =20 my $planned; my @reqlist; --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel