hvm/mtrr: use the hardware number of variable ranges for Dom0
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 16 Jul 2018 13:10:09 +0000 (15:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Jul 2018 13:10:09 +0000 (15:10 +0200)
commite520d9e144ac4766aaa7ce55f1c49191a5ddefc8
tree599dd55077d6736d8664c180042226ed9bca2591
parentde3b31312248646394a78b837b8a02f2483cad02
hvm/mtrr: use the hardware number of variable ranges for Dom0

Expand the size of the variable ranges array to match the size of the
underlying hardware, this is a preparatory change for copying the
hardware MTRR state for Dom0.

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