diff options
author | Greg Kurz | 2017-08-17 13:23:50 +0200 |
---|---|---|
committer | David Gibson | 2017-09-08 01:30:55 +0200 |
commit | cc7b35b169e96600c09947a31c610c84a3eda3ff (patch) | |
tree | fe27a1dd46d8afd3e93d3d8af6b866fd822e327a /include/hw/ppc/spapr.h | |
parent | hw/nvram/spapr_nvram: Device can not be created by the users (diff) | |
download | qemu-cc7b35b169e96600c09947a31c610c84a3eda3ff.tar.gz qemu-cc7b35b169e96600c09947a31c610c84a3eda3ff.tar.xz qemu-cc7b35b169e96600c09947a31c610c84a3eda3ff.zip |
spapr: fallback to raw mode if best compat mode cannot be set during CAS
KVM PR doesn't allow to set a compat mode. This causes ppc_set_compat_all()
to fail and we return H_HARDWARE to the guest right away.
This is excessive: even if we favor compat mode since commit 152ef803ceb19,
we should at least fallback to raw mode if the guest supports it.
This patch modifies cas_check_pvr() so that it also reports that the real
PVR was found in the table supplied by the guest. Note that this is only
makes sense if raw mode isn't explicitely disabled (ie, the user didn't
set the machine "max-cpu-compat" property). If this is the case, we can
simply ignore ppc_set_compat_all() failures, and let the guest run in raw
mode.
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc/spapr.h')
0 files changed, 0 insertions, 0 deletions