[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 06/15] rangeset: Move struct range and struct rangeset to headerfile


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Vikram Garhwal <vikram.garhwal@xxxxxxx>
  • From: Henry Wang <xin.wang2@xxxxxxx>
  • Date: Thu, 25 Apr 2024 08:47:09 +0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tFfv8RZhkPH7G7E1cYGaOOgJXaCMxjk0ijb44sCWv+E=; b=HAJZYZ9OxwQZCwQsaW2BQKZpSo0gnycuIyarCMbytbvjPWO67+NQ7bBccLM4ArW54gY4TGM2509QzXm1hidJA1x2+2uO26061tFcGiYNA9ZChOLbJhOfanxmJKOdulm/cWHxpIfFvI+g8Jl9ZcXr//y4V2S9MeeVECJRPTciTWvSeuAy5unkYFt5sM/q9BVRAk93xIHlJlCRt6FQow502MO1syDzHUJ4GjXxxpwgyeIKDNaR+BjAgMo3NrN9T+/vg70U8JU0ghyr81hzIDDjPQ3soCMG+vujVBtH09LXKnHrrYHsoI3zUjBWvs+DBCujiUo1GZC2qnTrrWUmuNsjIw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hx4y0cQkck54QKHno4dd1Pk2XOXtOYYBQejMIh691pdW0twuveKe1VfByJErrEyTimksgDY3m8LXAeJLcdI0Q3n5FZBtkxj3DfoljMp6YiJQSkWDidW7U4P92gR6zyszQdk3QV0z344WMg/Vyeq/thBb/JcJuIccYUIRltGDzELZcjIK8nQdnVnlrXwPe5juRHV8SBaWqeXydJmpYsqdxX7JFZpcVHd/sHDn8ntVN10HgghzdmM5QrM5dRWyQnn32+2LQOkUPaEhZLo8NwFFrtmOUSK+MB+xQ8P3k78N88YFVTzO93puyNGtZcbHit8/WVee0W3uZgIGLK/lJwCyaQ==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 25 Apr 2024 00:47:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Jan,

On 4/24/2024 2:22 PM, Jan Beulich wrote:
On 24.04.2024 05:34, Henry Wang wrote:
From: Vikram Garhwal <vikram.garhwal@xxxxxxx>

Move struct range, rangeset and removed static from first_range and 
next_range().
NAK, for going against what we do elsewhere (limiting exposure of internals).
At least as long as the justification isn't any better than ...

IRQs and IOMEMs for nodes are stored as rangeset in the dynamic node addition
part. While removing the nodes we need to access every IRQ and IOMEM ranges to
unmap IRQ and IOMEM from the domain.
... this. You're aware of rangeset_report_ranges() and 
rangeset_consume_ranges(),
aren't you? If neither is suitable for your purpose, can you explain what you
need in addition?

I understand your concern. I will check if I can refactor this patch using the suggested helpers. Thanks!

Kind regards,
Henry



Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.