On Thu, Sep 15, 2016 at 12:08:04PM -0500, Tom Lendacky wrote: > The problem is that this physical address does not contain the > encryption bit, and even if it did, it wouldn't matter. The __va() > define creates a virtual address that will be mapped as encrypted given > the current approach (which is how I found this). It's only ioremap() > that would create a mapping without the encryption attribute and since > this is unencrypted data it needs to be access accordingly. I see. So since this is not obvious, please add this explanation to maybe Documentation/x86/amd-memory-encryption.txt and point in there to an example or so so. Thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html