diff options
author | Zhenzhong Duan <zhenzhong.duan@oracle.com> | 2019-07-11 08:02:10 -0400 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2019-07-17 02:09:58 -0400 |
commit | b39b049749ce08c7756be57082177730617bb9a0 (patch) | |
tree | b97c0fdbd1873cd88057655bdd52cea4c75c8f54 | |
parent | 30978346372e5c43a652cfbd4533c6bd5427c33b (diff) |
xen: Map "xen_nopv" parameter to "nopv" and mark it obsolete
Clean up unnecessory code after that operation.
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Signed-off-by: Juergen Gross <jgross@suse.com>
-rw-r--r-- | Documentation/admin-guide/kernel-parameters.txt | 2 | ||||
-rw-r--r-- | arch/x86/xen/enlighten_hvm.c | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 936e8e7e6474..2d990585402c 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt | |||
@@ -5243,6 +5243,8 @@ | |||
5243 | xen_nopv [X86] | 5243 | xen_nopv [X86] |
5244 | Disables the PV optimizations forcing the HVM guest to | 5244 | Disables the PV optimizations forcing the HVM guest to |
5245 | run as generic HVM guest with no PV drivers. | 5245 | run as generic HVM guest with no PV drivers. |
5246 | This option is obsoleted by the "nopv" option, which | ||
5247 | has equivalent effect for XEN platform. | ||
5246 | 5248 | ||
5247 | xen_scrub_pages= [XEN] | 5249 | xen_scrub_pages= [XEN] |
5248 | Boolean option to control scrubbing pages before giving them back | 5250 | Boolean option to control scrubbing pages before giving them back |
diff --git a/arch/x86/xen/enlighten_hvm.c b/arch/x86/xen/enlighten_hvm.c index ac4943cd456a..1756cf775ef2 100644 --- a/arch/x86/xen/enlighten_hvm.c +++ b/arch/x86/xen/enlighten_hvm.c | |||
@@ -210,18 +210,18 @@ static void __init xen_hvm_guest_init(void) | |||
210 | #endif | 210 | #endif |
211 | } | 211 | } |
212 | 212 | ||
213 | static bool xen_nopv; | ||
214 | static __init int xen_parse_nopv(char *arg) | 213 | static __init int xen_parse_nopv(char *arg) |
215 | { | 214 | { |
216 | xen_nopv = true; | 215 | pr_notice("\"xen_nopv\" is deprecated, please use \"nopv\" instead\n"); |
217 | return 0; | 216 | |
217 | if (xen_cpuid_base()) | ||
218 | nopv = true; | ||
219 | return 0; | ||
218 | } | 220 | } |
219 | early_param("xen_nopv", xen_parse_nopv); | 221 | early_param("xen_nopv", xen_parse_nopv); |
220 | 222 | ||
221 | bool __init xen_hvm_need_lapic(void) | 223 | bool __init xen_hvm_need_lapic(void) |
222 | { | 224 | { |
223 | if (xen_nopv) | ||
224 | return false; | ||
225 | if (xen_pv_domain()) | 225 | if (xen_pv_domain()) |
226 | return false; | 226 | return false; |
227 | if (!xen_hvm_domain()) | 227 | if (!xen_hvm_domain()) |
@@ -233,7 +233,7 @@ bool __init xen_hvm_need_lapic(void) | |||
233 | 233 | ||
234 | static uint32_t __init xen_platform_hvm(void) | 234 | static uint32_t __init xen_platform_hvm(void) |
235 | { | 235 | { |
236 | if (xen_pv_domain() || xen_nopv) | 236 | if (xen_pv_domain()) |
237 | return 0; | 237 | return 0; |
238 | 238 | ||
239 | return xen_cpuid_base(); | 239 | return xen_cpuid_base(); |