]> xenbits.xensource.com Git - xen.git/commit
hvm/mtrr: copy hardware state for Dom0
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 16 Jul 2018 13:10:49 +0000 (15:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Jul 2018 13:10:49 +0000 (15:10 +0200)
commitd8b0840bb90711e93b6994e50c728bbbf0f012a0
treec390dd8e7619aad40281e83ebf8872cab24e50f9
parente520d9e144ac4766aaa7ce55f1c49191a5ddefc8
hvm/mtrr: copy hardware state for Dom0

Copy the state found on the hardware when creating a PVH Dom0. Since
the memory map provided to a PVH Dom0 is based on the native one using
the same set of MTRR ranges should provide Dom0 with a sane MTRR state
without having to manually build it in Xen.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/mtrr.c