diff mbox series

xen: issue deprecation warning for 32-bit pv guest

Message ID 20191025073858.15081-1-jgross@suse.com (mailing list archive)
State Accepted
Commit 6ccae60d014d5d1f89c40e7e4b619f343ca24b03
Headers show
Series xen: issue deprecation warning for 32-bit pv guest | expand

Commit Message

Jürgen Groß Oct. 25, 2019, 7:38 a.m. UTC
Support for the kernel as Xen 32-bit PV guest will soon be removed.
Issue a warning when booted as such.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
 arch/x86/xen/enlighten_pv.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Boris Ostrovsky Oct. 25, 2019, 1:48 p.m. UTC | #1
On 10/25/19 3:38 AM, Juergen Gross wrote:
> Support for the kernel as Xen 32-bit PV guest will soon be removed.
> Issue a warning when booted as such.
>
> Signed-off-by: Juergen Gross <jgross@suse.com>

Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>

> ---
>  arch/x86/xen/enlighten_pv.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c
> index 58f79ab32358..5bfea374a160 100644
> --- a/arch/x86/xen/enlighten_pv.c
> +++ b/arch/x86/xen/enlighten_pv.c
> @@ -117,6 +117,14 @@ static void __init xen_banner(void)
>  	printk(KERN_INFO "Xen version: %d.%d%s%s\n",
>  	       version >> 16, version & 0xffff, extra.extraversion,
>  	       xen_feature(XENFEAT_mmu_pt_update_preserve_ad) ? " (preserve-AD)" : "");
> +
> +#ifdef CONFIG_X86_32
> +	pr_warn("WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!\n"
> +		"Support for running as 32-bit PV-guest under Xen will soon be removed\n"
> +		"from the Linux kernel!\n"
> +		"Please use either a 64-bit kernel or switch to HVM or PVH mode!\n"
> +		"WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!\n");
> +#endif
>  }
>  
>  static void __init xen_pv_init_platform(void)
H. Peter Anvin Oct. 28, 2019, 8:46 a.m. UTC | #2
On October 25, 2019 12:38:58 AM PDT, Juergen Gross <jgross@suse.com> wrote:
>Support for the kernel as Xen 32-bit PV guest will soon be removed.
>Issue a warning when booted as such.
>
>Signed-off-by: Juergen Gross <jgross@suse.com>
>---
> arch/x86/xen/enlighten_pv.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
>diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c
>index 58f79ab32358..5bfea374a160 100644
>--- a/arch/x86/xen/enlighten_pv.c
>+++ b/arch/x86/xen/enlighten_pv.c
>@@ -117,6 +117,14 @@ static void __init xen_banner(void)
> 	printk(KERN_INFO "Xen version: %d.%d%s%s\n",
> 	       version >> 16, version & 0xffff, extra.extraversion,
>	       xen_feature(XENFEAT_mmu_pt_update_preserve_ad) ? "
>(preserve-AD)" : "");
>+
>+#ifdef CONFIG_X86_32
>+	pr_warn("WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
>WARNING!\n"
>+		"Support for running as 32-bit PV-guest under Xen will soon be
>removed\n"
>+		"from the Linux kernel!\n"
>+		"Please use either a 64-bit kernel or switch to HVM or PVH mode!\n"
>+		"WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!\n");
>+#endif
> }
> 
> static void __init xen_pv_init_platform(void)

And there was much rejoicing.

Yaay.
diff mbox series

Patch

diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c
index 58f79ab32358..5bfea374a160 100644
--- a/arch/x86/xen/enlighten_pv.c
+++ b/arch/x86/xen/enlighten_pv.c
@@ -117,6 +117,14 @@  static void __init xen_banner(void)
 	printk(KERN_INFO "Xen version: %d.%d%s%s\n",
 	       version >> 16, version & 0xffff, extra.extraversion,
 	       xen_feature(XENFEAT_mmu_pt_update_preserve_ad) ? " (preserve-AD)" : "");
+
+#ifdef CONFIG_X86_32
+	pr_warn("WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!\n"
+		"Support for running as 32-bit PV-guest under Xen will soon be removed\n"
+		"from the Linux kernel!\n"
+		"Please use either a 64-bit kernel or switch to HVM or PVH mode!\n"
+		"WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!\n");
+#endif
 }
 
 static void __init xen_pv_init_platform(void)