From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751516AbdISDNv (ORCPT ); Mon, 18 Sep 2017 23:13:51 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:36113 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750921AbdISDNs (ORCPT ); Mon, 18 Sep 2017 23:13:48 -0400 X-Google-Smtp-Source: AOwi7QAv0HTP6bw1ZJvGgoNK4F0KCWq8HVXsbhgoiVI9EmNiBTTLOb2GJzrKvB26fN5Y6iCtyRTeCw== Date: Mon, 18 Sep 2017 20:13:44 -0700 From: Tejun Heo To: Brijesh Singh Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Borislav Petkov , Andy Lutomirski , Tom Lendacky , Arnd Bergmann , Christoph Lameter , linux-arch@vger.kernel.org Subject: Re: [Part1 PATCH v4 15/17] percpu: introduce DEFINE_PER_CPU_UNENCRYPTED Message-ID: <20170919031344.GL378890@devbig577.frc2.facebook.com> References: <20170916123418.37807-1-brijesh.singh@amd.com> <20170916123418.37807-16-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170916123418.37807-16-brijesh.singh@amd.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 16, 2017 at 07:34:16AM -0500, Brijesh Singh wrote: > When SEV is active, memory is encrypted with guest-specific key, and if > guest OS wants to share the memory region with hypervisor then it must > clear the C-bit (i.e set unencrypted) before sharing it. > > DEFINE_PER_CPU_UNENCRYPTED can be used to define the per-cpu variables > which will be shared between guest and hypervisor. Currently, KVM defines > three variables (steal-time, apf_reason, and avic_eio) which are shared > with hypervisor. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Borislav Petkov > Cc: Arnd Bergmann > Cc: Tejun Heo > Cc: Christoph Lameter > Cc: linux-arch@vger.kernel.org > Cc: x86@kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: Tom Lendacky > Signed-off-by: Brijesh Singh Acked-by: Tejun Heo Thanks. -- tejun