From: Paul Mackerras <paulus@ozlabs.org>
To: Ram Pai <linuxram@us.ibm.com>
Cc: Bharata B Rao <bharata@linux.ibm.com>,
linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org,
linux-mm@kvack.org, paulus@au1.ibm.com, benh@linux.ibm.com,
aneesh.kumar@linux.vnet.ibm.com, jglisse@redhat.com
Subject: Re: [RFC PATCH v1 1/4] kvmppc: HMM backend driver to manage pages of secure guest
Date: Tue, 30 Oct 2018 06:32:58 +0000 [thread overview]
Message-ID: <20181030063258.GA14878@blackberry> (raw)
In-Reply-To: <20181030063155.GB5494@ram.oc3035372033.ibm.com>
On Mon, Oct 29, 2018 at 11:31:55PM -0700, Ram Pai wrote:
> On Tue, Oct 30, 2018 at 04:03:00PM +1100, Paul Mackerras wrote:
> > On Mon, Oct 22, 2018 at 10:48:34AM +0530, 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
> >
> > Comments below...
> >
> > > Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
> > > ---
> > > /* pSeries hypervisor opcodes */
> ....
> > > #define H_REMOVE 0x04
> > > #define H_ENTER 0x08
> > > @@ -295,7 +298,9 @@
> > > #define H_INT_ESB 0x3C8
> > > #define H_INT_SYNC 0x3CC
> > > #define H_INT_RESET 0x3D0
> > > -#define MAX_HCALL_OPCODE H_INT_RESET
> > > +#define H_SVM_PAGE_IN 0x3D4
> > > +#define H_SVM_PAGE_OUT 0x3D8
> > > +#define MAX_HCALL_OPCODE H_SVM_PAGE_OUT
> >
> > We should define hcall numbers in the implementation-specific range.
> > We can't use numbers in this range without first getting them
> > standardized in PAPR. Since these hcalls are not actually used by
> > the guest but are just a private interface between KVM and the
> > ultravisor, it's probably not worth putting them in PAPR. We should
> > pick a range somewhere in the 0xf000 - 0xfffc area and use that.
>
> We are using that range for Ucalls. For hcalls we were told to reserve
> a range between 1024(0x400) to 2047(0x7FF). Have to reserve them in the
> appropriate database.
Who gave you that advice?
Paul.
WARNING: multiple messages have this Message-ID (diff)
From: Paul Mackerras <paulus@ozlabs.org>
To: Ram Pai <linuxram@us.ibm.com>
Cc: kvm-ppc@vger.kernel.org, Bharata B Rao <bharata@linux.ibm.com>,
benh@linux.ibm.com, linux-mm@kvack.org, jglisse@redhat.com,
aneesh.kumar@linux.vnet.ibm.com, paulus@au1.ibm.com,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [RFC PATCH v1 1/4] kvmppc: HMM backend driver to manage pages of secure guest
Date: Tue, 30 Oct 2018 17:32:58 +1100 [thread overview]
Message-ID: <20181030063258.GA14878@blackberry> (raw)
In-Reply-To: <20181030063155.GB5494@ram.oc3035372033.ibm.com>
On Mon, Oct 29, 2018 at 11:31:55PM -0700, Ram Pai wrote:
> On Tue, Oct 30, 2018 at 04:03:00PM +1100, Paul Mackerras wrote:
> > On Mon, Oct 22, 2018 at 10:48:34AM +0530, 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
> >
> > Comments below...
> >
> > > Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
> > > ---
> > > /* pSeries hypervisor opcodes */
> ....
> > > #define H_REMOVE 0x04
> > > #define H_ENTER 0x08
> > > @@ -295,7 +298,9 @@
> > > #define H_INT_ESB 0x3C8
> > > #define H_INT_SYNC 0x3CC
> > > #define H_INT_RESET 0x3D0
> > > -#define MAX_HCALL_OPCODE H_INT_RESET
> > > +#define H_SVM_PAGE_IN 0x3D4
> > > +#define H_SVM_PAGE_OUT 0x3D8
> > > +#define MAX_HCALL_OPCODE H_SVM_PAGE_OUT
> >
> > We should define hcall numbers in the implementation-specific range.
> > We can't use numbers in this range without first getting them
> > standardized in PAPR. Since these hcalls are not actually used by
> > the guest but are just a private interface between KVM and the
> > ultravisor, it's probably not worth putting them in PAPR. We should
> > pick a range somewhere in the 0xf000 - 0xfffc area and use that.
>
> We are using that range for Ucalls. For hcalls we were told to reserve
> a range between 1024(0x400) to 2047(0x7FF). Have to reserve them in the
> appropriate database.
Who gave you that advice?
Paul.
WARNING: multiple messages have this Message-ID (diff)
From: Paul Mackerras <paulus@ozlabs.org>
To: Ram Pai <linuxram@us.ibm.com>
Cc: Bharata B Rao <bharata@linux.ibm.com>,
linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org,
linux-mm@kvack.org, paulus@au1.ibm.com, benh@linux.ibm.com,
aneesh.kumar@linux.vnet.ibm.com, jglisse@redhat.com
Subject: Re: [RFC PATCH v1 1/4] kvmppc: HMM backend driver to manage pages of secure guest
Date: Tue, 30 Oct 2018 17:32:58 +1100 [thread overview]
Message-ID: <20181030063258.GA14878@blackberry> (raw)
In-Reply-To: <20181030063155.GB5494@ram.oc3035372033.ibm.com>
On Mon, Oct 29, 2018 at 11:31:55PM -0700, Ram Pai wrote:
> On Tue, Oct 30, 2018 at 04:03:00PM +1100, Paul Mackerras wrote:
> > On Mon, Oct 22, 2018 at 10:48:34AM +0530, 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
> >
> > Comments below...
> >
> > > Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
> > > ---
> > > /* pSeries hypervisor opcodes */
> ....
> > > #define H_REMOVE 0x04
> > > #define H_ENTER 0x08
> > > @@ -295,7 +298,9 @@
> > > #define H_INT_ESB 0x3C8
> > > #define H_INT_SYNC 0x3CC
> > > #define H_INT_RESET 0x3D0
> > > -#define MAX_HCALL_OPCODE H_INT_RESET
> > > +#define H_SVM_PAGE_IN 0x3D4
> > > +#define H_SVM_PAGE_OUT 0x3D8
> > > +#define MAX_HCALL_OPCODE H_SVM_PAGE_OUT
> >
> > We should define hcall numbers in the implementation-specific range.
> > We can't use numbers in this range without first getting them
> > standardized in PAPR. Since these hcalls are not actually used by
> > the guest but are just a private interface between KVM and the
> > ultravisor, it's probably not worth putting them in PAPR. We should
> > pick a range somewhere in the 0xf000 - 0xfffc area and use that.
>
> We are using that range for Ucalls. For hcalls we were told to reserve
> a range between 1024(0x400) to 2047(0x7FF). Have to reserve them in the
> appropriate database.
Who gave you that advice?
Paul.
next prev parent reply other threads:[~2018-10-30 6:32 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-22 5:18 [RFC PATCH v1 0/4] kvmppc: HMM backend driver to manage pages of secure guest Bharata B Rao
2018-10-22 5:30 ` Bharata B Rao
2018-10-22 5:18 ` Bharata B Rao
2018-10-22 5:18 ` [RFC PATCH v1 1/4] " Bharata B Rao
2018-10-22 5:30 ` Bharata B Rao
2018-10-22 5:18 ` Bharata B Rao
2018-10-30 5:03 ` Paul Mackerras
2018-10-30 5:03 ` Paul Mackerras
2018-10-30 5:03 ` Paul Mackerras
2018-10-30 6:31 ` Ram Pai
2018-10-30 6:31 ` Ram Pai
2018-10-30 6:31 ` Ram Pai
2018-10-30 6:32 ` Paul Mackerras [this message]
2018-10-30 6:32 ` Paul Mackerras
2018-10-30 6:32 ` Paul Mackerras
2018-11-12 9:28 ` Bharata B Rao
2018-11-12 9:40 ` Bharata B Rao
2018-11-12 9:28 ` Bharata B Rao
2018-11-01 6:43 ` Balbir Singh
2018-11-01 6:43 ` Balbir Singh
2018-11-01 6:43 ` Balbir Singh
2018-11-12 9:59 ` Bharata B Rao
2018-11-12 10:11 ` Bharata B Rao
2018-11-12 9:59 ` Bharata B Rao
2018-10-22 5:18 ` [RFC PATCH v1 2/4] kvmppc: Add support for shared pages in HMM driver Bharata B Rao
2018-10-22 5:30 ` Bharata B Rao
2018-10-22 5:18 ` Bharata B Rao
2018-10-30 5:26 ` Paul Mackerras
2018-10-30 5:26 ` Paul Mackerras
2018-10-30 5:26 ` Paul Mackerras
2018-11-12 9:38 ` Bharata B Rao
2018-11-12 9:50 ` Bharata B Rao
2018-11-12 9:38 ` Bharata B Rao
2018-11-01 10:45 ` Balbir Singh
2018-11-01 10:45 ` Balbir Singh
2018-11-01 10:45 ` Balbir Singh
2018-11-12 10:07 ` Bharata B Rao
2018-11-12 10:19 ` Bharata B Rao
2018-11-12 10:07 ` Bharata B Rao
2018-10-22 5:18 ` [RFC PATCH v1 3/4] kvmppc: H_SVM_INIT_START and H_SVM_INIT_DONE hcalls Bharata B Rao
2018-10-22 5:30 ` Bharata B Rao
2018-10-22 5:18 ` Bharata B Rao
2018-10-30 5:29 ` Paul Mackerras
2018-10-30 5:29 ` Paul Mackerras
2018-10-30 5:29 ` Paul Mackerras
2018-11-12 9:39 ` Bharata B Rao
2018-11-12 9:51 ` Bharata B Rao
2018-11-12 9:39 ` Bharata B Rao
2018-11-01 10:49 ` Balbir Singh
2018-11-01 10:49 ` Balbir Singh
2018-11-01 10:49 ` Balbir Singh
2018-11-12 10:08 ` Bharata B Rao
2018-11-12 10:20 ` Bharata B Rao
2018-11-12 10:08 ` Bharata B Rao
2018-10-22 5:18 ` [RFC PATCH v1 4/4] kvmppc: Handle memory plug/unplug to secure VM Bharata B Rao
2018-10-22 5:30 ` Bharata B Rao
2018-10-22 5:18 ` Bharata B Rao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181030063258.GA14878@blackberry \
--to=paulus@ozlabs.org \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=benh@linux.ibm.com \
--cc=bharata@linux.ibm.com \
--cc=jglisse@redhat.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=linuxram@us.ibm.com \
--cc=paulus@au1.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.