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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E751C433EF for ; Tue, 12 Oct 2021 15:16:11 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id BAA9D60E05 for ; Tue, 12 Oct 2021 15:16:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BAA9D60E05 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=xenproject.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.207384.363193 (Exim 4.92) (envelope-from ) id 1maJVY-0004Na-28; Tue, 12 Oct 2021 15:16:00 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 207384.363193; Tue, 12 Oct 2021 15:16:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1maJVX-0004NT-UQ; Tue, 12 Oct 2021 15:15:59 +0000 Received: by outflank-mailman (input) for mailman id 207384; Tue, 12 Oct 2021 15:15:59 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1maJVX-0004NN-HZ for xen-devel@lists.xenproject.org; Tue, 12 Oct 2021 15:15:59 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1maJVX-0003d0-Gm for xen-devel@lists.xenproject.org; Tue, 12 Oct 2021 15:15:59 +0000 Received: from iwj (helo=mariner.uk.xensource.com) by xenbits.xenproject.org with local-bsmtp (Exim 4.92) (envelope-from ) id 1maJVX-0003f1-Fv for xen-devel@lists.xenproject.org; Tue, 12 Oct 2021 15:15:59 +0000 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.89) (envelope-from ) id 1maJVT-0004iL-Qt; Tue, 12 Oct 2021 16:15:55 +0100 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" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=References:In-Reply-To:Subject:Cc:To:Date :Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:From; bh=gpnKHEwhE36/gKdPrnfxsCdAsb/wChRC4J3Zp7caD2Q=; b=rKAppI7GxS0sV3q7a3nd0phffp kg5MArs/lNDhSJMaZ+QPJRo/yv7DhmB/wWGPNFtVjpebR8SImKjdwewqkVAYkC8iX9bp9wCVfTeD2 YwSO2TQr2m/XD+8Y1IVbdBEd8sA4Bx5cJfADlEZo5CeKMOeYm9mx71wUlzRY4AVNhHyQ=; From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <24933.42667.311553.565032@mariner.uk.xensource.com> Date: Tue, 12 Oct 2021 16:15:55 +0100 To: Oleksandr Tyshchenko Cc: xen-devel@lists.xenproject.org, Oleksandr Tyshchenko , Ian Jackson , Wei Liu , Anthony PERARD , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Juergen Gross , Volodymyr Babchuk , Roger Pau =?iso-8859-1?Q?Monn=E9?= Subject: Re: [PATCH V6 1/2] xen/arm: Introduce gpaddr_bits field to struct xen_domctl_getdomaininfo Newsgroups: chiark.mail.xen.devel In-Reply-To: <1633974539-7380-2-git-send-email-olekstysh@gmail.com> References: <1633974539-7380-1-git-send-email-olekstysh@gmail.com> <1633974539-7380-2-git-send-email-olekstysh@gmail.com> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) Oleksandr Tyshchenko writes ("[PATCH V6 1/2] xen/arm: Introduce gpaddr_bits field to struct xen_domctl_getdomaininfo"): > From: Oleksandr Tyshchenko > > We need to pass info about maximum supported guest physical > address space size to the toolstack on Arm in order to properly > calculate the base and size of the extended region (safe range) > for the guest. The extended region is unused address space which > could be safely used by domain for foreign/grant mappings on Arm. > The extended region itself will be handled by the subsequent > patch. You say "to the toolstack", but you are exposing this information up to callers of libxl. Do you mean some higher-layer toolstack that uses libxl ? What does it use this information for ? FTAOD I am not opposed to exposing this in this way; indeed it seems likely to be useful. I just want to fully understand before I give this my tools ack. > + info->gpaddr_bits = domctl.u.getdomaininfo.gpaddr_bits; I'm pleased to find that this is not arch-specific. Thanks, Ian.