RE: [RFC Design Doc v3] Enable Shared Virtual Memory feature in pass-through scenarios

2017-02-28 Thread Tian, Kevin
> From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Wednesday, March 01, 2017 6:07 AM > > On Wed, Nov 30, 2016 at 08:49:24AM +, Liu, Yi L wrote: > > What's changed from v2: > > a) Detailed feature description > > b) refine description in "Address translation in virtual SVM"

Re: [PATCH 1/2] iommu/vt-d: Fix crash when accessing VT-d sysfs entries

2017-02-28 Thread kbuild test robot
Hi Joerg, [auto build test ERROR on iommu/next] [also build test ERROR on v4.10 next-20170228] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Joerg-Roedel/iommu-vt-d-Fix-crash-when-accessing-VT

Re: [PATCH 1/2] iommu/vt-d: Fix crash when accessing VT-d sysfs entries

2017-02-28 Thread kbuild test robot
Hi Joerg, [auto build test ERROR on iommu/next] [also build test ERROR on v4.10 next-20170228] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Joerg-Roedel/iommu-vt-d-Fix-crash-when-accessing-VT

Re: [RFC PATCH v4 21/28] x86: Check for memory encryption on the APs

2017-02-28 Thread Tom Lendacky
On 2/27/2017 12:17 PM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:46:47AM -0600, Tom Lendacky wrote: Add support to check if memory encryption is active in the kernel and that it has been enabled on the AP. If memory encryption is active in the kernel but has not been enabled on the AP,

Re: [RFC PATCH v4 19/28] swiotlb: Add warnings for use of bounce buffers with SME

2017-02-28 Thread Tom Lendacky
On 2/27/2017 11:52 AM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:46:19AM -0600, Tom Lendacky wrote: Add warnings to let the user know when bounce buffers are being used for DMA when SME is active. Since the bounce buffers are not in encrypted memory, these notifications are to allow

Re: [RFC PATCH v4 05/28] x86: Add Secure Memory Encryption (SME) support

2017-02-28 Thread Tom Lendacky
On 2/25/2017 9:29 AM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:43:07AM -0600, Tom Lendacky wrote: Add support for Secure Memory Encryption (SME). This initial support provides a Kconfig entry to build the SME support into the kernel and defines the memory encryption mask that will be

Re: [RFC PATCH v4 16/28] x86: Add support for changing memory encryption attribute

2017-02-28 Thread Tom Lendacky
On 2/22/2017 12:52 PM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:45:35AM -0600, Tom Lendacky wrote: Add support for changing the memory encryption attribute for one or more memory pages. "This will be useful when we, , for example." Yup, will expand on the "why".

Re: [RFC PATCH v4 11/28] x86: Add support to determine the E820 type of an address

2017-02-28 Thread Tom Lendacky
On 2/20/2017 2:09 PM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:44:30AM -0600, Tom Lendacky wrote: This patch adds support to return the E820 type associated with an address s/This patch adds/Add/ range. Signed-off-by: Tom Lendacky ---

Re: [RFC Design Doc v3] Enable Shared Virtual Memory feature in pass-through scenarios

2017-02-28 Thread Konrad Rzeszutek Wilk
On Wed, Nov 30, 2016 at 08:49:24AM +, Liu, Yi L wrote: > What's changed from v2: > a) Detailed feature description > b) refine description in "Address translation in virtual SVM" > b) "Terms" is added > > Content > === > 1. Feature description > 2.

[git pull] IOMMU Fixes for Linux v4.11-rc1

2017-02-28 Thread Joerg Roedel
Hi Linus, The following changes since commit 86292b33d4b79ee03e2f43ea0381ef85f077c760: Merge branch 'akpm' (patches from Andrew) (2017-02-27 23:09:29 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fix-v4.11-rc0-2 for

Re: [RFC PATCH 30/30] vfio: Allow to bind foreign task

2017-02-28 Thread Jean-Philippe Brucker
Hi Kevin, On Tue, Feb 28, 2017 at 06:43:31AM +, Tian, Kevin wrote: > > From: Alex Williamson > > Sent: Tuesday, February 28, 2017 11:54 AM > > > > On Mon, 27 Feb 2017 19:54:41 + > > Jean-Philippe Brucker wrote: > > > [...] > > > diff --git

Re: [RFC PATCH 29/30] vfio: Add support for Shared Virtual Memory

2017-02-28 Thread Jean-Philippe Brucker
Hi Alex, Thanks for the feedback! On Mon, Feb 27, 2017 at 08:54:09PM -0700, Alex Williamson wrote: > On Mon, 27 Feb 2017 19:54:40 + > Jean-Philippe Brucker wrote: [...] > > > > +static long vfio_svm_ioctl(struct vfio_device *device, unsigned int cmd, > > +

[PATCH 2/2] iommu/amd: Fix crash when accessing AMD-Vi sysfs entries

2017-02-28 Thread Joerg Roedel
From: Joerg Roedel The link between the iommu sysfs-device and the struct amd_iommu is no longer stored as driver-data. Update the code to the new correct way of getting from device to amd_iommu. Reported-by: Dave Jones Fixes: 39ab9555c241 ('iommu: Add

[PATCH 1/2] iommu/vt-d: Fix crash when accessing VT-d sysfs entries

2017-02-28 Thread Joerg Roedel
From: Joerg Roedel The link between the iommu sysfs-device and the struct intel_iommu is no longer stored as driver-data. Update the code to use the new access method. Reported-by: Dave Jones Fixes: 39ab9555c241 ('iommu: Add sysfs bindings for struct