All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Fehlig <jfehlig@suse.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: libvir-list@redhat.com, Olaf Hering <olaf@aepfle.de>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH] libxl: support domainReset
Date: Tue, 05 Aug 2014 09:10:39 -0600	[thread overview]
Message-ID: <53E0F3EF.3020101@suse.com> (raw)
In-Reply-To: <1407247933.2120.37.camel@kazak.uk.xensource.com>

Ian Campbell wrote:
> On Tue, 2014-08-05 at 08:06 -0600, Jim Fehlig wrote:
>   
>> Ian Campbell wrote:
>>     
>>> On Tue, 2014-08-05 at 10:55 +0200, Olaf Hering wrote:
>>>   
>>>       
>>>> The original report was that 'Reset' does not work from GUI, like
>>>> virt-manager or virsh. I think the expected outcome is like pushing the
>>>> reset button on a physical board. Xen doesnt do it that way, no idea
>>>> about others.
>>>>     
>>>>         
>>> Sounds like you want libxl_domain_reboot then, perhaps with a fallback
>>> on ERROR_NOPARAVIRT for an HVM guest to sending a trigger.
>>>   
>>>       
>> Hrm, I don't think that's right .  It should be a hard reset
>>
>> http://libvirt.org/html/libvirt-libvirt.html#virDomainReset
>>
>> destroy/start seems the correct way to implement this.
>>     
>
> Yes, given that requirement it is. Sorry for the noise.
>
> Would some sort of hard reset API be useful in libxl?
>   

Sure.  I think having an API that emulates a power reset button would be
a nice addition to libxl's domain operations.  The destroy/start
approach incurs a small bit of overhead, which would be avoided with
such an API.  Clients (perhaps incorrectly) implementing their own
notion of reset  would also be avoided.

In the absence of libxl_domain_reset(), do folks think the destroy/start
approach is acceptable?  As Olaf mentioned, it allows "Force Reset" to
work via virt-manager.

Regards,
Jim

  parent reply	other threads:[~2014-08-05 15:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1407204567-4131-1-git-send-email-jfehlig@suse.com>
2014-08-05  8:33 ` [PATCH] libxl: support domainReset Ian Campbell
     [not found] ` <1407227582.2120.3.camel@kazak.uk.xensource.com>
2014-08-05  8:41   ` Olaf Hering
     [not found]   ` <20140805084151.GA27835@aepfle.de>
2014-08-05  8:45     ` Ian Campbell
     [not found]     ` <1407228326.2120.15.camel@kazak.uk.xensource.com>
2014-08-05  8:55       ` Olaf Hering
     [not found]       ` <20140805085520.GA30208@aepfle.de>
2014-08-05  8:59         ` Ian Campbell
     [not found]         ` <1407229149.2120.26.camel@kazak.uk.xensource.com>
2014-08-05 14:06           ` Jim Fehlig
     [not found]           ` <53E0E4DE.30506@suse.com>
2014-08-05 14:12             ` Ian Campbell
     [not found]             ` <1407247933.2120.37.camel@kazak.uk.xensource.com>
2014-08-05 15:10               ` Jim Fehlig [this message]
2014-08-05 15:30                 ` Ian Campbell
     [not found]                 ` <1407252647.2120.45.camel@kazak.uk.xensource.com>
2014-08-05 16:12                   ` Wei Liu
2014-08-05 18:45                     ` Ian Campbell
     [not found]                     ` <1407264348.23472.44.camel@dagon.hellion.org.uk>
2014-08-05 19:30                       ` Wei Liu
     [not found]                       ` <20140805193006.GA5899@zion.uk.xensource.com>
2014-08-21 20:43                         ` Ian Campbell
2014-08-06 16:05 ` Jim Fehlig
2014-09-10 19:48 ` Jim Fehlig
2014-08-05  2:09 Jim Fehlig

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=53E0F3EF.3020101@suse.com \
    --to=jfehlig@suse.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=libvir-list@redhat.com \
    --cc=olaf@aepfle.de \
    --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.