Skip to contentSkip to conversation

xen: fix pv domain on amd in 4.9 stable branch

PATCH In review Juergen Gross 3 participants 8 messages May 29, 2018 – May 30, 2018

Subsystems (3)
lore
Share & tools
lore

Juergen Gross

author maintainer
#0 lore raw

PATCH 1/1 xen: fix pv domain on amd in 4.9 stable branch

Commit 944e0fc51a89c9827b98813d65dc083274777c7f ("x86/amd: don't set X86_BUG_SYSRET_SS_ATTRS when running under Xen") breaks Xen pv-domains on AMD processors, as a prerequisite patch from upstream wasn't added to 4.9.

Fix that by adding the prerequisite setting of X86_FEATURE_XENPV to the Xen pv early boot path.

Cc David Woodhouse <[email protected]>
Cc Boris Ostrovsky <[email protected]>
---
 arch/x86/xen/enlighten.c | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/xen/enlighten.c +3 -0
index 081437b5f381..674656cdb68c 100644
@@ -1632,6 +1632,9 @@ asmlinkage __visible void __init xen_start_kernel(void)
 	xen_init_irq_ops();
 	xen_init_cpuid_mask();
 
+	/* Needed for init_amd(). */
+	setup_force_cpu_cap(X86_FEATURE_XENPV);
+
 #ifdef CONFIG_X86_LOCAL_APIC
 	/*
 	 * set up the basic apic ops.
Signature · 1 line
2.13.6
maintainer
#1 lore raw
Quoted 4 lines · Juergen Gross

Commit 944e0fc51a89c9827b98813d65dc083274777c7f ("x86/amd: don't set X86_BUG_SYSRET_SS_ATTRS when running under Xen") breaks Xen pv-domains on AMD processors, as a prerequisite patch from upstream wasn't added to 4.9.

What is the prerequsite patch's git id in Linus's tree?

Quoted 26 lines

Fix that by adding the prerequisite setting of X86_FEATURE_XENPV to the Xen pv early boot path.

Cc David Woodhouse <[email protected]>
Cc Boris Ostrovsky <[email protected]>
---
 arch/x86/xen/enlighten.c | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/xen/enlighten.c +3 -0
index 081437b5f381..674656cdb68c 100644
@@ -1632,6 +1632,9 @@ asmlinkage __visible void __init xen_start_kernel(void)
 	xen_init_irq_ops();
 	xen_init_cpuid_mask();
 
+	/* Needed for init_amd(). */
+	setup_force_cpu_cap(X86_FEATURE_XENPV);
+
 #ifdef CONFIG_X86_LOCAL_APIC
 	/*
 	 * set up the basic apic ops.
Signature · 1 line
2.13.6

I'd prefer to take whatever is in Linus's tree if at all possible.

thanks,

greg k-h

maintainer
#7 lore raw
In reply to Juergen Gross
Quoted 4 lines · Juergen Gross

Commit 944e0fc51a89c9827b98813d65dc083274777c7f ("x86/amd: don't set X86_BUG_SYSRET_SS_ATTRS when running under Xen") breaks Xen pv-domains on AMD processors, as a prerequisite patch from upstream wasn't added to 4.9.

What is the prerequsite patch's git id in Linus's tree?

Quoted 26 lines

Fix that by adding the prerequisite setting of X86_FEATURE_XENPV to the Xen pv early boot path.

Cc David Woodhouse <[email protected]>
Cc Boris Ostrovsky <[email protected]>
---
 arch/x86/xen/enlighten.c | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/xen/enlighten.c +3 -0
index 081437b5f381..674656cdb68c 100644
@@ -1632,6 +1632,9 @@ asmlinkage __visible void __init xen_start_kernel(void)
 	xen_init_irq_ops();
 	xen_init_cpuid_mask();
 
+	/* Needed for init_amd(). */
+	setup_force_cpu_cap(X86_FEATURE_XENPV);
+
 #ifdef CONFIG_X86_LOCAL_APIC
 	/*
 	 * set up the basic apic ops.
Signature · 1 line
2.13.6

I'd prefer to take whatever is in Linus's tree if at all possible.

thanks,

greg k-h

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

author maintainer
#2 lore raw
In reply to Greg KH
Quoted 7 lines · Greg KH
Quoted 4 lines · Juergen Gross

Commit 944e0fc51a89c9827b98813d65dc083274777c7f ("x86/amd: don't set X86_BUG_SYSRET_SS_ATTRS when running under Xen") breaks Xen pv-domains on AMD processors, as a prerequisite patch from upstream wasn't added to 4.9.

What is the prerequsite patch's git id in Linus's tree?

Commit 0808e80cb760de2733c0527d2090ed2205a1eef8. It won't apply, backporting is rather easy, though.

I thought this was a patch in the middle of a larger series, but obviously I misremembered. It was the first patch of that series.

I'll send a series in case you don't object:

- revert of stable-4.9 944e0fc51a89c9827b98813d65dc083274777c7f
- backport of 0808e80cb760de2733c0527d2090ed2205a1eef8
- new backport of def9331a12977770cc6132d79f8e6565871e8e38

Juergen

author maintainer
#6 lore raw
In reply to Greg KH
Quoted 7 lines · Greg KH
Quoted 4 lines · Juergen Gross

Commit 944e0fc51a89c9827b98813d65dc083274777c7f ("x86/amd: don't set X86_BUG_SYSRET_SS_ATTRS when running under Xen") breaks Xen pv-domains on AMD processors, as a prerequisite patch from upstream wasn't added to 4.9.

What is the prerequsite patch's git id in Linus's tree?

Commit 0808e80cb760de2733c0527d2090ed2205a1eef8. It won't apply, backporting is rather easy, though.

I thought this was a patch in the middle of a larger series, but obviously I misremembered. It was the first patch of that series.

I'll send a series in case you don't object:

- revert of stable-4.9 944e0fc51a89c9827b98813d65dc083274777c7f
- backport of 0808e80cb760de2733c0527d2090ed2205a1eef8
- new backport of def9331a12977770cc6132d79f8e6565871e8e38

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

maintainer
#3 lore raw
In reply to Juergen Gross
Quoted 12 lines · Juergen Gross
Quoted 7 lines · Greg KH
Quoted 4 lines · Juergen Gross

Commit 944e0fc51a89c9827b98813d65dc083274777c7f ("x86/amd: don't set X86_BUG_SYSRET_SS_ATTRS when running under Xen") breaks Xen pv-domains on AMD processors, as a prerequisite patch from upstream wasn't added to 4.9.

What is the prerequsite patch's git id in Linus's tree?

Commit 0808e80cb760de2733c0527d2090ed2205a1eef8. It won't apply, backporting is rather easy, though.

Quoted 8 lines

I thought this was a patch in the middle of a larger series, but obviously I misremembered. It was the first patch of that series.

I'll send a series in case you don't object:

- revert of stable-4.9 944e0fc51a89c9827b98813d65dc083274777c7f
- backport of 0808e80cb760de2733c0527d2090ed2205a1eef8
- new backport of def9331a12977770cc6132d79f8e6565871e8e38

That would be great, I'll gladly take that, thanks.

greg k-h

maintainer
#5 lore raw
In reply to Juergen Gross
Quoted 12 lines · Juergen Gross
Quoted 7 lines · Greg KH
Quoted 4 lines · Juergen Gross

Commit 944e0fc51a89c9827b98813d65dc083274777c7f ("x86/amd: don't set X86_BUG_SYSRET_SS_ATTRS when running under Xen") breaks Xen pv-domains on AMD processors, as a prerequisite patch from upstream wasn't added to 4.9.

What is the prerequsite patch's git id in Linus's tree?

Commit 0808e80cb760de2733c0527d2090ed2205a1eef8. It won't apply, backporting is rather easy, though.

Quoted 8 lines

I thought this was a patch in the middle of a larger series, but obviously I misremembered. It was the first patch of that series.

I'll send a series in case you don't object:

- revert of stable-4.9 944e0fc51a89c9827b98813d65dc083274777c7f
- backport of 0808e80cb760de2733c0527d2090ed2205a1eef8
- new backport of def9331a12977770cc6132d79f8e6565871e8e38

That would be great, I'll gladly take that, thanks.

greg k-h

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw
In reply to Greg KH
Quoted 20 lines · Greg KH
Quoted 19 lines · Juergen Gross
Quoted 11 lines · Greg KH
Quoted 8 lines · Juergen Gross

Commit 944e0fc51a89c9827b98813d65dc083274777c7f ("x86/amd:
don't set
X86_BUG_SYSRET_SS_ATTRS when running under Xen") breaks Xen pv- domains
on AMD processors, as a prerequisite patch from upstream wasn't added
to 4.9.

What is the prerequsite patch's git id in Linus's tree?

Commit 0808e80cb760de2733c0527d2090ed2205a1eef8. It won't apply, backporting is rather easy, though.

I thought this was a patch in the middle of a larger series, but obviously I misremembered. It was the first patch of that series.

Quoted 7 lines
Quoted 5 lines

I'll send a series in case you don't object:

- revert of stable-4.9 944e0fc51a89c9827b98813d65dc083274777c7f
- backport of 0808e80cb760de2733c0527d2090ed2205a1eef8
- new backport of def9331a12977770cc6132d79f8e6565871e8e38

That would be great, I'll gladly take that, thanks.

Apologies for messing that up. Thanks for fixing it.

Amazon Development Centre (London) Ltd. Registered in England and Wales with registration number 04543232 with its registered office at 1 Principal Place, Worship Street, London EC2A 2FA, United Kingdom.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel