From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Anthony Liguori <aliguori@amzn.com>
Cc: "Wei Liu" <wei.liu2@citrix.com>,
"KarimAllah Ahmed" <karahmed@amazon.de>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Jan H. Schönherr" <jschoenh@amazon.de>,
"Matt Wilson" <msw@amazon.com>,
xen-devel@lists.xenproject.org,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [PATCH v2 13/23] vixen: Use SCHEDOP_shutdown to shutdown the machine
Date: Sun, 7 Jan 2018 19:22:53 -0500 [thread overview]
Message-ID: <20180108002253.GA21689@char.us.oracle.com> (raw)
In-Reply-To: <1515356919-922-14-git-send-email-aliguori@amzn.com>
On Sun, Jan 07, 2018 at 12:28:29PM -0800, Anthony Liguori wrote:
> From: Jan H. Schönherr <jschoenh@amazon.de>
>
> While the hwdom_shutdown() is able to reboot the system, it fails to
> properly power it off. With SCHEDOP_shutdown, we delegate the problem.
>
> Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>
> ---
> xen/common/domain.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/xen/common/domain.c b/xen/common/domain.c
> index b4d679e..ede377c 100644
> --- a/xen/common/domain.c
> +++ b/xen/common/domain.c
> @@ -42,6 +42,7 @@
> #include <xen/trace.h>
> #include <xen/tmem.h>
> #include <asm/setup.h>
> +#include <asm/guest/vixen.h>
>
> /* Linux config option: propageted to domain0 */
> /* xen_processor_pmbits: xen control Cx, Px, ... */
> @@ -693,6 +694,17 @@ void __domain_crash_synchronous(void)
> }
>
>
> +static void vixen_shutdown(u8 reason)
> +{
> + struct sched_shutdown sched_shutdown = { .reason = reason };
> +
> + if (!opt_noreboot)
Forgot the spaces around it..
(Not that this matters that much).
> + HYPERVISOR_sched_op(SCHEDOP_shutdown, &sched_shutdown);
> +
> + /* Fallback, in case the hypercall fails */
> + hwdom_shutdown(reason);
> +}
> +
> void domain_shutdown(struct domain *d, u8 reason)
> {
> struct vcpu *v;
> @@ -703,6 +715,8 @@ void domain_shutdown(struct domain *d, u8 reason)
> d->shutdown_code = reason;
> reason = d->shutdown_code;
>
> + if ( is_vixen() )
> + vixen_shutdown(reason);
> if ( is_hardware_domain(d) )
> hwdom_shutdown(reason);
>
> --
> 1.9.1
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xenproject.org
> https://lists.xenproject.org/mailman/listinfo/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-01-08 0:23 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-07 20:28 [PATCH v2 00/23] Vixen: A PV-in-HVM shim Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 01/23] ---- x86/Kconfig: Options for Xen and PVH support Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 02/23] x86/entry: Probe for Xen early during boot Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 03/23] x86/guest: Hypercall support Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 04/23] x86: Don't use potentially incorrect CPUID values for topology information Anthony Liguori
2018-01-08 10:43 ` Andrew Cooper
2023-08-07 8:18 ` [Xen-devel] " Simon Gaiser
2023-08-07 8:39 ` Jan Beulich
2023-08-07 9:58 ` Simon Gaiser
2023-08-07 10:04 ` Jan Beulich
2023-08-07 12:39 ` Simon Gaiser
2023-08-07 10:10 ` Andrew Cooper
2018-01-07 20:28 ` [PATCH v2 05/23] char: optionally redirect {, g}printk output to QEMU debug log Anthony Liguori
2018-01-08 12:16 ` Wei Liu
2018-01-07 20:28 ` [PATCH v2 06/23] console: do not print banner if below info log threshold Anthony Liguori
2018-01-08 12:09 ` Wei Liu
2018-01-07 20:28 ` [PATCH v2 07/23] vixen: introduce is_vixen() to allow altering behavior Anthony Liguori
2018-01-08 12:18 ` Wei Liu
2018-01-07 20:28 ` [PATCH v2 08/23] vixen: allow dom0 to be created with a domid != 0 Anthony Liguori
2018-01-08 14:55 ` Wei Liu
2018-01-07 20:28 ` [PATCH v2 09/23] vixen: modify the e820 table to advertise HVM special pages as RAM Anthony Liguori
2018-01-08 0:18 ` Konrad Rzeszutek Wilk
2018-01-08 0:27 ` Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 10/23] vixen: do not permit access to physical IRQs if in Vixen mode Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 11/23] vixen: early initialization of Vixen including shared_info mapping Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 12/23] vixen: paravirtualization TSC frequency calculation Anthony Liguori
2018-01-08 12:04 ` Wei Liu
2018-01-07 20:28 ` [PATCH v2 13/23] vixen: Use SCHEDOP_shutdown to shutdown the machine Anthony Liguori
2018-01-08 0:22 ` Konrad Rzeszutek Wilk [this message]
2018-01-08 0:27 ` Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 14/23] vixen: forward VCPUOP_register_runstate_memory_area to outer Xen Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 15/23] vixen: pass through version hypercalls to parent Xen Anthony Liguori
2018-01-08 0:27 ` Konrad Rzeszutek Wilk
2018-01-08 0:29 ` Anthony Liguori
2018-01-08 0:42 ` Konrad Rzeszutek Wilk
2018-01-07 20:28 ` [PATCH v2 16/23] vixen: pass grant table operations through to the outer Xen Anthony Liguori
2018-01-08 10:35 ` Roger Pau Monné
2018-01-07 20:28 ` [PATCH v2 17/23] vixen: setup infrastructure to receive event channel notifications Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 18/23] vixen: Introduce ECS_PROXY for event channel proxying Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 19/23] vixen: Fix Vixen adaptation of send_global_virq() Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 20/23] vixen: event channel passthrough support Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 21/23] vixen: provide Xencons implementation Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 22/23] vixen: dom0 builder support Anthony Liguori
2018-01-07 20:28 ` [PATCH v2 23/23] vixen: use default position for the m2p mappings Anthony Liguori
2018-01-08 17:13 ` [PATCH v2 00/23] Vixen: A PV-in-HVM shim Wei Liu
2018-01-08 17:17 ` Anthony Liguori
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=20180108002253.GA21689@char.us.oracle.com \
--to=konrad.wilk@oracle.com \
--cc=aliguori@amzn.com \
--cc=andrew.cooper3@citrix.com \
--cc=jschoenh@amazon.de \
--cc=karahmed@amazon.de \
--cc=msw@amazon.com \
--cc=roger.pau@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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.