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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 E3FF7C433EF for ; Tue, 7 Sep 2021 12:53:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C758D610C9 for ; Tue, 7 Sep 2021 12:53:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344455AbhIGMys (ORCPT ); Tue, 7 Sep 2021 08:54:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232913AbhIGMyr (ORCPT ); Tue, 7 Sep 2021 08:54:47 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5330CC061575 for ; Tue, 7 Sep 2021 05:53:41 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id d6so13646986wrc.11 for ; Tue, 07 Sep 2021 05:53:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4cDtvvJiDONxbktDTeL+URNXfqhs06YOh0Wb0vKpXuE=; b=gTVzdRInjX/dnmGg73hvgZhaP3j9eU6oGyZskECjKsUwR7c3DWRJE9mEnEnxleavw6 1cn8lg6CTY985kb4nComyKckxvjXFL2WxeqpVzpe29I3msh8fQFx7BD6y6hHXpxHnVYP wurcE/GA+ZupuCLpbFfjp9K5p0+h4a2dk95VT8Ya28D7zV035oKH1QdeeGvQJExM2as9 WJcvH4mcWpf0fRKBheCGBAbfzqCuJeLfy99mQLuXs5a5TXrjS81anxQFHF/+exdvxdTi XUxHswQ/eEzyuAPLVdWT9NGTGmeVqWSKVysXnViop5DaRa3cgdnz6M9o3BXUwKThjO5z p+Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4cDtvvJiDONxbktDTeL+URNXfqhs06YOh0Wb0vKpXuE=; b=ThAn1RIjeuOnyzLqAtqBHiQHuAn3BB3zBwihxy0+XQ3mnsbp9UtHdAh5ripn0vMfRl PwI4kpZM/EGlQBryB/edrd0E7AlWG+gM2rCx9mFIFJsfOVImcczLYmlAgV6jgDECTd3l UVrfemOlr2juJZMiGuLlQ1eFSYHVE7rHyJs1mzMKxRKEI5ZVqyZLjkWm8BiUK33QrVfU jleVQj1h05TddvATl+B4t9Kc884r5wg/1DkZxDjzCp+kvLUiA/wxqaizuTTrHHAPjlWv 5H+CXllftWcXA4i7tvhgJuXMJOeP4pdKsQr2/cFb4AEDfw4MlbuZx5ZZgZIil0aWskmA R9WA== X-Gm-Message-State: AOAM530ocHi4u4TGAOMIhyGyrpd9NpNYabzsren8C3ULB5DRKdxFHGFU weWrO2wuy+gSSYDgYs7Sp6sG8RBgvyAydUnEY5y6/w== X-Google-Smtp-Source: ABdhPJxrLmDLa+HjRoX8Rv60uwocrI+Qc6d7xcHSWB8bchkHtGLPk+nY6fi0MnnqybP7bULCaOkzltqGHJO4o0kGo9M= X-Received: by 2002:adf:fb91:: with SMTP id a17mr18038543wrr.376.1631019219992; Tue, 07 Sep 2021 05:53:39 -0700 (PDT) MIME-Version: 1.0 References: <20210822144441.1290891-1-maz@kernel.org> In-Reply-To: <20210822144441.1290891-1-maz@kernel.org> From: Peter Maydell Date: Tue, 7 Sep 2021 13:52:51 +0100 Message-ID: Subject: Re: [PATCH 0/3] target/arm: Reduced-IPA space and highmem=off fixes To: Marc Zyngier Cc: QEMU Developers , Andrew Jones , Eric Auger , kvmarm , kvm-devel , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Sun, 22 Aug 2021 at 15:45, Marc Zyngier wrote: > > With the availability of a fruity range of arm64 systems, it becomes > obvious that QEMU doesn't deal very well with limited IPA ranges when > used as a front-end for KVM. > > This short series aims at making usable on such systems: > - the first patch makes the creation of a scratch VM IPA-limit aware > - the second one actually removes the highmem devices from the > computed IPA range when highmem=off > - the last one addresses an imprecision in the documentation for the > highmem option > > This has been tested on an M1-based Mac-mini running Linux v5.14-rc6. > > Marc Zyngier (3): > hw/arm/virt: KVM: Probe for KVM_CAP_ARM_VM_IPA_SIZE when creating > scratch VM > hw/arm/virt: Honor highmem setting when computing highest_gpa > docs/system/arm/virt: Fix documentation for the 'highmem' option I've applied patch 1 to target-arm.next; thanks. -- PMM 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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 8A01BC433F5 for ; Tue, 7 Sep 2021 12:53:44 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 06E30604E9 for ; Tue, 7 Sep 2021 12:53:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 06E30604E9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 82C594B1B0; Tue, 7 Sep 2021 08:53:43 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@linaro.org Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XLW6DpYJzYMi; Tue, 7 Sep 2021 08:53:42 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 7A6754B20C; Tue, 7 Sep 2021 08:53:42 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id EBD364B1E3 for ; Tue, 7 Sep 2021 08:53:41 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hOwAAZGbCYow for ; Tue, 7 Sep 2021 08:53:41 -0400 (EDT) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id DDD454B1B0 for ; Tue, 7 Sep 2021 08:53:40 -0400 (EDT) Received: by mail-wr1-f47.google.com with SMTP id q26so13339129wrc.7 for ; Tue, 07 Sep 2021 05:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4cDtvvJiDONxbktDTeL+URNXfqhs06YOh0Wb0vKpXuE=; b=gTVzdRInjX/dnmGg73hvgZhaP3j9eU6oGyZskECjKsUwR7c3DWRJE9mEnEnxleavw6 1cn8lg6CTY985kb4nComyKckxvjXFL2WxeqpVzpe29I3msh8fQFx7BD6y6hHXpxHnVYP wurcE/GA+ZupuCLpbFfjp9K5p0+h4a2dk95VT8Ya28D7zV035oKH1QdeeGvQJExM2as9 WJcvH4mcWpf0fRKBheCGBAbfzqCuJeLfy99mQLuXs5a5TXrjS81anxQFHF/+exdvxdTi XUxHswQ/eEzyuAPLVdWT9NGTGmeVqWSKVysXnViop5DaRa3cgdnz6M9o3BXUwKThjO5z p+Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4cDtvvJiDONxbktDTeL+URNXfqhs06YOh0Wb0vKpXuE=; b=jtdYiMCTEqvvUc0WdwgIvdKK9rL3Ey358QlgZsu3X/LdWL3ZpoTC+LthWJ10PijkxN NmzZWP8PeFJ38Y195I99AviJU3saQqToXBj6PQooxpVXXSbfud3zrLNr7KXujL+laEKY 7l8D/rz26V7rErrPRQy6EVkl1ZQ7xXWEK1jZcZvVfWT4UlpD9iHARthSuun4I9aMlyT+ IAu5h0Ium7Dwp6Xn77MLdKhULBahiV7EtaXrhV56bOrsEGZFb0FHyfieh4gfjwZasVP+ A1ugRYIyTKAeJ0Or+ybrKAq6o/ja9IMcf44AZpH3Sm1ZHYDZ/sgmXQkti+jx1LZRiMnM hRDg== X-Gm-Message-State: AOAM531W48AHKMlnAKUoqaL0vE3HQA7IBoIf2E5phrO3OkeC2cy9qM9L emBpjjV6CRhSzQ1MVc/QcYwzGjx5SWHtB6oKzledBQ== X-Google-Smtp-Source: ABdhPJxrLmDLa+HjRoX8Rv60uwocrI+Qc6d7xcHSWB8bchkHtGLPk+nY6fi0MnnqybP7bULCaOkzltqGHJO4o0kGo9M= X-Received: by 2002:adf:fb91:: with SMTP id a17mr18038543wrr.376.1631019219992; Tue, 07 Sep 2021 05:53:39 -0700 (PDT) MIME-Version: 1.0 References: <20210822144441.1290891-1-maz@kernel.org> In-Reply-To: <20210822144441.1290891-1-maz@kernel.org> From: Peter Maydell Date: Tue, 7 Sep 2021 13:52:51 +0100 Message-ID: Subject: Re: [PATCH 0/3] target/arm: Reduced-IPA space and highmem=off fixes To: Marc Zyngier Cc: kvm-devel , QEMU Developers , Android Kernel Team , kvmarm X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On Sun, 22 Aug 2021 at 15:45, Marc Zyngier wrote: > > With the availability of a fruity range of arm64 systems, it becomes > obvious that QEMU doesn't deal very well with limited IPA ranges when > used as a front-end for KVM. > > This short series aims at making usable on such systems: > - the first patch makes the creation of a scratch VM IPA-limit aware > - the second one actually removes the highmem devices from the > computed IPA range when highmem=off > - the last one addresses an imprecision in the documentation for the > highmem option > > This has been tested on an M1-based Mac-mini running Linux v5.14-rc6. > > Marc Zyngier (3): > hw/arm/virt: KVM: Probe for KVM_CAP_ARM_VM_IPA_SIZE when creating > scratch VM > hw/arm/virt: Honor highmem setting when computing highest_gpa > docs/system/arm/virt: Fix documentation for the 'highmem' option I've applied patch 1 to target-arm.next; thanks. -- PMM _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm 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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 D24ACC433EF for ; Tue, 7 Sep 2021 13:32:33 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 83A6A600AA for ; Tue, 7 Sep 2021 13:32:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 83A6A600AA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:44260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNbDE-0006GF-Np for qemu-devel@archiver.kernel.org; Tue, 07 Sep 2021 09:32:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNabf-0002q6-5a for qemu-devel@nongnu.org; Tue, 07 Sep 2021 08:53:43 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:39459) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNabd-000273-Hp for qemu-devel@nongnu.org; Tue, 07 Sep 2021 08:53:42 -0400 Received: by mail-wr1-x436.google.com with SMTP id z4so14269581wrr.6 for ; Tue, 07 Sep 2021 05:53:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4cDtvvJiDONxbktDTeL+URNXfqhs06YOh0Wb0vKpXuE=; b=gTVzdRInjX/dnmGg73hvgZhaP3j9eU6oGyZskECjKsUwR7c3DWRJE9mEnEnxleavw6 1cn8lg6CTY985kb4nComyKckxvjXFL2WxeqpVzpe29I3msh8fQFx7BD6y6hHXpxHnVYP wurcE/GA+ZupuCLpbFfjp9K5p0+h4a2dk95VT8Ya28D7zV035oKH1QdeeGvQJExM2as9 WJcvH4mcWpf0fRKBheCGBAbfzqCuJeLfy99mQLuXs5a5TXrjS81anxQFHF/+exdvxdTi XUxHswQ/eEzyuAPLVdWT9NGTGmeVqWSKVysXnViop5DaRa3cgdnz6M9o3BXUwKThjO5z p+Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4cDtvvJiDONxbktDTeL+URNXfqhs06YOh0Wb0vKpXuE=; b=dbQK2RNl3xDtYITXSO87Tnwdp4+GqjXdaiydooiD8etNrH4G/HLwlMKQs+sk+Fy4TV U0BaEB4u1l8+JQgjKF1HlteGwEc2JPpoLX5S5n82YdWsV/T8/SENxbvHSC8BxZNZRdUM 6IJhVaCvWiP6oK3W767X9T1781Wk/9/Kvqnjmb3UXG+xKMVSKHcunuX1uvAoolqdQejp 4/+w++fsG1ty9PUx0WovwAJB/1bWdPfjLzZ9fLcPqBKU+SQXblN8v0rmYDMJAjwfhHtk Jio4Alm1+y43reiJxHhZu9JDOlpiKtEtqhkIaZP34M8IrVtKv1O4wE84Fi4y4kLbFD9A hOIg== X-Gm-Message-State: AOAM53049yVmG2qKvWglr4uIHII+tAOUQw//QRnkKGu2lJloetRD5mfe jIuCp6QCggMyyOOM+d36SHm46thkwQDPqMME04+yvQ== X-Google-Smtp-Source: ABdhPJxrLmDLa+HjRoX8Rv60uwocrI+Qc6d7xcHSWB8bchkHtGLPk+nY6fi0MnnqybP7bULCaOkzltqGHJO4o0kGo9M= X-Received: by 2002:adf:fb91:: with SMTP id a17mr18038543wrr.376.1631019219992; Tue, 07 Sep 2021 05:53:39 -0700 (PDT) MIME-Version: 1.0 References: <20210822144441.1290891-1-maz@kernel.org> In-Reply-To: <20210822144441.1290891-1-maz@kernel.org> From: Peter Maydell Date: Tue, 7 Sep 2021 13:52:51 +0100 Message-ID: Subject: Re: [PATCH 0/3] target/arm: Reduced-IPA space and highmem=off fixes To: Marc Zyngier Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jones , kvm-devel , QEMU Developers , Eric Auger , Android Kernel Team , kvmarm Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Sun, 22 Aug 2021 at 15:45, Marc Zyngier wrote: > > With the availability of a fruity range of arm64 systems, it becomes > obvious that QEMU doesn't deal very well with limited IPA ranges when > used as a front-end for KVM. > > This short series aims at making usable on such systems: > - the first patch makes the creation of a scratch VM IPA-limit aware > - the second one actually removes the highmem devices from the > computed IPA range when highmem=off > - the last one addresses an imprecision in the documentation for the > highmem option > > This has been tested on an M1-based Mac-mini running Linux v5.14-rc6. > > Marc Zyngier (3): > hw/arm/virt: KVM: Probe for KVM_CAP_ARM_VM_IPA_SIZE when creating > scratch VM > hw/arm/virt: Honor highmem setting when computing highest_gpa > docs/system/arm/virt: Fix documentation for the 'highmem' option I've applied patch 1 to target-arm.next; thanks. -- PMM