[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/hvm: Update code in HVMOP_altp2m_set_suppress_ve
commit ed1322105c005c6f975f8f06640ad488c22e6ab5 Author: Alexandru Stefan ISAILA <aisaila@xxxxxxxxxxxxxxx> AuthorDate: Wed Oct 30 13:02:25 2019 +0000 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Fri Nov 1 10:48:04 2019 +0000 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. Signed-off-by: Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Release-acked-by: Juergen Gross <jgross@xxxxxxxx> --- xen/arch/x86/hvm/hvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index e4c0425330..06a7b40107 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -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); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |