diff options
| author | Tom Lendacky <[email protected]> | 2018-03-08 23:17:31 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2018-03-16 13:32:23 +0000 |
| commit | daaf216c06fba4ee4dc3f62715667da929d68774 (patch) | |
| tree | e9c04472a6219b67560ec95ab3d7c14c2cf490e1 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | Merge tag 'kvm-ppc-fixes-4.16-2' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
| download | kernel-daaf216c06fba4ee4dc3f62715667da929d68774.tar.gz kernel-daaf216c06fba4ee4dc3f62715667da929d68774.zip | |
KVM: x86: Fix device passthrough when SME is active
When using device passthrough with SME active, the MMIO range that is
mapped for the device should not be mapped encrypted. Add a check in
set_spte() to insure that a page is not mapped encrypted if that page
is a device MMIO page as indicated by kvm_is_mmio_pfn().
Cc: <[email protected]> # 4.14.x-
Signed-off-by: Tom Lendacky <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
