History

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.

Cédric Le Goater committed 7 years ago

Commit 3fab2d11 parent 232b9841 file · +4 −3Browse files

Unified · Split

arch/powerpc/kvm/powerpc.c+4−3
@@ -573,10 +573,11 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) · 572 unmodified lines
573573 #ifdef CONFIG_KVM_XIVE
574574 case KVM_CAP_PPC_IRQ_XIVE:
575575 /*
576− * Return false until all the XIVE infrastructure is
577− * in place including support for migration.
576+ * We need XIVE to be enabled on the platform (implies
577+ * a POWER9 processor) and the PowerNV platform, as
578+ * nested is not yet supported.
578579 */
579− r = 0;
580+ r = xive_enabled() && !!cpu_has_feature(CPU_FTR_HVMODE);
580581 break;
581582 #endif
582583

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t