aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/xen/enlighten_hvm.c
diff options
context:
space:
mode:
authorZhenzhong Duan <[email protected]>2019-07-11 20:02:09 +0800
committerJuergen Gross <[email protected]>2019-07-17 08:09:58 +0200
commit30978346372e5c43a652cfbd4533c6bd5427c33b (patch)
tree0fb7e6a976d391af1469f7c4e210bef06e7ef5cb /arch/x86/xen/enlighten_hvm.c
parent1b37683cda0217305837fd1b79e7c57104d4f983 (diff)
x86: Add "nopv" parameter to disable PV extensions
In virtualization environment, PV extensions (drivers, interrupts, timers, etc) are enabled in the majority of use cases which is the best option. However, in some cases (kexec not fully working, benchmarking) we want to disable PV extensions. We have "xen_nopv" for that purpose but only for XEN. For a consistent admin experience a common command line parameter "nopv" set across all PV guest implementations is a better choice. There are guest types which just won't work without PV extensions, like Xen PV, Xen PVH and jailhouse. add a "ignore_nopv" member to struct hypervisor_x86 set to true for those guest types and call the detect functions only if nopv is false or ignore_nopv is true. Suggested-by: Juergen Gross <[email protected]> Signed-off-by: Zhenzhong Duan <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Jan Kiszka <[email protected]> Cc: Boris Ostrovsky <[email protected]> Cc: Stefano Stabellini <[email protected]> Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'arch/x86/xen/enlighten_hvm.c')
0 files changed, 0 insertions, 0 deletions