Re: [PATCH v6 26/34] iommu/amd: Allow the AMD IOMMU to work with memory encryption

2017-06-21 Thread Joerg Roedel
On Thu, Jun 15, 2017 at 11:41:12AM +0200, Borislav Petkov wrote: > On Wed, Jun 14, 2017 at 03:40:28PM -0500, Tom Lendacky wrote: > > > WARNING: Use of volatile is usually wrong: see > > > Documentation/process/volatile-considered-harmful.rst > > > #134: FILE: drivers/iommu/amd_iommu.c:866: > > > +

Re: [PATCH v8 RESEND 27/38] iommu/amd: Allow the AMD IOMMU to work with memory encryption

2017-06-28 Thread Joerg Roedel
name suggests that it checks whether the iommu hardware supports SME. How about renaming it to amd_iommu_sme_check()? With that change the patch is: Acked-by: Joerg Roedel -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] x86/efi: Load fixmap GDT in efi_call_phys_epilog()

2018-08-31 Thread Joerg Roedel
From: Joerg Roedel When PTI is enabled on x86-32 the kernel uses the GDT mapped in the fixmap for the simple reason that this address is also mapped for user-space. The efi_call_phys_prolog()/efi_call_phys_epilog() wrappers change the GDT to call EFI runtime services and switch back to the

Re: Random crashes with i386 and efi boots

2018-09-11 Thread Joerg Roedel
On Tue, Sep 11, 2018 at 09:36:51AM -0700, Andy Lutomirski wrote: > >save_pgd = efi_call_phys_prolog(); > >local_irq_save(flags); > >status = efi_call_phys(...); > >local_irq_restore(flags); > > > >efi_call_phys_epilog(save_pgd); > > > > So, yes, interrupts are very muc