]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: Forbid nested KVM-HV in pre-power9 compat mode
authorGreg Kurz <groug@kaod.org>
Thu, 16 Jul 2020 17:11:21 +0000 (19:11 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 12 Aug 2020 03:16:27 +0000 (13:16 +1000)
commit19d55e2031f2473a65ffc11aff5b1059e7c4173b
treed99714e57f93c23a6f3c0a91b9fe3ba3346768db
parentd9c5b5fa86ce37125dcc64c6274a1bc48cf11903
spapr: Forbid nested KVM-HV in pre-power9 compat mode

Nested KVM HV only works if the kernel is using the radix MMU mode, ie.
the CPU is POWER9 and it is not running in some pre-power9 compat mode.
Otherwise, the KVM HV module fails to load in the guest with -ENODEV.
It might be painful for a user to discover this late that nested cannot
work with their setup. Erroring out at machine init instead seems to be
the best we can do.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <159491948127.188975.9621435875869177751.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_caps.c