All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Fehlig <jfehlig@suse.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>, xen-devel@lists.xen.org
Subject: Re: [PATCH OSSTEST] Toolstack::xl: Support for ACPI fallback for shutdown
Date: Wed, 13 May 2015 11:52:19 -0600	[thread overview]
Message-ID: <55538F53.9050608@suse.com> (raw)
In-Reply-To: <1431506133.8263.197.camel@citrix.com>

Ian Campbell wrote:
> On Tue, 2015-05-12 at 14:36 -0600, Jim Fehlig wrote:
>   
>>> Ian.
>>>
>>> From f560b7eed781a93567d69bcf90260c7475854766 Mon Sep 17 00:00:00 2001
>>> From: Ian Campbell <ian.campbell@citrix.com>
>>> Date: Thu, 7 May 2015 16:37:18 +0100
>>> Subject: [PATCH] Toolstack::libvirt: Support for ACPI fallback for shutdown
>>>
>>> This is the libvirt counterpart to "Toolstack::xl: Support for ACPI
>>> fallback for shutdown". Currently there are no jobs which test HVM
>>> guests with libvirt and so this is completely untested (but at least
>>> should be harmless to current jobs).
>>>
>>> This relies on an assumption that "virsh shutdown" behaves the same as
>>> "virsh reboot" and accepts a comma separated list of methods to try
>>> given to the --mode argument.
>>>   
>>>       
>> That assumption would be correct, and I just verified it is working as
>> expected.
>>     
>
> Thanks. I updated the commit message to reflect this feedback. Can I add
> your ack to?
>   

Yes.

> From 682b446b1ee30e6b26b7138805bdd0ca89d1942d Mon Sep 17 00:00:00 2001
> From: Ian Campbell <ian.campbell@citrix.com>
> Date: Thu, 7 May 2015 16:37:18 +0100
> Subject: [PATCH] Toolstack::libvirt: Support for ACPI fallback for shutdown
>
> This is the libvirt counterpart to "Toolstack::xl: Support for ACPI
> fallback for shutdown". Currently there are no jobs which test HVM
> guests with libvirt and so this is completely untested in the context
> of osstest (but at least should be harmless to current jobs).
>
> This relies on an assumption that "virsh shutdown" behaves the same as
> "virsh reboot" and accepts a comma separated list of methods to try
> given to the --mode argument, which Jim has tested and confirmed to be
> true.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> Cc: Jim Fehlig <jfehlig@suse.com>
> ---
>  Osstest/Toolstack/libvirt.pm | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/Osstest/Toolstack/libvirt.pm b/Osstest/Toolstack/libvirt.pm
> index 8bd7f4f..e7f4860 100644
> --- a/Osstest/Toolstack/libvirt.pm
> +++ b/Osstest/Toolstack/libvirt.pm
> @@ -60,7 +60,11 @@ sub shutdown_wait ($$$) {
>      my ($self,$gho,$timeout) = @_;
>      my $ho = $self->{Host};
>      my $gn = $gho->{Name};
> -    target_cmd_root($ho, "virsh shutdown $gn", 30);
> +    my $mode = "paravirt";
> +    $mode .= ",acpi"
> +	if guest_var($gho,'acpi_shutdown','false') eq 'true';
> +
> +    target_cmd_root($ho, "virsh shutdown --mode $mode $gn", 30);
>      guest_await_destroy($gho,$timeout);
>  }
>   

Acked by: Jim Fehlig <jfehlig@suse.com>

Regards,
Jim

  reply	other threads:[~2015-05-13 17:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-07  9:07 [PATCH OSSTEST] Toolstack::xl: Support for ACPI fallback for shutdown Ian Campbell
2015-05-07 10:11 ` Ian Campbell
2015-05-12 15:03   ` Ian Jackson
2015-05-12 15:19     ` Ian Campbell
2015-05-12 15:34       ` Ian Campbell
2015-05-12 20:36         ` Jim Fehlig
2015-05-13  8:35           ` Ian Campbell
2015-05-13 17:52             ` Jim Fehlig [this message]
2015-05-14 18:05         ` Ian Jackson
2015-05-12 15:02 ` Ian Jackson

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=55538F53.9050608@suse.com \
    --to=jfehlig@suse.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=xen-devel@lists.xen.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.