From: Julien Grall <julien.grall@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"Tim (Xen.org)" <tim@xen.org>,
Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: [PATCH v6 02/15] xen/arm: basic PSCI support, implement cpu_on and cpu_off
Date: Tue, 7 May 2013 12:50:28 +0100 [thread overview]
Message-ID: <5188EA84.8090704@citrix.com> (raw)
In-Reply-To: <1367578301-32470-2-git-send-email-stefano.stabellini@eu.citrix.com>
On 05/03/2013 11:51 AM, Stefano Stabellini wrote:
> diff --git a/xen/arch/arm/psci.c b/xen/arch/arm/psci.c
> new file mode 100644
> index 0000000..562ef0b
> --- /dev/null
> +++ b/xen/arch/arm/psci.c
> @@ -0,0 +1,76 @@
> +/*
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + */
> +
> +#include <xen/errno.h>
> +#include <xen/sched.h>
> +#include <xen/types.h>
> +
> +#include <asm/current.h>
> +#include <asm/psci.h>
> +
> +int do_psci_cpu_on(uint32_t vcpuid, register_t entry_point)
I have a compilation error on arm64, here you define entry_point as
register_t but when you declare the prototype (see below), you use uint32_t.
> diff --git a/xen/include/asm-arm/psci.h b/xen/include/asm-arm/psci.h
> new file mode 100644
> index 0000000..8511eb1
> --- /dev/null
> +++ b/xen/include/asm-arm/psci.h
> @@ -0,0 +1,24 @@
> +#ifndef __ASM_PSCI_H__
> +#define __ASM_PSCI_H__
> +
> +#define PSCI_SUCCESS 0
> +#define PSCI_ENOSYS -1
> +#define PSCI_EINVAL -2
> 4 th eu+#define PSCI_DENIED -3
> +
> +int do_psci_cpu_on(uint32_t vcpuid, uint32_t entry_point);
Prototype here.
> +int do_psci_cpu_off(uint32_t power_state);
> +int do_psci_cpu_suspend(uint32_t power_state, uint32_t entry_point);
Same for do_psci_cpu_suspend, entry_point should be register_t.
> +int do_psci_migrate(uint32_t vcpuid);
> +
--
Julien
next prev parent reply other threads:[~2013-05-07 11:50 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-03 10:50 [PATCH v6 0/15] xen/arm: guest SMP support Stefano Stabellini
2013-05-03 10:51 ` [PATCH v6 01/15] xen/arm: trap SMC instructions and inject an UND exception Stefano Stabellini
2013-05-03 10:51 ` [PATCH v6 02/15] xen/arm: basic PSCI support, implement cpu_on and cpu_off Stefano Stabellini
2013-05-07 8:26 ` Ian Campbell
2013-05-07 11:38 ` Stefano Stabellini
2013-05-07 12:38 ` Ian Campbell
2013-05-07 11:50 ` Julien Grall [this message]
2013-05-07 12:37 ` Stefano Stabellini
2013-05-07 12:42 ` Ian Campbell
2013-05-03 10:51 ` [PATCH v6 03/15] xen/arm: allocate secondaries dom0 vcpus Stefano Stabellini
2013-05-03 10:51 ` [PATCH v6 04/15] xen: move for_each_set_bit to xen/bitops.h Stefano Stabellini
2013-05-03 10:51 ` [PATCH v6 05/15] xen/arm: support for guest SGI Stefano Stabellini
2013-05-03 11:26 ` Ian Campbell
2013-05-03 10:51 ` [PATCH v6 06/15] xen/arm: implement arch_vmap_virt_end Stefano Stabellini
2013-05-03 10:51 ` [PATCH v6 07/15] xen/arm: compile and initialize vmap Stefano Stabellini
2013-05-03 11:29 ` Ian Campbell
2013-05-03 11:43 ` Jan Beulich
2013-05-03 11:46 ` Ian Campbell
2013-05-03 10:51 ` [PATCH v6 08/15] xen/arm: implement map_domain_page_global and unmap_domain_page_global Stefano Stabellini
2013-05-03 10:51 ` [PATCH v6 09/15] xen: move VCPUOP_register_vcpu_info to common code Stefano Stabellini
2013-05-03 10:51 ` [PATCH v6 10/15] xen/arm: support VCPUOP_register_vcpu_info Stefano Stabellini
2013-05-03 10:51 ` [PATCH v6 11/15] xen/arm: send IPIs to inject irqs into guest vcpus running on different pcpus Stefano Stabellini
2013-05-03 10:51 ` [PATCH v6 12/15] xen/arm: run the vtimer Xen timers on the pcpu the vcpu is running on Stefano Stabellini
2013-05-03 10:51 ` [PATCH v6 13/15] xen/arm: initialize virt_timer and phys_timer with the same values on all vcpus Stefano Stabellini
2013-05-03 11:30 ` Ian Campbell
2013-05-03 10:51 ` [PATCH v6 14/15] xen/arm: clear pending irq queues on do_psci_cpu_on Stefano Stabellini
2013-05-03 11:40 ` Ian Campbell
2013-05-03 16:20 ` Stefano Stabellini
2013-05-07 8:27 ` Ian Campbell
2013-05-07 11:52 ` Stefano Stabellini
2013-05-07 12:44 ` Ian Campbell
2013-05-03 10:51 ` [PATCH v6 15/15] xen/arm: initialize vtimer offset to CNTPCT Stefano Stabellini
2013-05-03 11:40 ` 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=5188EA84.8090704@citrix.com \
--to=julien.grall@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--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.