Backport request
Hello,
Can you please backport c/s 0896bd8bea84526b00e00d2d076f4f953a3d73cb "x86: map portion of kexec crash area that is within the direct map area" to staging-4.3 ASAP, as following the backport of 8d611a00d3389d9c16506326e24145b94ac6fb86 "kexec/x86: do not map crash kernel area", kexec loading is broken in exactly the same way as it was in staging.
~Andrew
Quoted 8 lines · Andrew Cooper
Hello,
Can you please backport c/s
0896bd8bea84526b00e00d2d076f4f953a3d73cb"x86: map portion of kexec crash area that is within the direct map area" to staging-4.3 ASAP, as following the backport of8d611a00d3389d9c16506326e24145b94ac6fb86"kexec/x86: do not map crash kernel area", kexec loading is broken in exactly the same way as it was in staging.
This shouldn't be necessary for 4.3 as the old kexec implementation didn't use map_domain_page() but used several fixmap slots instead.
If this is broken in our XenServer 4.3 tree it's because we've backported the new kexec implementation and we'll have to do the backport of 0896bd8be ourselves.
David
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
Can you please backport c/s
0896bd8bea84526b00e00d2d076f4f953a3d73cb"x86: map portion of kexec crash area that is within the direct map area" to staging-4.3 ASAP, as following the backport of8d611a00d3389d9c16506326e24145b94ac6fb86"kexec/x86: do not map crash kernel area", kexec loading is broken in exactly the same way as it was in staging.
Not without explaining how it is broken: According to my own checking as well as Daniel's there was no need for the kexec area to be mapped at all in the old implementation.
Furthermore, I'd prefer to revert 8d611a00 (dff90d0c on 4.2) instead if there really is an issue. That's largely because, as noted in the extra comment I added to 0896bd8b, the change is still incomplete (and hence not much better than the code with Daniel's change reverted).
Jan
Quoted 12 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
Can you please backport c/s
0896bd8bea84526b00e00d2d076f4f953a3d73cb"x86: map portion of kexec crash area that is within the direct map area" to staging-4.3 ASAP, as following the backport of8d611a00d3389d9c16506326e24145b94ac6fb86"kexec/x86: do not map crash kernel area", kexec loading is broken in exactly the same way as it was in staging.Not without explaining how it is broken: According to my own checking as well as Daniel's there was no need for the kexec area to be mapped at all in the old implementation.
Quoted 5 lines
Furthermore, I'd prefer to revert
8d611a00(dff90d0con 4.2) instead if there really is an issue. That's largely because, as noted in the extra comment I added to0896bd8b, the change is still incomplete (and hence not much better than the code with Daniel's change reverted).
In that comment it says:
"That's primarily because map_domain_page()
(needed when the area is outside the direct mapping range) may be unusable when wanting to kexec due to a crash,"
But map_domain_page() is only used when loading the crash image, not during exec.
David
Quoted 20 lines
Quoted 1 line
Quoted 1 line · David Vrabel
Quoted 12 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
Can you please backport c/s
0896bd8bea84526b00e00d2d076f4f953a3d73cb"x86: map portion of kexec crash area that is within the direct map area" to staging-4.3 ASAP, as following the backport of8d611a00d3389d9c16506326e24145b94ac6fb86"kexec/x86: do not map crash kernel area", kexec loading is broken in exactly the same way as it was in staging.Not without explaining how it is broken: According to my own checking as well as Daniel's there was no need for the kexec area to be mapped at all in the old implementation.
Quoted 5 lines
Furthermore, I'd prefer to revert
8d611a00(dff90d0con 4.2) instead if there really is an issue. That's largely because, as noted in the extra comment I added to0896bd8b, the change is still incomplete (and hence not much better than the code with Daniel's change reverted).
Quoted 8 lines
In that comment it says:
"That's primarily because
map_domain_page()
(needed when the area is outside the direct mapping range) may be unusable when wanting to kexec due to a crash,"But
map_domain_page()is only used when loading the crash image, not during exec.
That's good to know, but I don't think it's a good idea either. Seeing that map_domain_page() is being used in the code _at all_ may make someone try to use it in a path that is used during kexec. And it being used by other functions in the same file may also result in one of those functions suddenly also getting used on a kexec path.
Together with the issue of the area potentially ending up in a PFN compression hole, to me this is enough reason to still expect that these uses get dropped again.
Jan
Quoted 35 lines · Jan Beulich
Quoted 20 lines
Quoted 1 line
Quoted 1 line · David Vrabel
Quoted 12 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
Can you please backport c/s
0896bd8bea84526b00e00d2d076f4f953a3d73cb"x86: map portion of kexec crash area that is within the direct map area" to staging-4.3 ASAP, as following the backport of8d611a00d3389d9c16506326e24145b94ac6fb86"kexec/x86: do not map crash kernel area", kexec loading is broken in exactly the same way as it was in staging.Not without explaining how it is broken: According to my own checking as well as Daniel's there was no need for the kexec area to be mapped at all in the old implementation.
Quoted 5 lines
Furthermore, I'd prefer to revert
8d611a00(dff90d0con 4.2) instead if there really is an issue. That's largely because, as noted in the extra comment I added to0896bd8b, the change is still incomplete (and hence not much better than the code with Daniel's change reverted).Quoted 8 lines
In that comment it says:
"That's primarily because
map_domain_page()
(needed when the area is outside the direct mapping range) may be unusable when wanting to kexec due to a crash,"But
map_domain_page()is only used when loading the crash image, not during exec.That's good to know, but I don't think it's a good idea either. Seeing that
map_domain_page()is being used in the code_atall_may make someone try to use it in a path that is used during kexec. And it being used by other functions in the same file may also result in one of those functions suddenly also getting used on a kexec path.
Quoted 3 lines
Together with the issue of the area potentially ending up in a PFN compression hole, to me this is enough reason to still expect that these uses get dropped again.
map_domain_page() is used during kexec and crash image load. However, it is not used when a given image is executed.
Daniel