]> xenbits.xensource.com Git - people/royger/xen.git/commit
x86/viridian: fix xen-hvmcrash when vp_assist page is present
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 22 Mar 2017 11:03:03 +0000 (12:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Mar 2017 11:03:03 +0000 (12:03 +0100)
commit4567bf73c18cc4670f83de09d50911aae8cda64b
treef3d869bd539e53109b31bdad21165d1dfd07a1c7
parent0d670cd46cb53f6bb4e052d71f08962973c88a4c
x86/viridian: fix xen-hvmcrash when vp_assist page is present

Currently use of xen-hvmcrash will cause an immediate domain_crash() in
initialize_vp_assist() because it is called from viridian_load_vcpu_ctxt()
without having first cleared any previous mapping.

This patch addes a check into viridian_load_vcpu_ctxt() to avoid re-
initialization and turned the domain_crash() in initialize_vp_assist()
into an ASSERT() since neither codepath into that function should allow
it to be hit.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/viridian.c