[PATCH v2 0/7] misc fixes to PV extentions code

From: Zhenzhong Duan
Date: Tue Jun 25 2019 - 08:00:27 EST


[PATCH v2 1/7] x86/xen: Mark xen_hvm_need_lapic() and xen_hvm_need_lapic() as __init
[PATCH v2 2/7] x86/jailhouse: Mark jailhouse_x2apic_available as __init

Above two patches only add __init annotation to some functions, not
related to other patches. I didn't split the two out as following patches
need them to avoid conflicts.


[PATCH v2 3/7] x86: Add nopv parameter to disable PV extensions
[PATCH v2 4/7] Revert "xen: Introduce 'xen_nopv' to disable PV extensions for HVM guests."
[PATCH v2 5/7] x86/xen: nopv parameter support for HVM guest

Above three patches add an unified nopv prameter used for most of hypervisor
platform except XEN PV/PVH, jailhouse. Those need PV extensions to work.

I revert 'xen_nopv' as it's same effect as nopv on XEN platform, there is also
an issue using 'xen_nopv' with PVH, we should ignore 'xen_nopv' for PVH.

[PATCH v2 6/7] locking/spinlocks, paravirt, hyperv: Correct the hv_nopvspin case

This is a similar change as Commit e6fd28eb3522
("locking/spinlocks, paravirt, xen: Correct the xen_nopvspin case"), but for
hyperv.

[PATCH v2 7/7] Revert "x86/paravirt: Set up the virt_spin_lock_key after static keys get initialized"

This revert an old change which is unnecessory now, I think the original change is smarter.


v2:
PATCH3 use 'ignore_nopv' for PVH/PV guest as suggested by Jgross.
PATCH5 new added one, specifically for HVM guest

Thanks
Zhenzhong