x86/hvm: Update code in HVMOP_altp2m_set_suppress_ve
PATCH 1/1 x86/hvm: Update code in HVMOP_altp2m_set_suppress_ve
Originally the gfn and altp2m_idx are assigned from the a.u.mem_access union. This works because it's the same memory used. This patch addresses this issue by changing the mem_access union with the suppress_ve union for consistency.
--- xen/arch/x86/hvm/hvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/hvm/hvm.c +2 -2
@@ -4685,8 +4685,8 @@ static int do_altp2m_op( rc = -EINVAL ; else { -gfn_t gfn =_gfn (a.u.mem_access.gfn); -unsigned int altp2m_idx = a.u.mem_access.view; +gfn_t gfn =_gfn (a.u.suppress_ve.gfn); +unsigned int altp2m_idx = a.u.suppress_ve.view;bool suppress_ve = a.u.suppress_ve.suppress_ve; rc =p2m_set_suppress_ve (d, gfn, suppress_ve, altp2m_idx);
Signature · 7 lines
2.17.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 6 lines · Alexandru Stefan ISAILA
Originally the gfn and
altp2m_idxare assigned from the a.u.mem_access union. This works because it's the same memory used. This patch addresses this issue by changing themem_accessunion with thesuppress_veunion for consistency.Signed-off-by Alexandru Isaila <[email protected]>
CC Juergen. This wants backporting, so should be included in 4.13
~Andrew
Quoted 9 lines
--- xen/arch/x86/hvm/hvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)xen/arch/x86/hvm/hvm.c +0
-0
xen/arch/x86/hvm/hvm.c static int do_altp2m_op( · line 4692
Quoted 10 lines
xen/arch/x86/hvm/hvm.c +2
-2@@ -4685,8 +4685,8 @@ static int do_altp2m_op( rc = -EINVAL ; else { -gfn_t gfn =_gfn (a.u.mem_access.gfn); -unsigned int altp2m_idx = a.u.mem_access.view; +gfn_t gfn =_gfn (a.u.suppress_ve.gfn); +unsigned int altp2m_idx = a.u.suppress_ve.view;bool suppress_ve = a.u.suppress_ve.suppress_ve; rc =p2m_set_suppress_ve (d, gfn, suppress_ve, altp2m_idx);
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 11 lines · Andrew Cooper
Quoted 6 lines · Alexandru Stefan ISAILA
Originally the gfn and
altp2m_idxare assigned from the a.u.mem_access union. This works because it's the same memory used. This patch addresses this issue by changing themem_accessunion with thesuppress_veunion for consistency.Signed-off-by Alexandru Isaila <[email protected]>Reviewed-by Andrew Cooper <[email protected]>CC Juergen. This wants backporting, so should be included in 4.13
I wouldn't have picked this up as backporting candidate, as the generated code is correct, and the public interface isn't supposed to change in the stable trees. I.e. I view this as a purely cosmetic change, albeit a pretty helpful one.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 11 lines · Andrew Cooper
Quoted 6 lines · Alexandru Stefan ISAILA
Originally the gfn and
altp2m_idxare assigned from the a.u.mem_access union. This works because it's the same memory used. This patch addresses this issue by changing themem_accessunion with thesuppress_veunion for consistency.Signed-off-by Alexandru Isaila <[email protected]>Reviewed-by Andrew Cooper <[email protected]>CC Juergen. This wants backporting, so should be included in 4.13
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel