pvh prep: code motion
authorMukesh Rathor <mukesh.rathor@oracle.com>
Wed, 13 Nov 2013 08:26:38 +0000 (09:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 13 Nov 2013 08:26:38 +0000 (09:26 +0100)
commit033331ea3c0a510ab682697d0eef9d69e35c80ec
treeb8175e7b389a00a6a1570e06b54e318c2bc62982
parentdb062c28f30eb68d1b5d7a910445a0ba1136179a
pvh prep: code motion

There are many functions where PVH requires some code in common with
HVM.  Rearrange some of these functions so that the code is together.

In general, the HVM code that PVH also uses includes:
 - cacheattr functionality
 - paging
 - hvm_funcs
 - hvm_assert_evtchn_irq tasklet
 - tm_list
 - hvm_params

And code that PVH shares with PV but not with PVH:
 - updating the domain wallclock
 - setting v->is_initialized

There should be no end-to-end changes in behavior.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Eddie Dong <eddie.dong@intel.com>
xen/arch/x86/hvm/hvm.c