]> xenbits.xensource.com Git - people/liuw/xen.git/commit
x86/altp2m: Rework #VE enable/disable paths
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 17 Jan 2019 12:26:17 +0000 (12:26 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 22 Feb 2019 14:10:42 +0000 (14:10 +0000)
commite72ecc7615410e5bf1a1c9a4c7772322c16eeb82
treec7fc887b93dc79b4d6c9e9e1547e25b8fb174bd8
parent0dfffe01d5681ede6a50c6b57131320d9f4a3361
x86/altp2m: Rework #VE enable/disable paths

Split altp2m_vcpu_{enable,disable}_ve() out of the
HVMOP_altp2m_vcpu_{enable,disable}_notify marshalling logic.  A future change
is going to need to call altp2m_vcpu_disable_ve() from the domain_kill() path.

While at it, clean up the logic in altp2m_vcpu_{initialise,destroy}().
altp2m_vcpu_reset() has no external callers, so fold it into its two
callsites.  This in turn allows for altp2m_vcpu_destroy() to reuse
altp2m_vcpu_disable_ve() rather than opencoding it.

No practical change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/altp2m.c
xen/include/asm-x86/altp2m.h