x86/hvm: Update code in HVMOP_altp2m_set_suppress_ve
authorAlexandru Stefan ISAILA <aisaila@bitdefender.com>
Wed, 30 Oct 2019 13:02:25 +0000 (13:02 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Nov 2019 10:48:04 +0000 (10:48 +0000)
commited1322105c005c6f975f8f06640ad488c22e6ab5
treed49618aa67357a78b98b75f570b5b99808515888
parent7e4404f8c66f94ac173a3232712074677415d842
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@bitdefender.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/hvm/hvm.c