Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1033109pxk; Fri, 18 Sep 2020 01:54:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhX/61JxtM8pjM9J7wiwOwUclVAWZ4Mkd82QaJ1cllF+zz/ceQ5F0836Z74Hh8miRUJyb6 X-Received: by 2002:a17:906:c0c4:: with SMTP id bn4mr26690516ejb.27.1600419275070; Fri, 18 Sep 2020 01:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600419275; cv=none; d=google.com; s=arc-20160816; b=hGIjdkI8rZu3yoWnQaQB+ybr6rRtKh46H8iKWcUePEBDY8aO2GSYoT6BkaghEu6WFW sH0cx2e1VvZ3F+clmjAbc1UGRolTay8rxh2DY+MiBdxiJFejxsE7JE8CrOAJ7n76ps/c vgn0qNkzsLpBnQnpmNOu8RYNSlwQEqTUbuMPOiT1dlxZBB/fkyFwjoJ6yefqLRyVUubx D2GJa0D7mSS6hqq0KKp1kOof84Tuno3CoMXLUFGLh14/80xKpeqroGi6sYjCx1fI0crg tVzpO7fQpvHV1pDTpXlKz8jnVb6lejTiQCSacl2HPJOdodKbFhpU6tZhtgUD6IAWMVMe fq6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/QfTiUWUoHzQknijYTUbsX5+5g78epx3oQpvxWAg6QE=; b=RydOCKbf1kcUYscni/3/mLTt4GAR9uv+xi5t/u7rLZhuOtsfxyZLXYEzu/faN6EP4G WVpZqjMX9KMywVE+Rz53GBeBF2dpZIn3ji/jKau0biyAw9uwUy2Rjt2mqyfSGTamvrjf l02SoqD05LWvYOdPxz1+lPBTPLQcFV+16N7j+QHhPDPpXgYfVOq9p1CI9TCeyUfYpvyi 8pKrdwpOMcdGVErSu2doB9EI7h++ISgWUb6QrsH+AGqzG2MZIeuNDHcOSPJD0u0gYHro rBlD6Y1U8u7pkiW9CupMqe/8ru39jY37d46LngXb3TeUFHYMTnoxNkty99xl1c6d01iI 2S2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Oe4Z2/gh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si1617649edq.339.2020.09.18.01.54.12; Fri, 18 Sep 2020 01:54:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Oe4Z2/gh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726687AbgIRItY (ORCPT + 99 others); Fri, 18 Sep 2020 04:49:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:33943 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726683AbgIRItW (ORCPT ); Fri, 18 Sep 2020 04:49:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600418960; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/QfTiUWUoHzQknijYTUbsX5+5g78epx3oQpvxWAg6QE=; b=Oe4Z2/ghXJJNOX3iOuktbP1VjdZSLHeMCOFY3Y5LuBIf7sezFIKWji8pBop9zMRZhfvU9E mOf290Ih5aZalxhfV24p2sGwCviwOxtcJZbH3YuEJz2b8iyRFeaQ4+jOc1UeRy2x1X408S VaZkluVITKGUQb3/XHGIh6cMs80qcPQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-206-De-04fBRN2mwIgOqXJGzFA-1; Fri, 18 Sep 2020 04:49:15 -0400 X-MC-Unique: De-04fBRN2mwIgOqXJGzFA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2C7C71084C92; Fri, 18 Sep 2020 08:49:14 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-85.ams2.redhat.com [10.36.112.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 55F311002D68; Fri, 18 Sep 2020 08:49:07 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 721CD16E16; Fri, 18 Sep 2020 10:49:06 +0200 (CEST) Date: Fri, 18 Sep 2020 10:49:06 +0200 From: Gerd Hoffmann To: Sean Christopherson Cc: Vitaly Kuznetsov , Peter Xu , kvm@vger.kernel.org, Paolo Bonzini , Wanpeng Li , Jim Mattson , Michael Tsirkin , Julia Suvorova , Andy Lutomirski , Andrew Jones , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/3] KVM: x86: KVM_MEM_PCI_HOLE memory Message-ID: <20200918084906.ja5elzh5zli47mg3@sirius.home.kraxel.org> References: <20200807141232.402895-1-vkuznets@redhat.com> <20200825212526.GC8235@xz-x1> <87eenlwoaa.fsf@vitty.brq.redhat.com> <20200901200021.GB3053@xz-x1> <877dtcpn9z.fsf@vitty.brq.redhat.com> <20200904061210.GA22435@sjchrist-ice> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200904061210.GA22435@sjchrist-ice> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > I see a similar ~8k PCI hole reads with a -kernel boot w/ OVMF. All but 60 > of those are from pcibios_fixup_peer_bridges(), and all are from the kernel. pcibios_fixup_peer_bridges() looks at pcibios_last_bus, and that in turn seems to be set according to the mmconfig size (in arch/x86/pci/mmconfig-shared.c). So, maybe we just need to declare a smaller mmconfig window in the acpi tables, depending on the number of pci busses actually used ... > If all of the above is true, this can be handled by adding "pci=lastbus=0" ... so we don't need manual quirks like this? take care, Gerd