From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bharata B Rao Date: Tue, 09 Jul 2019 10:18:04 +0000 Subject: Re: [RFC PATCH v4 6/6] kvmppc: Support reset of secure guest Message-Id: <20190709100604.GD27933@in.ibm.com> List-Id: References: <20190528064933.23119-1-bharata@linux.ibm.com> <20190528064933.23119-7-bharata@linux.ibm.com> <20190617040632.jiq73ogxqyccvfjl@oak.ozlabs.ibm.com> In-Reply-To: <20190617040632.jiq73ogxqyccvfjl@oak.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org, linux-mm@kvack.org, paulus@au1.ibm.com, aneesh.kumar@linux.vnet.ibm.com, jglisse@redhat.com, linuxram@us.ibm.com, sukadev@linux.vnet.ibm.com, cclaudio@linux.ibm.com On Mon, Jun 17, 2019 at 02:06:32PM +1000, Paul Mackerras wrote: > On Tue, May 28, 2019 at 12:19:33PM +0530, Bharata B Rao wrote: > > Add support for reset of secure guest via a new ioctl KVM_PPC_SVM_OFF. > > This ioctl will be issued by QEMU during reset and in this ioctl, > > we ask UV to terminate the guest via UV_SVM_TERMINATE ucall, > > reinitialize guest's partitioned scoped page tables and release all > > HMM pages of the secure guest. > > > > After these steps, guest is ready to issue UV_ESM call once again > > to switch to secure mode. > > Since you are adding a new KVM ioctl, you need to add a description of > it to Documentation/virtual/kvm/api.txt. Adding in the next version. Regards, Bharata.