Re: [Qemu-devel] [PATCH v2 2/2] target/i386: sev: Do not pin the ram device memory region

2019-02-04 Thread Alex Williamson
On Mon, 4 Feb 2019 22:23:40 + "Singh, Brijesh" wrote: > The RAM device presents a memory region that should be handled > as an IO region and should not be pinned. > > In the case of the vfio-pci, RAM device represents a MMIO BAR > and the memory region is not backed by pages hence >

[Qemu-devel] [PATCH v2 2/2] target/i386: sev: Do not pin the ram device memory region

2019-02-04 Thread Singh, Brijesh
The RAM device presents a memory region that should be handled as an IO region and should not be pinned. In the case of the vfio-pci, RAM device represents a MMIO BAR and the memory region is not backed by pages hence KVM_MEMORY_ENCRYPT_REG_REGION fails to lock the memory range. Fixes: