Received: from eggs.gnu.org ([208.118.235.92]:48765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufmc0-00069j-U4 for qemu-devel@nongnu.org; Fri, 24 May 2013 03:40:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufmbx-0007Y1-Un for qemu-devel@nongnu.org; Fri, 24 May 2013 03:40:28 -0400 Received: from ozlabs.org ([203.10.76.45]:42977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufmbx-0007Xl-JU for qemu-devel@nongnu.org; Fri, 24 May 2013 03:40:25 -0400 Date: Fri, 24 May 2013 17:40:12 +1000 From: David Gibson Message-ID: <20130524074012.GC22566@boomeroo.fritz.box> References: <1368059472-25071-1-git-send-email-david@gibson.dropbear.id.au> <1368059472-25071-6-git-send-email-david@gibson.dropbear.id.au> <20130523110407.GB17480@redhat.com> <519E2CE5.2050501@redhat.com> <20130523145711.GB24256@redhat.com> <519E2F17.1030809@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XMCwj5IQnwKtuyBG" Content-Disposition: inline In-Reply-To: <519E2F17.1030809@redhat.com> Subject: Re: [Qemu-devel] [PATCH 5/8] pci: Replace pci_find_domain() with more general pci_root_bus_path() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, "Michael S. Tsirkin" --XMCwj5IQnwKtuyBG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 23, 2013 at 05:00:39PM +0200, Paolo Bonzini wrote: > Il 23/05/2013 16:57, Michael S. Tsirkin ha scritto: > > On Thu, May 23, 2013 at 04:51:17PM +0200, Paolo Bonzini wrote: > >> Il 23/05/2013 13:04, Michael S. Tsirkin ha scritto: > >>>>> Most current uses of pci_find_domain() are for error or information= al > >>>>> messages, so the change in identifiers should be harmless. The exc= eption > >>>>> is pci_get_dev_path(), whose results form part of migration streams= =2E To > >>>>> maintain compatibility with old migration streams, the PIIX PCI hos= t is > >>>>> altered to always supply "0000" for this path, which matches the ol= d domain > >>>>> number (since the code didn't actually support domains other than 0= ). > >>>>> > >>>>> For the pseries (spapr) PCI bridge we use a different platform-uniq= ue > >>>>> identifier (pseries machines can routinely have dozens of PCI host > >>>>> bridges). Theoretically that breaks migration streams, but given t= hat we > >>>>> don't yet have migration support for pseries, it doesn't matter. > >>>>> > >>>>> Any other machines that have working migration support including PCI > >>>>> devices will need to be updated to maintain migration stream compat= ibility. > >>>>> > >>>>> Signed-off-by: David Gibson > >>> AFAIK PC is the only one with working migration, yes, but > >>> we have Q35 as well which can be migrated. > >> > >> Are we already supporting backwards/forwards migration with Q35? > >=20 > > We released 1.5 with Q35 so we better ... >=20 > We released 1.5 with Q35 migration disabled by default, IIRC to enable > it you need to remove the AHCI controller with -nodefaults. I think > bending the rules is still reasonable. For my purposes, it doesn't much matter. Naming the PCI root buses by domain number makes sense for Q35, as it does for PIIX. I've revised my patch to add a suitable root_bus_path hook for q35. Also, I've set up a github tree to publish this amongst other things: git://github.com/dgibson/qemu.git Branch 'pci'. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --XMCwj5IQnwKtuyBG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlGfGVwACgkQaILKxv3ab8bchwCdHWSVz23shfBhdoVhO0zRshDv 86UAni1ypgwU+8eAm9uVFnRsnm+d1Meb =Zp72 -----END PGP SIGNATURE----- --XMCwj5IQnwKtuyBG--