x86/mtrr: recalculate P2M type for domains with iocaps
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Thu, 6 Jun 2019 12:07:06 +0000 (14:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 6 Jun 2019 12:07:06 +0000 (14:07 +0200)
commitec821f1242d2e6eef25e81fc49ebd8fbe9118a92
treeb62d2ac5f31389d4942fd50e2c995ec6cd44989d
parent59ae17050745d6e9f26a99b19dc45a2fa7217dd4
x86/mtrr: recalculate P2M type for domains with iocaps

This change reflects the logic in epte_get_entry_emt() and allows
changes in guest MTTRs to be reflected in EPT for domains having
direct access to certain hardware memory regions but without IOMMU
context assigned (e.g. XenGT).

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: f3d880bf2be92534c5bacf11de2f561cbad550fb
master date: 2019-05-13 09:54:45 +0200
xen/arch/x86/hvm/mtrr.c