libxc: rework BSP initialization
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 2 Oct 2015 15:48:39 +0000 (17:48 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 8 Oct 2015 11:22:44 +0000 (12:22 +0100)
commit5b921b49f08f9751100d8cb503a5dbc53de74886
treec595186a6ad24f1d039e5d965de6b949119e045a
parentb4ec1faa91aeaa99e655d16549e2d830a38fb026
libxc: rework BSP initialization

Place the calls to xc_vcpu_setcontext and the allocation of the hypercall
buffer into the arch-specific vcpu hooks. This is needed in order to
introduce a new builder, so x86 HVM guests can initialize the BSP using
XEN_DOMCTL_sethvmcontext instead of XEN_DOMCTL_setvcpucontext.

This patch should not introduce any functional change.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
tools/libxc/include/xc_dom.h
tools/libxc/xc_dom_arm.c
tools/libxc/xc_dom_boot.c
tools/libxc/xc_dom_x86.c