]> xenbits.xensource.com Git - xen.git/commit
x86/HVM: avoid memory_type_changed() invocations when possible
authorJan Beulich <jbeulich@suse.com>
Wed, 18 Jul 2018 08:36:40 +0000 (10:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 Jul 2018 08:36:40 +0000 (10:36 +0200)
commit4e34e0586f77aafd1cb85142de9c5e7ceaff84ee
treeaf7fca62ba1338acf3af5bcdfd0fe5f7eff06c2a
parent82b9bc1320af042e774080c67407b99611e53e22
x86/HVM: avoid memory_type_changed() invocations when possible

They're expensive, and nothing changes if MTRRs are disabled and any of
the ranges gets changed, or if fixed range MTRRs are disabled and any of
them gets changed.

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