Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72F35C4345F for ; Thu, 25 Apr 2024 06:19:49 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.711816.1112061 (Exim 4.92) (envelope-from ) id 1rzsSJ-0006Uj-1h; Thu, 25 Apr 2024 06:19:39 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 711816.1112061; Thu, 25 Apr 2024 06:19:39 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rzsSI-0006Uc-VQ; Thu, 25 Apr 2024 06:19:38 +0000 Received: by outflank-mailman (input) for mailman id 711816; Thu, 25 Apr 2024 06:19:37 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rzsSH-0006UW-6H for xen-devel@lists.xenproject.org; Thu, 25 Apr 2024 06:19:37 +0000 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [2a00:1450:4864:20::332]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id c9eab04f-02cb-11ef-909a-e314d9c70b13; Thu, 25 Apr 2024 08:19:36 +0200 (CEST) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-41b34d344a0so4852445e9.3 for ; Wed, 24 Apr 2024 23:19:36 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id m18-20020adff392000000b00345920fcb45sm19029630wro.13.2024.04.24.23.19.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Apr 2024 23:19:35 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c9eab04f-02cb-11ef-909a-e314d9c70b13 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1714025975; x=1714630775; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=e3nAqYeDVFKI0t7PnEHk8avdhUXTXHxgSFZ6HEc/SMQ=; b=Wo008Hoe46L/DPpKSAsYK97XgCsh8zkYieNsnnpZYZEOmR8onPN7/sXdVuGigW69Jn G/+cz/EsTKlwT8443988i8WIkT4JHFMh7H1Ns1ITV4aiXwiwIev9No0uUuRk/BDRxId8 Xz2bMHcWWTFNyyXL4LER+4kEEydVJWCFCvqdVlbzeIhlkSf6iubv/Fw2w4x3lY/4l5Sb 3qZqP6JDlAroUQ7EOKmRfo7mnSZtOwF2gzM5G9H4Pwuo/cICflG98/tIw114oJw/AyTB jWJSNQymFN7JfK1ymsR80eB6drXwWZ3AE4ZkrUKR1hNglE9x7DY3vEyUjnNBDGfcdRVS gepw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714025975; x=1714630775; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=e3nAqYeDVFKI0t7PnEHk8avdhUXTXHxgSFZ6HEc/SMQ=; b=N6t49xMearudXC9OBELojCe8sLUqQ+4TdnvaYNgm18Z/H8NDZHqfAjEJrTEzTl8r/p COR4I3/J0VqrrLimYHnEFyFkTgn3J8PjoylfFvMcgDVFa0LaUTcVKOzJttbKCPyNCzxj 11+FXGbKytp6j+Yfe4Oy6ysq66s+Hbiqr0AXzfPloDigafpsJgG3+IWEwCsKEbMlD2/9 rxv5iIMRiFxSqVyXzWf4XmVgxB9bNea0t8+3GBCcZmTSW03bvutDwOKJwaWlIksD+j22 q5jM6PLTNGJgwEokFZ6+raiJejeapVs6BRh0px1eEbuLQqybGfIqEyaUCSBjj71NDSmo ZvAg== X-Forwarded-Encrypted: i=1; AJvYcCU2vsFEVopod4ku0rATkBxVGjzd8c09pJp40ycuZXcrWREpGf5pTqswexWzK0+sm3p8liJdYlvfSRaG3qoj8h1g45slWf+eOW0PA+zjWRw= X-Gm-Message-State: AOJu0YzfK7tKWeM3oeKDBD52sW66wZbNrt/95DmBkZbImRX3NDgusrPm oczFgL2i/ljkIMm4oNd7zvWmelDr1wR3Gnrio5Azx2ipmnxRXj75v3C0LkevXg== X-Google-Smtp-Source: AGHT+IEC8ipGlaB31xfBsmMVSoxaoyevHYXxo8bVz5R2UrjOATeduBqzB5TycthptVFW29eb5G1VXQ== X-Received: by 2002:a05:600c:3515:b0:418:ef65:4b0e with SMTP id h21-20020a05600c351500b00418ef654b0emr3036150wmq.17.1714025975679; Wed, 24 Apr 2024 23:19:35 -0700 (PDT) Message-ID: <9bb611ac-1187-4daa-9649-53afeeb11695@suse.com> Date: Thu, 25 Apr 2024 08:19:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/7] tools/xl: Add max_altp2m parameter Content-Language: en-US To: =?UTF-8?Q?Petr_Bene=C5=A1?= Cc: George Dunlap , Nick Rosbrook , Anthony PERARD , Andrew Cooper , Julien Grall , Stefano Stabellini , Juergen Gross , xen-devel@lists.xenproject.org References: <67b5dd52435132d0fb65e7b301970e17e092fa87.1713990376.git.w1benny@gmail.com> From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWt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g8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: <67b5dd52435132d0fb65e7b301970e17e092fa87.1713990376.git.w1benny@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 24.04.2024 22:42, Petr Beneš wrote: > Introduce a new max_altp2m parameter to control the maximum number of altp2m > views a domain can use. By default, if max_altp2m is unspecified and altp2m is > enabled, the value is set to 10, reflecting the legacy behavior. Apart from the public header you don't even touch hypervisor code here. What you say above therefore is limited in scope to the tool stack. I question though that adding a new field without respecting it constitutes an overall consistent change. In particular I'm curious how you mean to deal with this for other than x86, where altp2m as a concept doesn't exist (yet). > --- a/xen/include/public/domctl.h > +++ b/xen/include/public/domctl.h > @@ -77,6 +77,7 @@ struct xen_domctl_createdomain { > */ > uint32_t max_vcpus; > uint32_t max_evtchn_port; > + uint32_t max_altp2m; > int32_t max_grant_frames; > int32_t max_maptrack_frames; Such a struct layout change needs to be accompanied by an interface version bump (which hasn't happened so far in this release cycle, afaics). Jan