x86/HVM: correct mtrr_pat_not_equal()
authorJan Beulich <jbeulich@suse.com>
Tue, 22 May 2018 14:01:26 +0000 (16:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 May 2018 14:01:26 +0000 (16:01 +0200)
commitfc5805daef091240cd5fc06634a8bcdb2f3bb843
tree0300bccc1aaa2ea39ebfe6940b3afd2f0255e457
parent607ce6507dbb936048a702bd930a39ed6bb8ae1a
x86/HVM: correct mtrr_pat_not_equal()

The two vCPU-s differing in MTRR-enabled state means MTRR settings are
not equal. Both vCPU-s having MTRRs disabled means only PAT needs to be
compared. Along those lines for fixed range MTRRs. Differing variable
range counts likewise mean settings are different overall (even if
that's not a very reasonable setup to have).

Constify types and convert bool_t to bool.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/hvm/mtrr.c
xen/include/asm-x86/mtrr.h