]> git.ipfire.org Git - thirdparty/qemu.git/commit
spapr: Handle Decimal Floating Point (DFP) as an optional capability
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 11 Dec 2017 06:34:30 +0000 (17:34 +1100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 6 Feb 2018 00:53:54 +0000 (18:53 -0600)
commite4f4fa00ebebe4b2c2f2ec2d27b7a2b77ce1c25f
treefda320f86d234b9bd30b54e902db7293e5cbdeb9
parentff6f7e10c6991c676b9a4058e15db5262a6c38f3
spapr: Handle Decimal Floating Point (DFP) as an optional capability

Decimal Floating Point has been available on POWER7 and later (server)
cpus.  However, it can be disabled on the hypervisor, meaning that it's
not available to guests.

We currently handle this by conditionally advertising DFP support in the
device tree depending on whether the guest CPU model supports it - which
can also depend on what's allowed in the host for -cpu host.  That can lead
to confusion on migration, since host properties are silently affecting
guest visible properties.

This patch handles it by treating it as an optional capability for the
pseries machine type.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
(cherry picked from commit 2d1fb9bc8e6e78931d8e1bfeb0ed7a4d223b0480)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/spapr.c
hw/ppc/spapr_caps.c
include/hw/ppc/spapr.h