Re: [PATCH] KVM: x86: Fix device passthrough when SME is active

2018-03-16 Thread Paolo Bonzini
On 09/03/2018 00:17, Tom Lendacky wrote: > 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 kv

Re: [PATCH] KVM: x86: Fix device passthrough when SME is active

2018-03-15 Thread Tom Lendacky
On 3/8/2018 5:17 PM, Tom Lendacky wrote: > 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 kv

[PATCH] KVM: x86: Fix device passthrough when SME is active

2018-03-08 Thread Tom Lendacky
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: # 4.14.x- Signed-off-by: T