x86/HVM: grow MMIO cache data size to 64 bytes
authorJan Beulich <jbeulich@suse.com>
Mon, 19 Nov 2018 08:41:25 +0000 (09:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 19 Nov 2018 08:41:25 +0000 (09:41 +0100)
commitd95da91fb497d8583826f673f9325e73a7514277
treeb8909c43db85d00777f8c650c5056163053a1e05
parent901abfef5de149546b16fba6f4d5bd7def08c672
x86/HVM: grow MMIO cache data size to 64 bytes

This is needed before enabling any AVX512 insns in the emulator. Change
the way alignment is enforced at the same time.

Add a check that the buffer won't actually overflow, and while at it
also convert the check for accesses to not cross page boundaries.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/emulate.c
xen/include/asm-x86/hvm/vcpu.h