Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3314845pxk; Mon, 21 Sep 2020 10:22:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoTKHuZEHtVcTzc5Z2/KXweKELjUUp/2E0dOi5pS9A8nnJZeFIUVcOavGbvakxl8jJulBO X-Received: by 2002:aa7:c511:: with SMTP id o17mr748337edq.300.1600708978137; Mon, 21 Sep 2020 10:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600708978; cv=none; d=google.com; s=arc-20160816; b=A/rTKBwlPtSOdBjnfVYXL2vYOZ04fTyQpkRCW7PqhpPCbBn/LKgUh+txwydb5nyW1G K3BuZ9zvBU+PnZ1VLJb/bOFuoG8O+6rXz9OtSOUZR8oSooJ17tuBkxDlqI96L6ttKyQO 46qJPAU9xCSNIlNyVR4Gm67NI+h3QZXrYk9xPHL+Nyf01xKRTRkE83LNgT4GAEuom9SO mcGcUqaX2vylw2yTZtuxfHdlHeChBmvXOYaCbqq6BcBoi8kMYW8SBC5iXhEIR9jThBTV IQdQ14Myhx7DfLUMqdMMZYaKMIQnhrg8hPqFi1MuKh7xFBSPPETj5IvPtLOGNvX/vC/S Sl/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=CHR9hAGjG3OTEuynPBmWdEcaZ+sNkCXHbZRtatXlsWc=; b=rGM2IUl93/x+OeyJolVazW64qrualezpAHJFutpXB4+65O46vhLTwJRMplfHRTK7Uc x+Kv2QVHzCBSDgXeUxe0Rvc0aQLsn8DDLewjn+/DdCrxIG28eusbWcpLog+WDBfZ7l1s kDP5LjMi5SSaJfgGziBQ4kLj9u5OH8PATgvKlNRN9nf7LI2BVz30T2XfdE24uLzQWVrN eanbTRtLSJKt9o7T8FN5m4oyTdsmfH1Sdnx3f0iVxfKJ7fchvLsdu6SA+xWpFQHS2DP5 uX6yd5IrPljO6See0oKyYLudclzy5am2lu0J7hRcv/f/rN+/TXjl/qPthV9B3L3zejWX 3tsg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si5934958ejr.733.2020.09.21.10.22.33; Mon, 21 Sep 2020 10:22:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727743AbgIURVS (ORCPT + 99 others); Mon, 21 Sep 2020 13:21:18 -0400 Received: from mga03.intel.com ([134.134.136.65]:47536 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbgIURVS (ORCPT ); Mon, 21 Sep 2020 13:21:18 -0400 IronPort-SDR: Rpb66G1XP4cFtnOcTQKyfoQOQ5T6dMphRist8x4Ncr51tlYZjAHJKheGC9ODnMXVhQCj1TS8zm kQ3cqCoaHppA== X-IronPort-AV: E=McAfee;i="6000,8403,9751"; a="160505400" X-IronPort-AV: E=Sophos;i="5.77,287,1596524400"; d="scan'208";a="160505400" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2020 10:21:17 -0700 IronPort-SDR: VY7pyBgmT7sxVYCPzS3B8Hf7CmR/TndJJxV5G8TYir6MY8UbzeWwFmv0bs7O1+1ZIvP+hp6bJk lE3+0krGJxbA== X-IronPort-AV: E=Sophos;i="5.77,287,1596524400"; d="scan'208";a="510811785" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.160]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2020 10:21:16 -0700 Date: Mon, 21 Sep 2020 10:21:14 -0700 From: Sean Christopherson To: "Michael S. Tsirkin" Cc: Vitaly Kuznetsov , Peter Xu , kvm@vger.kernel.org, Paolo Bonzini , Wanpeng Li , Jim Mattson , Julia Suvorova , Andy Lutomirski , Andrew Jones , linux-kernel@vger.kernel.org, Gerd Hoffmann Subject: Re: [PATCH v2 0/3] KVM: x86: KVM_MEM_PCI_HOLE memory Message-ID: <20200921172114.GA24289@linux.intel.com> References: <87eenlwoaa.fsf@vitty.brq.redhat.com> <20200901200021.GB3053@xz-x1> <877dtcpn9z.fsf@vitty.brq.redhat.com> <20200904061210.GA22435@sjchrist-ice> <20200904072905.vbkiq3h762fyzds6@sirius.home.kraxel.org> <20200904160008.GA2206@sjchrist-ice> <874koanfsc.fsf@vitty.brq.redhat.com> <20200907072829-mutt-send-email-mst@kernel.org> <20200911170031.GD4344@sjchrist-ice> <20200918083134-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200918083134-mutt-send-email-mst@kernel.org> User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 18, 2020 at 08:34:37AM -0400, Michael S. Tsirkin wrote: > On Fri, Sep 11, 2020 at 10:00:31AM -0700, Sean Christopherson wrote: > > On Mon, Sep 07, 2020 at 07:32:23AM -0400, Michael S. Tsirkin wrote: > > > I suspect microvms will need pci eventually. I would much rather KVM > > > had an exit-less discovery mechanism in place by then because > > > learning from history if it doesn't they will do some kind of > > > hack on the kernel command line, and everyone will be stuck > > > supporting that for years ... > > > > Is it not an option for the VMM to "accurately" enumerate the number of buses? > > E.g. if the VMM has devices on only bus 0, then enumerate that there is one > > bus so that the guest doesn't try and probe devices that can't possibly exist. > > Or is that completely non-sensical and/or violate PCIe spec? > > > There is some tension here, in that one way to make guest boot faster > is to defer hotplug of devices until after it booted. Sorry, I didn't follow that, probably because my PCI knowledge is lacking. What does device hotplug have to do with the number of buses enumerated to the guest?