From: Scott Wood <scottwood@freescale.com>
To: Yoder Stuart-B08248 <B08248@freescale.com>
Cc: Alexander Graf <agraf@suse.de>,
Bhushan Bharat-R65777 <R65777@freescale.com>,
Wood Scott-B07421 <B07421@freescale.com>,
"kvm@vger.kernel.org list" <kvm@vger.kernel.org>,
"kvm-ppc@vger.kernel.org" <kvm-ppc@vger.kernel.org>
Subject: Re: RFC: proposal for VM reset & shutdown hcall
Date: Mon, 01 Jul 2013 23:09:56 +0000 [thread overview]
Message-ID: <1372720196.8183.97@snotra> (raw)
In-Reply-To: <9F6FE96B71CF29479FF1CDC8046E1503632B01@039-SN1MPN1-004.039d.mgd.msft.net> (from B08248@freescale.com on Mon Jul 1 18:05:55 2013)
On 07/01/2013 06:05:55 PM, Yoder Stuart-B08248 wrote:
>
>
> > -----Original Message-----
> > From: Alexander Graf [mailto:agraf@suse.de]
> > Sent: Monday, July 01, 2013 6:01 PM
> > To: Yoder Stuart-B08248
> > Cc: Bhushan Bharat-R65777; Wood Scott-B07421; kvm@vger.kernel.org
> list; kvm-ppc@vger.kernel.org
> > Subject: Re: RFC: proposal for VM reset & shutdown hcall
> >
> >
> > On 02.07.2013, at 00:59, Yoder Stuart-B08248 wrote:
> >
> > >
> > >
> > >> -----Original Message-----
> > >> From: kvm-ppc-owner@vger.kernel.org
> [mailto:kvm-ppc-owner@vger.kernel.org] On Behalf Of Alexander
> > Graf
> > >> Sent: Monday, July 01, 2013 5:14 PM
> > >> To: Yoder Stuart-B08248
> > >> Cc: Bhushan Bharat-R65777; Wood Scott-B07421;
> kvm@vger.kernel.org list; kvm-ppc@vger.kernel.org
> > >> Subject: Re: RFC: proposal for VM reset & shutdown hcall
> > >>
> > >>
> > >> On 01.07.2013, at 23:59, Yoder Stuart-B08248 wrote:
> > >>
> > >>> For the e500 PV platform we need a VM reset and shutdown
> mechanisms.
> > >>
> > >> CC'ing kvm-ppc@vger.
> > >>
> > >>>
> > >>>
> ------------------------------------------------------------------------
> > >>> Hypercall: KVM_HC_VM_RESET
> > >>> Description: Requests that the virtual machine be reset. The
> > >>> hcall takes no arguments. If successful the hcall
> does not
> > >>> return.
> > >>>
> > >>> Arguments:
> > >>> r11 hcall-token KVM_HC_VM_RESET
> > >>>
> > >>> Return values
> > >>> r3 status Status of the hcall. If the hcall
> succeeds
> > >>> it does not return. If an error occurs
> > >>> EV_INTERNAL is returned.
> > >>>
> ------------------------------------------------------------------------
> > >>> Hypercall: KVM_HC_VM_SHUTDOWN
> > >>> Description: Requests that the virtual machine be
> powered-off/halted.
> > >>> The hcall takes no arguments. If successful the
> hcall does not
> > >>> return.
> > >>>
> > >>> Arguments:
> > >>> r11 hcall-token KVM_HC_VM_SHUTDOWN
> > >>>
> > >>> Return values
> > >>> r3 status Status of the hcall. If the hcall
> succeeds
> > >>> it does not return. If an error occurs
> > >>> EV_INTERNAL is returned.
> > >>>
> ------------------------------------------------------------------------
> > >>>
> > >>> Implementation notes:
> > >>>
> > >>> -expect hcall token to be defined with KVM_HCALL_TOKEN:
> > >>> KVM_HC_VM_RESET
> > >>> KVM_HC_VM_SHUTDOWN
> > >>>
> > >>> -the KVM_HC_FEATURES hcall should be expanded with new feature
> bits
> > >>> to advertise both new hcalls to the VM: e.g. #define
> KVM_FEATURE_VM_RESET
> > >>
> > >> Do we really need this? Can't we just leave this up to device
> tree to tell the guest that this
> > feature
> > >> exists? After all, it's a pure user space matter whether it
> wants to support reboot & shutdown or
> > not.
> > >
> > > I guess there are two questions I have:
> > >
> > > -does KVM need to advertise to user space that the hcalls exist
> through
> > > using the KVM_PPC_GET_PVINFO ioctl?
> >
> > IMHO it should only expose a CAP indicating that it forwards
> unknown hcalls to user space.
>
> So, do we really need a new CAP for that or is that just
> assumed...for all
> architectures?
Yes, we need a new CAP because current kernels don't do that for booke,
and QEMU needs to know whether it can advertise the presence of hcalls
that rely on it. We also need a well-defined mechanism for doing the
forwarding.
-Scott
WARNING: multiple messages have this Message-ID (diff)
From: Scott Wood <scottwood@freescale.com>
To: Yoder Stuart-B08248 <B08248@freescale.com>
Cc: Alexander Graf <agraf@suse.de>,
Bhushan Bharat-R65777 <R65777@freescale.com>,
Wood Scott-B07421 <B07421@freescale.com>,
"kvm@vger.kernel.org list" <kvm@vger.kernel.org>,
"kvm-ppc@vger.kernel.org" <kvm-ppc@vger.kernel.org>
Subject: Re: RFC: proposal for VM reset & shutdown hcall
Date: Mon, 1 Jul 2013 18:09:56 -0500 [thread overview]
Message-ID: <1372720196.8183.97@snotra> (raw)
In-Reply-To: <9F6FE96B71CF29479FF1CDC8046E1503632B01@039-SN1MPN1-004.039d.mgd.msft.net> (from B08248@freescale.com on Mon Jul 1 18:05:55 2013)
On 07/01/2013 06:05:55 PM, Yoder Stuart-B08248 wrote:
>
>
> > -----Original Message-----
> > From: Alexander Graf [mailto:agraf@suse.de]
> > Sent: Monday, July 01, 2013 6:01 PM
> > To: Yoder Stuart-B08248
> > Cc: Bhushan Bharat-R65777; Wood Scott-B07421; kvm@vger.kernel.org
> list; kvm-ppc@vger.kernel.org
> > Subject: Re: RFC: proposal for VM reset & shutdown hcall
> >
> >
> > On 02.07.2013, at 00:59, Yoder Stuart-B08248 wrote:
> >
> > >
> > >
> > >> -----Original Message-----
> > >> From: kvm-ppc-owner@vger.kernel.org
> [mailto:kvm-ppc-owner@vger.kernel.org] On Behalf Of Alexander
> > Graf
> > >> Sent: Monday, July 01, 2013 5:14 PM
> > >> To: Yoder Stuart-B08248
> > >> Cc: Bhushan Bharat-R65777; Wood Scott-B07421;
> kvm@vger.kernel.org list; kvm-ppc@vger.kernel.org
> > >> Subject: Re: RFC: proposal for VM reset & shutdown hcall
> > >>
> > >>
> > >> On 01.07.2013, at 23:59, Yoder Stuart-B08248 wrote:
> > >>
> > >>> For the e500 PV platform we need a VM reset and shutdown
> mechanisms.
> > >>
> > >> CC'ing kvm-ppc@vger.
> > >>
> > >>>
> > >>>
> ------------------------------------------------------------------------
> > >>> Hypercall: KVM_HC_VM_RESET
> > >>> Description: Requests that the virtual machine be reset. The
> > >>> hcall takes no arguments. If successful the hcall
> does not
> > >>> return.
> > >>>
> > >>> Arguments:
> > >>> r11 hcall-token KVM_HC_VM_RESET
> > >>>
> > >>> Return values
> > >>> r3 status Status of the hcall. If the hcall
> succeeds
> > >>> it does not return. If an error occurs
> > >>> EV_INTERNAL is returned.
> > >>>
> ------------------------------------------------------------------------
> > >>> Hypercall: KVM_HC_VM_SHUTDOWN
> > >>> Description: Requests that the virtual machine be
> powered-off/halted.
> > >>> The hcall takes no arguments. If successful the
> hcall does not
> > >>> return.
> > >>>
> > >>> Arguments:
> > >>> r11 hcall-token KVM_HC_VM_SHUTDOWN
> > >>>
> > >>> Return values
> > >>> r3 status Status of the hcall. If the hcall
> succeeds
> > >>> it does not return. If an error occurs
> > >>> EV_INTERNAL is returned.
> > >>>
> ------------------------------------------------------------------------
> > >>>
> > >>> Implementation notes:
> > >>>
> > >>> -expect hcall token to be defined with KVM_HCALL_TOKEN:
> > >>> KVM_HC_VM_RESET
> > >>> KVM_HC_VM_SHUTDOWN
> > >>>
> > >>> -the KVM_HC_FEATURES hcall should be expanded with new feature
> bits
> > >>> to advertise both new hcalls to the VM: e.g. #define
> KVM_FEATURE_VM_RESET
> > >>
> > >> Do we really need this? Can't we just leave this up to device
> tree to tell the guest that this
> > feature
> > >> exists? After all, it's a pure user space matter whether it
> wants to support reboot & shutdown or
> > not.
> > >
> > > I guess there are two questions I have:
> > >
> > > -does KVM need to advertise to user space that the hcalls exist
> through
> > > using the KVM_PPC_GET_PVINFO ioctl?
> >
> > IMHO it should only expose a CAP indicating that it forwards
> unknown hcalls to user space.
>
> So, do we really need a new CAP for that or is that just
> assumed...for all
> architectures?
Yes, we need a new CAP because current kernels don't do that for booke,
and QEMU needs to know whether it can advertise the presence of hcalls
that rely on it. We also need a well-defined mechanism for doing the
forwarding.
-Scott
next prev parent reply other threads:[~2013-07-01 23:09 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-01 21:59 RFC: proposal for VM reset & shutdown hcall Yoder Stuart-B08248
2013-07-01 22:13 ` Alexander Graf
2013-07-01 22:13 ` Alexander Graf
2013-07-01 22:59 ` Yoder Stuart-B08248
2013-07-01 22:59 ` Yoder Stuart-B08248
2013-07-01 23:01 ` Alexander Graf
2013-07-01 23:01 ` Alexander Graf
2013-07-01 23:05 ` Yoder Stuart-B08248
2013-07-01 23:05 ` Yoder Stuart-B08248
2013-07-01 23:09 ` Scott Wood [this message]
2013-07-01 23:09 ` Scott Wood
2013-07-01 23:12 ` Alexander Graf
2013-07-01 23:12 ` Alexander Graf
2013-07-01 23:11 ` Alexander Graf
2013-07-01 23:11 ` Alexander Graf
2013-07-01 23:02 ` Yoder Stuart-B08248
2013-07-01 23:02 ` Yoder Stuart-B08248
2013-07-02 15:07 ` RFC: proposal for VM reset & shutdown hcall (v2) Yoder Stuart-B08248
2013-07-02 15:07 ` Yoder Stuart-B08248
2013-07-02 15:23 ` Alexander Graf
2013-07-02 15:23 ` Alexander Graf
2013-07-02 15:33 ` Yoder Stuart-B08248
2013-07-02 15:33 ` Yoder Stuart-B08248
2013-07-02 16:56 ` Scott Wood
2013-07-02 16:56 ` Scott Wood
2013-07-02 19:11 ` Yoder Stuart-B08248
2013-07-02 19:11 ` Yoder Stuart-B08248
2013-07-02 22:08 ` RFC: proposal for VM reset & shutdown hcall (v3) Yoder Stuart-B08248
2013-07-02 22:08 ` Yoder Stuart-B08248
2013-07-02 22:13 ` Scott Wood
2013-07-02 22:13 ` Scott Wood
2013-07-02 22:19 ` Alexander Graf
2013-07-02 22:19 ` Alexander Graf
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=1372720196.8183.97@snotra \
--to=scottwood@freescale.com \
--cc=B07421@freescale.com \
--cc=B08248@freescale.com \
--cc=R65777@freescale.com \
--cc=agraf@suse.de \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
/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.