From: Ram Pai <linuxram@us.ibm.com>
To: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Cc: linuxppc-dev@ozlabs.org, kvm-ppc@vger.kernel.org,
bharata@linux.ibm.com, linux-mm@kvack.org
Subject: Re: [PATCH v4 2/2] KVM: PPC: Implement H_SVM_INIT_ABORT hcall
Date: Fri, 3 Jan 2020 12:37:12 -0800 [thread overview]
Message-ID: <20200103203712.GG5556@oc0525413822.ibm.com> (raw)
In-Reply-To: <20191219215146.27278-2-sukadev@linux.ibm.com>
On Thu, Dec 19, 2019 at 01:51:46PM -0800, Sukadev Bhattiprolu wrote:
> Implement the H_SVM_INIT_ABORT hcall which the Ultravisor can use to
> abort an SVM after it has issued the H_SVM_INIT_START and before the
> H_SVM_INIT_DONE hcalls. This hcall could be used when Ultravisor
> encounters security violations or other errors when starting an SVM.
>
..snip..
> +unsigned long kvmppc_h_svm_init_abort(struct kvm *kvm)
> +{
> + int srcu_idx;
> + struct kvm_memory_slot *memslot;
> +
> + /*
> + * Expect to be called only after INIT_START and before INIT_DONE.
> + * If INIT_DONE was completed, use normal VM termination sequence.
> + */
> + if (!(kvm->arch.secure_guest & KVMPPC_SECURE_INIT_START) ||
> + (kvm->arch.secure_guest & KVMPPC_SECURE_INIT_DONE))
> + return H_UNSUPPORTED;
Ah.. this version has already incorporated my prior comment! I should
have reviewed your v4 version first.
One small comment.. H_STATE is a better return code than H_UNSUPPORTED.
RP
next prev parent reply other threads:[~2020-01-03 20:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-19 21:51 [PATCH v4 1/2] KVM: PPC: Add skip_page_out parameter Sukadev Bhattiprolu
2019-12-19 21:51 ` [PATCH v4 2/2] KVM: PPC: Implement H_SVM_INIT_ABORT hcall Sukadev Bhattiprolu
2020-01-03 20:37 ` Ram Pai [this message]
2020-01-07 2:02 ` Sukadev Bhattiprolu
2020-01-07 16:45 ` Ram Pai
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=20200103203712.GG5556@oc0525413822.ibm.com \
--to=linuxram@us.ibm.com \
--cc=bharata@linux.ibm.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=sukadev@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).