Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1053934pxk; Fri, 18 Sep 2020 02:37:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWH/rISoJ1g5+fikVhjYtGTrCfmxU51u5f1gq5CZfVGVZ0KpiycA3cbH4qUZHKOHW+79Ub X-Received: by 2002:a17:906:6b0b:: with SMTP id q11mr36324698ejr.412.1600421874508; Fri, 18 Sep 2020 02:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600421874; cv=none; d=google.com; s=arc-20160816; b=IRlaCcnL0rDVS1Rcc/5qVB0V65qsOcJSaRdVOSRUt7JVARAU1PO/1Qi8IdJumyPkjA zQD99p5OaGTsCVn7uwg01gJwOGsEPboVxB7lqc4pwk2oBL/HpNEJl1za+QuaRNZ9gxr7 XvtGWTY4vkE7Asx5ADIqCGSXtPUNzpGJbucXyWE8XymGuUQDrkAZTNQUzptGUAJ6dDMO 19EAhJCfzaBDoV5U5ogqhwHbMDjqr/y7lKrDPBxDrbre3JmJF3Cex+4m6SOg8OlE3dq6 5Fk7scsuypIFubeOASuVrIyYLum2rYCePtGfB8oogMvxTyjXNZPE53tbCP67HbPqADFv qvsw== 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=YyxvQapKO8cJ+h1msTh4Bn1k/c9vh0JXpNMN+TtY/Sw=; b=wMjkvZoePvfpgwfF6g2UVk+/l5Qvlfk8a3+h5hzYLFnzMt/0peBl9mW9xXtMKX0ue+ 1Vaoy3dOQboGuQTnkSu8hSi5BbAWTDyWACLhlfxLzekm2QP/AB2jRUaG7OO9ij/XJehX B9gqBUibCMZZdatiu8NnQ1usn3LdNqDEv1jrbU0cWzQKZzd6W5KrBOVhXmDKDypyoQCc Qdy6Zify5l5omPWVMEelWyuA6DZPT03v3fIwLKsYCxYfB1g0IX2WFerAiBSXE2RtnIZM 31s1UGa0awkVBqmTrAaWKBdSxhfzg86o8F9+KFfCfe0wYkecSOJjOYYcA4cFjaETG9zJ gpDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ahAFF1i7; 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 p25si1692489ejw.682.2020.09.18.02.37.31; Fri, 18 Sep 2020 02:37:54 -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=ahAFF1i7; 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 S1726466AbgIRJda (ORCPT + 99 others); Fri, 18 Sep 2020 05:33:30 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:50439 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726159AbgIRJd3 (ORCPT ); Fri, 18 Sep 2020 05:33:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600421608; 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=YyxvQapKO8cJ+h1msTh4Bn1k/c9vh0JXpNMN+TtY/Sw=; b=ahAFF1i7fMzT8xjFRQLAOL+w1Mvw5o0mCjlI2GNpje+SkkEcMcAar7PTgchXmrBMULCwlx +yi55h+ULht+PyR0Qgi6LtUchbOSVYhGysGB0hk9+cb+4qC/md+ab+4nPSEeienloDhiP7 Dp8r/gDS1gxfQTDK6Y4xvU4mw3zK8Bg= 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-585-DO35AFk4Nsq_aFG1fRQDGA-1; Fri, 18 Sep 2020 05:33:22 -0400 X-MC-Unique: DO35AFk4Nsq_aFG1fRQDGA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4AB5F1091066; Fri, 18 Sep 2020 09:33:21 +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 672E519D6C; Fri, 18 Sep 2020 09:33:14 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 943F516E0A; Fri, 18 Sep 2020 11:33:13 +0200 (CEST) Date: Fri, 18 Sep 2020 11:33:13 +0200 From: Gerd Hoffmann To: "Michael S. Tsirkin" Cc: Sean Christopherson , 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 Subject: Re: [PATCH v2 0/3] KVM: x86: KVM_MEM_PCI_HOLE memory Message-ID: <20200918093313.7qfsgi7o46imqunc@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> <20200904072905.vbkiq3h762fyzds6@sirius.home.kraxel.org> <20200907065054-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200907065054-mutt-send-email-mst@kernel.org> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > We could probably wire up ecam (arm/virt style) for pcie support, once > > the acpi support for mictovm finally landed (we need acpi for that > > because otherwise the kernel wouldn't find the pcie bus). > > > > Question is whenever there is a good reason to do so. Why would someone > > prefer microvm with pcie support over q35? > > The usual reasons to use pcie apply to microvm just the same. > E.g.: pass through of pcie devices? Playground: https://git.kraxel.org/cgit/qemu/log/?h=sirius/microvm-usb Adds support for usb and pcie (use -machine microvm,usb=on,pcie=on to enable). Reuses the gpex used on arm/aarch64. Seems to work ok on a quick test. Not fully sure how to deal correctly with ioports. The gpex device has a mmio window for the io address space. Will that approach work on x86 too? Anyway, just not having a ioport range seems to be a valid configuation, so I've just disabled them for now ... take care, Gerd