On 20/05/14 15:47, Andreas Herrmann wrote:
> Signed-off-by: Andreas Herrmann <[email protected]>
Does it make sense to provide a _machine_restart too?
I think this should be squashed into patch 10 really, or else patch 10
split up into several parts (irq, smp, serial, other).
Cheers
James
> ---
> arch/mips/paravirt/setup.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/mips/paravirt/setup.c b/arch/mips/paravirt/setup.c
> index f80c3bc..6d2781c 100644
> --- a/arch/mips/paravirt/setup.c
> +++ b/arch/mips/paravirt/setup.c
> @@ -8,6 +8,7 @@
>
> #include <linux/kernel.h>
>
> +#include <asm/reboot.h>
> #include <asm/bootinfo.h>
> #include <asm/mipsregs.h>
> #include <asm/smp-ops.h>
> @@ -27,6 +28,11 @@ void __init plat_time_init(void)
> preset_lpj = mips_hpt_frequency / (2 * HZ);
> }
>
> +static void pv_machine_halt(void)
> +{
> + hypcall0(1 /* Exit VM */);
> +}
> +
> /*
> * Early entry point for arch setup
> */
> @@ -47,6 +53,7 @@ void __init prom_init(void)
> if (i < argc - 1)
> strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE);
> }
> + _machine_halt = pv_machine_halt;
> register_smp_ops(¶virt_smp_ops);
> }
>
>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html