]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: Fix phb_placement backwards compatibility
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 20 May 2019 05:38:40 +0000 (15:38 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 29 May 2019 01:39:45 +0000 (11:39 +1000)
commiteb3cba827294e2c128cd484f423da648fada8f68
treed161ee93c38aeecddadb284a887bb046e3259cb2
parent571fbe6ccd7a159789e5d473e2837d45764197ec
spapr: Fix phb_placement backwards compatibility

When we added support for NVLink2 passthrough devices, we changed the
phb_placement hook to handle the placement of NVLink2 bridges' specific
resources.  For compatibility we use a version that doesn't do this
allocation  for old machine types.

However, because of the delay between when the patch was posted and when
it was merged, we ended up with that compatibility hook applying for
machine versions 3.1 and earlier whereas it should apply for 4.0 and
earlier (since the patch was applied early in the 4.1 tree).

Fixes: ec132efaa81 "spapr: Support NVIDIA V100 GPU with NVLink2"
Reported-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
hw/ppc/spapr.c