From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: xen-devel@lists.xensource.com,
David Vrabel <david.vrabel@citrix.com>,
Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: [PATCH v2] clarify SHUTDOWN_suspend additional argument
Date: Thu, 8 May 2014 16:53:27 +0100 [thread overview]
Message-ID: <536BA877.6030802@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1405081642010.14596@kaball.uk.xensource.com>
On 08/05/14 16:43, Stefano Stabellini wrote:
> Clarify the behaviour of SCHEDOP_shutdown: PV x86 guests need to pass a
> third argument, that is unused on HVM and ARM guests.
>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
>
> diff --git a/xen/include/public/sched.h b/xen/include/public/sched.h
> index a30b11d..4000ac9 100644
> --- a/xen/include/public/sched.h
> +++ b/xen/include/public/sched.h
> @@ -76,9 +76,10 @@
> * Halt execution of this domain (all VCPUs) and notify the system controller.
> * @arg == pointer to sched_shutdown_t structure.
> *
> - * If the sched_shutdown_t reason is SHUTDOWN_suspend then this
> - * hypercall takes an additional extra argument which should be the
> - * MFN of the guest's start_info_t.
> + * If the sched_shutdown_t reason is SHUTDOWN_suspend then
> + * x86 PV guests must also set RDX (EDX for 32-bit guests) to the MFN
> + * of the guest's start info page. RDX/EDX is the third hypercall
> + * argument.
Its still a little awkward to read. How about
@arg2 == mfn of start_info_t (x86 PV only)
above this paragraph.
Explaining which parameters live in which registers is tangential to the
point of "this is a 3 argument hypercall for x86 pv and 2 argument for
all other types of domains"
~Andrew
> *
> * In addition, which reason is SHUTDOWN_suspend this hypercall
> * returns 1 if suspend was cancelled or the domain was merely
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-05-08 15:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-08 15:43 [PATCH v2] clarify SHUTDOWN_suspend additional argument Stefano Stabellini
2014-05-08 15:53 ` Andrew Cooper [this message]
2014-05-08 17:27 ` Stefano Stabellini
2014-05-12 12:30 ` Ian Campbell
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=536BA877.6030802@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=david.vrabel@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.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.