From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08B0CC433E0 for ; Tue, 2 Feb 2021 12:09:58 +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 97D8464F64 for ; Tue, 2 Feb 2021 12:09:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 97D8464F64 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.80525.147319 (Exim 4.92) (envelope-from ) id 1l6uV6-0006uv-QS; Tue, 02 Feb 2021 12:09:44 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 80525.147319; Tue, 02 Feb 2021 12:09:44 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l6uV6-0006uo-N1; Tue, 02 Feb 2021 12:09:44 +0000 Received: by outflank-mailman (input) for mailman id 80525; Tue, 02 Feb 2021 12:09:43 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l6uV5-0006uj-JX for xen-devel@lists.xenproject.org; Tue, 02 Feb 2021 12:09:43 +0000 Received: from mail-lj1-x231.google.com (unknown [2a00:1450:4864:20::231]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 46e7f4ef-2ac6-4f2b-86ee-ef4a8a69c451; Tue, 02 Feb 2021 12:09:42 +0000 (UTC) Received: by mail-lj1-x231.google.com with SMTP id a25so23681782ljn.0 for ; Tue, 02 Feb 2021 04:09:42 -0800 (PST) Received: from [192.168.1.7] ([212.22.223.21]) by smtp.gmail.com with ESMTPSA id d28sm3273106lfn.15.2021.02.02.04.09.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Feb 2021 04:09:40 -0800 (PST) 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: 46e7f4ef-2ac6-4f2b-86ee-ef4a8a69c451 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=cklQJu8+KYVHEIxLg9m2wh/uxfhxTC5GXImJ4sfcMrY=; b=mFoyQkcX+lb3A/7GziV07+mOAfWQlbGDWi7Uy8dZ6p0R3ETVY8uHKLKPRxcvfHTUqM J8DBZt4UCZW4ESP36WlspXX5v3Qn9nK87F17bnzkGzmotkku/LLmFGH+tYh2vCUsBFvN bPNKtzzavKhPEhJI7thTde2ylmBjtnvnzE/9klZ/usZ6DpwMpaG2fnj3+HhJKKw5IBgi OA8bCrjbVy80Y4jdFrYDnYEgImsmPnFTuRNL5McSOBL5tg06qJJ+qXYGG8htI5qs1P0R neDo0AuFAyD1o/M6oXIhKso0drcKyBd2cr8bPCBNkSTZDRoaVbdQfew7u5nMdfKEbzWH ZqEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=cklQJu8+KYVHEIxLg9m2wh/uxfhxTC5GXImJ4sfcMrY=; b=TCPQrngb00V9D0LDY/ORm9Mjq/nhZJ/ADNEIp+g7BQpQoL8yYxCUX4xTnLMb9Wy5fM LDQ3U4nyhV6nsTMs3kk0ffy7qFJhcnmqX/09E7Vb+2vYfHFMpuZ1+T05JAoz+TFw2p5N gFzFjdf8IYAyntXKCaSTLmNnMzi8YNp1Xkj9I3nvW2+5dNmcTuNZacoufMuM2wG9v/WM 0st2KfBn6CxQmM6H42Vrw4uIkX7ItwMSe2tlhztG2QyA+a2bxKo4dLFY6oAq9NfgouY0 mVIQmCIhN9sZTq60xVscqzlDUfnac+s/TgBf6QzEsZUSezxEyf127KvDcpV8rWz0y6VL AwZA== X-Gm-Message-State: AOAM5312ebPJr92UkdYkJ4sTCALjX7C9xPz/Bh1SSKUfWO3dJF5i5VAa fRbn/za6myEXAZv4EWR/j4M= X-Google-Smtp-Source: ABdhPJwtplTISQ/VughfoBDpUhlOEQ/8PjQR5p7Yn+2tVifUH2Xr9P0CTs34CRH2P1rorjr8VMuglA== X-Received: by 2002:a05:651c:1029:: with SMTP id w9mr13366979ljm.142.1612267781378; Tue, 02 Feb 2021 04:09:41 -0800 (PST) Subject: Re: [PATCH v8 00/16] acquire_resource size and external IPT monitoring To: Andrew Cooper Cc: Xen-devel , Jan Beulich , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , Wei Liu , Ian Jackson , Anthony PERARD , Jun Nakajima , Kevin Tian , =?UTF-8?Q?Micha=c5=82_Leszczy=c5=84ski?= , Tamas K Lengyel References: <20210130025852.12430-1-andrew.cooper3@citrix.com> <911270bf-0077-b70e-c224-712dfa535afa@gmail.com> <7384c55e-f996-be08-f8ee-b6d09c9e2eef@citrix.com> From: Oleksandr Message-ID: <7350812f-a222-8f82-c2dc-06c939e64249@gmail.com> Date: Tue, 2 Feb 2021 14:09:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <7384c55e-f996-be08-f8ee-b6d09c9e2eef@citrix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US On 01.02.21 16:00, Andrew Cooper wrote: Hi Andrew > On 01/02/2021 13:47, Oleksandr wrote: >> On 01.02.21 15:07, Andrew Cooper wrote: >> >> Hi Andrew >> >>> On 01/02/2021 12:34, Oleksandr wrote: >>>> On 30.01.21 04:58, Andrew Cooper wrote: >>> One query I did leave on IRC, and hasn't had an answer. >>> >>> What is the maximum number of vcpus in an ARM guest? >> public/arch-arm.h says that current supported guest VCPUs max number >> is 128. >> >> >>> You moved an >>> x86-ism "max 128 vcpus" into common code. >> Ooh, I am not sure I understand where exactly. Could you please >> clarify in which patch? > ioreq_server_get_frame() hardcodes "there is exactly one non-bufioreq > frame", which in practice means there is 128 vcpu's work of struct > ioreqs contained within the mapping. > > I've coded ioreq_server_max_frames() to perform the calculation > correctly, but ioreq_server_get_frame() will need fixing by whomever > supports more than 128 vcpus with ioreq servers first. Thank you for the explanation. Now it is clear what you meant. -- Regards, Oleksandr Tyshchenko