iommu/amd: Enable ga_log_intr when enabling guest_mode
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Thu, 6 Jul 2017 02:29:59 +0000 (21:29 -0500)
committerJoerg Roedel <jroedel@suse.de>
Tue, 25 Jul 2017 13:03:55 +0000 (15:03 +0200)
commitefe6f241602cb61466895f6816b8ea6b90f04d4e
tree1d0bd8d4bd2b34046007177fd22622aea6218f3f
parenta46cdc4c630309684ae2dec07ffd47322334bf43
iommu/amd: Enable ga_log_intr when enabling guest_mode

IRTE[GALogIntr] bit should set when enabling guest_mode, which enables
IOMMU to generate entry in GALog when IRTE[IsRun] is not set, and send
an interrupt to notify IOMMU driver.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Cc: Joerg Roedel <jroedel@suse.de>
Cc: stable@vger.kernel.org # v4.9+
Fixes: d98de49a53e48 ('iommu/amd: Enable vAPIC interrupt remapping mode by default')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c