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=-0.6 required=3.0 tests=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 023B1C10DCE for ; Thu, 12 Mar 2020 06:42:15 +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 D9AB2206F7 for ; Thu, 12 Mar 2020 06:42:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FV79owcc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D9AB2206F7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:36676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCHXq-0000W7-0X for qemu-devel@archiver.kernel.org; Thu, 12 Mar 2020 02:42:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59448) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCHWy-0008RV-SJ for qemu-devel@nongnu.org; Thu, 12 Mar 2020 02:41:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCHWx-0002ML-9P for qemu-devel@nongnu.org; Thu, 12 Mar 2020 02:41:20 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:31176 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jCHWx-0002LE-5V for qemu-devel@nongnu.org; Thu, 12 Mar 2020 02:41:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583995278; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GxroZQBHyIguzjnBuOxds9BaNUaG43cA6twYedD1sXc=; b=FV79owcc9yAIkscC+gwviDtTSpoLu+ySwKVn5chjitw5Bq8quCpikQvBa8BwsZcaCKBZeg ttaMXjLN4rbUk94q4WPy1al20tFG/H3ucdsmjbIQRZA5wXbdG5HrWt2nx17kT9F7ZMACQ9 EWb+J8U5+HPDS5WSSeAo+4XWeqiiv7Y= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-183-8U-r3jt1Nim2mexpK81C3w-1; Thu, 12 Mar 2020 02:41:16 -0400 X-MC-Unique: 8U-r3jt1Nim2mexpK81C3w-1 Received: by mail-qt1-f200.google.com with SMTP id w3so2849943qtc.8 for ; Wed, 11 Mar 2020 23:41:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ihtsBa6/PJ/vqqD3FWYFeopF0KNgqc0SdH2mU5Pjc5A=; b=jmu2R8em/3KGvazeCFQ3odJS/WzaLbr5fdwjEHdCwPoj36s/MMx35fKERwmncu3/Mi BjAvvGsDsMWXodjeriWbvA9rAeKYEPlww3h6S+LLccHSdwyNh8uoPQoVzBkhuUMWLDoq U/E16z6VBoWTEaMRgcMqjpQXZPBzXcGyhR1jZsW/7WY5zAO2vd3zcjQvBrsJoIBc0DD4 HJ9CnuQ7pu0JYbWEA+FC3aIfA2GXPkzTZ1yQpQqNvmzAeBr16bWv0EmcBL9qYT1g5RLZ f4C0e6fQU8f1sQfRYicQQSAcySpwCOCGK0WyZKyWM9wL7pTvrAjpLIhuCUj19mu9BLZ5 +wJA== X-Gm-Message-State: ANhLgQ3SCjlyYN9JNKYtW37jcuxTFpc60KNpPqj8RiQleRmpaWGzTJe9 q4yKYmJCx2iLMO6Te1UAtd4LzOpEhuSbWzjWf41rfeDQB0ubQhsaEoOSRQZXgton2WuVwB/kWmd /a4BV8Y4cauR7qG8= X-Received: by 2002:ac8:6615:: with SMTP id c21mr612984qtp.191.1583995275712; Wed, 11 Mar 2020 23:41:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsilI+miayL+HQxEtVKVPX1H00hAg302DZrbTOwjQu+FfLxVgDtmcRdMV57CuTIbVderm+LKQ== X-Received: by 2002:ac8:6615:: with SMTP id c21mr612974qtp.191.1583995275445; Wed, 11 Mar 2020 23:41:15 -0700 (PDT) Received: from redhat.com (bzq-79-178-2-19.red.bezeqint.net. [79.178.2.19]) by smtp.gmail.com with ESMTPSA id g15sm23059476qtq.71.2020.03.11.23.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 23:41:14 -0700 (PDT) Date: Thu, 12 Mar 2020 02:41:09 -0400 From: "Michael S. Tsirkin" To: David Gibson Subject: Re: [PATCH v3 1/2] spapr: Disable legacy virtio devices for pseries-5.0 and later Message-ID: <20200312023328-mutt-send-email-mst@kernel.org> References: <20200305043009.611636-1-david@gibson.dropbear.id.au> <20200305043009.611636-2-david@gibson.dropbear.id.au> <20200310115611.GE3234052@redhat.com> <20200311005857.GS660117@umbus.fritz.box> <20200311030812-mutt-send-email-mst@kernel.org> <20200312011420.GD711223@umbus.fritz.box> MIME-Version: 1.0 In-Reply-To: <20200312011420.GD711223@umbus.fritz.box> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 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: pair@us.ibm.com, Daniel =?iso-8859-1?Q?P=2E_Berrang=E9?= , aik@ozlabs.ru, groug@kaod.org, qemu-devel@nongnu.org, paulus@samba.org, clg@kaod.org, mdroth@us.ibm.com, qemu-ppc@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Thu, Mar 12, 2020 at 12:14:20PM +1100, David Gibson wrote: > On Wed, Mar 11, 2020 at 03:11:16AM -0400, Michael S. Tsirkin wrote: > > On Wed, Mar 11, 2020 at 11:58:57AM +1100, David Gibson wrote: > > > Note that several things that I believe are now in the PCIe spec, but > > > really derive more from PC legacy considerations, don't apply at all > > > for PAPR. e.g. there's no meaningful distinction between integrated > > > and slotted devices, multiple independent host bridges is routine and > > > doesn't require any (virtual) hardware visible domain numbers. > >=20 > > Domain numbers are a Linux thing, not a PCIe thing. On x86 they come > > from ACPI segment numbers. As such they aren't usually hardware > > visible on x86, they are supplied by firmware. >=20 > Oh, ok. I thought that at least on the standard IO 0xcf8 host bridge > controller the domain number was written into certain registers to > select the relevant root bus. standard 0xcf8 can only access 256 bus numbers. software does not much care on which root bus these are though. > On POWER the domain numbers are arbitrarily assigned within Linux. > "Hardware" (well, the firmware/hypervisor) uses a different > identifier, called the BUID (generally a large, 64-bit pseudo-address) > in the device tree and hypercalls. >=20 > [As an aside, this means the use of domain numbers in libvirt XML is > complete bogosity] For fun, they aren't actually used either. And of course using the word "domain" in a domain XML format means you can't search for it anywhere without getting a million unrelated hits. > --=20 > David Gibson=09=09=09| I'll have my music baroque, and my code > david AT gibson.dropbear.id.au=09| minimalist, thank you. NOT _the_ _oth= er_ > =09=09=09=09| _way_ _around_! > http://www.ozlabs.org/~dgibson