Commit 3fab2d10 authored by Cédric Le Goater's avatar Cédric Le Goater Committed by Paul Mackerras

KVM: PPC: Book3S HV: XIVE: Activate XIVE exploitation mode

Full support for the XIVE native exploitation mode is now available,
advertise the capability KVM_CAP_PPC_IRQ_XIVE for guests running on
PowerNV KVM Hypervisors only. Support for nested guests (pseries KVM
Hypervisor) is not yet available. XIVE should also have been activated
which is default setting on POWER9 systems running a recent Linux
kernel.
Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
Reviewed-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: default avatarPaul Mackerras <paulus@ozlabs.org>
parent 232b984b
...@@ -573,10 +573,11 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) ...@@ -573,10 +573,11 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
#ifdef CONFIG_KVM_XIVE #ifdef CONFIG_KVM_XIVE
case KVM_CAP_PPC_IRQ_XIVE: case KVM_CAP_PPC_IRQ_XIVE:
/* /*
* Return false until all the XIVE infrastructure is * We need XIVE to be enabled on the platform (implies
* in place including support for migration. * a POWER9 processor) and the PowerNV platform, as
* nested is not yet supported.
*/ */
r = 0; r = xive_enabled() && !!cpu_has_feature(CPU_FTR_HVMODE);
break; break;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment