Re: [PATCH v5 1/7] kvmppc: HMM backend driver to manage pages of secure guest

2019-07-19 Thread Bharata B Rao
On Thu, Jul 18, 2019 at 11:46:41PM -0700, Christoph Hellwig wrote: > On Thu, Jul 11, 2019 at 10:38:48AM +0530, Bharata B Rao wrote: > > Hmmm... I still find it in upstream, guess it will be removed soon? > > > > I find the below commit in mmotm. > > Please take a look at the latest hmm code in ma

Re: [PATCH v5 1/7] kvmppc: HMM backend driver to manage pages of secure guest

2019-07-18 Thread Christoph Hellwig
On Thu, Jul 11, 2019 at 10:38:48AM +0530, Bharata B Rao wrote: > Hmmm... I still find it in upstream, guess it will be removed soon? > > I find the below commit in mmotm. Please take a look at the latest hmm code in mainline, there have also been other significant changes as well.

Re: [PATCH v5 1/7] kvmppc: HMM backend driver to manage pages of secure guest

2019-07-10 Thread Bharata B Rao
On Wed, Jul 10, 2019 at 10:47:34AM -0300, Jason Gunthorpe wrote: > On Tue, Jul 09, 2019 at 01:55:28PM -0500, janani wrote: > > > > +int kvmppc_hmm_init(void) > > > +{ > > > + int ret = 0; > > > + unsigned long size; > > > + > > > + size = kvmppc_get_secmem_size(); > > > + if (!size) { > > > +

Re: [PATCH v5 1/7] kvmppc: HMM backend driver to manage pages of secure guest

2019-07-10 Thread Jason Gunthorpe
On Tue, Jul 09, 2019 at 01:55:28PM -0500, janani wrote: > > +int kvmppc_hmm_init(void) > > +{ > > + int ret = 0; > > + unsigned long size; > > + > > + size = kvmppc_get_secmem_size(); > > + if (!size) { > > + ret = -ENODEV; > > + goto out; > > + } > > + > > + kvmppc

Re: [PATCH v5 1/7] kvmppc: HMM backend driver to manage pages of secure guest

2019-07-09 Thread janani
On 2019-07-09 05:25, Bharata B Rao wrote: HMM driver for KVM PPC to manage page transitions of secure guest via H_SVM_PAGE_IN and H_SVM_PAGE_OUT hcalls. H_SVM_PAGE_IN: Move the content of a normal page to secure page H_SVM_PAGE_OUT: Move the content of a secure page to normal page Private ZONE_

[PATCH v5 1/7] kvmppc: HMM backend driver to manage pages of secure guest

2019-07-09 Thread Bharata B Rao
HMM driver for KVM PPC to manage page transitions of secure guest via H_SVM_PAGE_IN and H_SVM_PAGE_OUT hcalls. H_SVM_PAGE_IN: Move the content of a normal page to secure page H_SVM_PAGE_OUT: Move the content of a secure page to normal page Private ZONE_DEVICE memory equal to the amount of secure