]> xenbits.xensource.com Git - xen.git/commit
VT-d: Don't assume register-based invalidation is always supported
authorChao Gao <chao.gao@intel.com>
Mon, 26 Apr 2021 08:16:50 +0000 (10:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 26 Apr 2021 08:16:50 +0000 (10:16 +0200)
commit6773b1a7584a75a486e9774541ad5bd84c9aa5ee
treeca97018f10fd9042a45162decd8b85808a6f04c2
parentab392969ea178ef9a4b499f92c3fb5bd2e4e13ed
VT-d: Don't assume register-based invalidation is always supported

According to Intel VT-d SPEC rev3.3 Section 6.5, Register-based Invalidation
isn't supported by Intel VT-d version 6 and beyond.

This hardware change impacts following two scenarios: admin can disable
queued invalidation via 'qinval' cmdline and use register-based interface;
VT-d switches to register-based invalidation when queued invalidation needs
to be disabled, for example, during disabling x2apic or during system
suspension or after enabling queued invalidation fails.

To deal with this hardware change, if register-based invalidation isn't
supported, queued invalidation cannot be disabled through Xen cmdline; and
if queued invalidation has to be disabled temporarily in some scenarios,
VT-d won't switch to register-based interface but use some dummy functions
to catch errors in case there is any invalidation request issued when queued
invalidation is disabled.

Signed-off-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
docs/misc/xen-command-line.pandoc
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/iommu.h
xen/drivers/passthrough/vtd/qinval.c