All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Daniel Kiper <daniel.kiper@oracle.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	"kexec@lists.infradead.org" <kexec@lists.infradead.org>,
	David Vrabel <david.vrabel@citrix.com>,
	Eric Biederman <ebiederm@xmission.com>
Subject: Re: [Xen-devel] [RFC PATCH 0/3] Improve kexec support in Xen hypervisor
Date: Thu, 17 Jan 2013 11:37:48 +0000	[thread overview]
Message-ID: <50F7E28C.4090003@citrix.com> (raw)
In-Reply-To: <20130117112743.GB2871@host-192-168-1-59.local.net-space.pl>

On 17/01/13 11:27, Daniel Kiper wrote:
> On Wed, Jan 16, 2013 at 04:29:03PM +0000, David Vrabel wrote:
>> This series of patches improves the kexec hypercall in the Xen
>> hypervisor.  It is an incomplete prototype but I posting it early for
>> comments on the proposed ABI/API.
>>
>> This allows a privileged Xen guest to load kexec images into the
>> hypervisor from a userspace tool without using the Linux kernel's
>> kexec subsystem.  It is the first step to supporting kexec of crash
>> kernels from a pv-ops dom0 kernel (the required kernel and kexec-tools
>> patches will be posted later).
>>
>> The kernel will require a kexec hypercall somewhere in the
>> crash_kexec() path to actually exec the loaded image.  Any preferences
>> on how the hook for this should be implemented?  Note that the kernel
> This should be implemented as stub which be called by machine_kexec()
> and later it would call relevant hypercall.
>
>> won't be aware that an image as been loaded as it is loaded directly
>> into the hypervisor and not via the kernel's kexec_load system call.
> Maybe we should have sepcial kexec hypercall function which allow us
> to ask hypervisor that image is loaded or not.

But we already have this information.  If the kexec crash hypercall
returns back to dom0 then a crash kernel is not loaded.

One could certainly argue that even if a crash kernel is not loaded, a
kexec crash hypercall means that dom0 is in bad state and Xen should
panic() anyway, which is the case on any other form of dom0 crash.

~Andrew

>
>> Since the kexec hypercall is for use by dom0 I have removed the
>> implementation of the old load/unload ops and thus guests will require
>> updated kexec-tools to load images.  Is this acceptable?
> Not yet. I think that old interface should stay as long as Xen Linux Kernel
> could run on latest versions of hypervisor.
>
> Daniel
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

WARNING: multiple messages have this Message-ID (diff)
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Daniel Kiper <daniel.kiper@oracle.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	"kexec@lists.infradead.org" <kexec@lists.infradead.org>,
	David Vrabel <david.vrabel@citrix.com>,
	Eric Biederman <ebiederm@xmission.com>
Subject: Re: [RFC PATCH 0/3] Improve kexec support in Xen hypervisor
Date: Thu, 17 Jan 2013 11:37:48 +0000	[thread overview]
Message-ID: <50F7E28C.4090003@citrix.com> (raw)
In-Reply-To: <20130117112743.GB2871@host-192-168-1-59.local.net-space.pl>

On 17/01/13 11:27, Daniel Kiper wrote:
> On Wed, Jan 16, 2013 at 04:29:03PM +0000, David Vrabel wrote:
>> This series of patches improves the kexec hypercall in the Xen
>> hypervisor.  It is an incomplete prototype but I posting it early for
>> comments on the proposed ABI/API.
>>
>> This allows a privileged Xen guest to load kexec images into the
>> hypervisor from a userspace tool without using the Linux kernel's
>> kexec subsystem.  It is the first step to supporting kexec of crash
>> kernels from a pv-ops dom0 kernel (the required kernel and kexec-tools
>> patches will be posted later).
>>
>> The kernel will require a kexec hypercall somewhere in the
>> crash_kexec() path to actually exec the loaded image.  Any preferences
>> on how the hook for this should be implemented?  Note that the kernel
> This should be implemented as stub which be called by machine_kexec()
> and later it would call relevant hypercall.
>
>> won't be aware that an image as been loaded as it is loaded directly
>> into the hypervisor and not via the kernel's kexec_load system call.
> Maybe we should have sepcial kexec hypercall function which allow us
> to ask hypervisor that image is loaded or not.

But we already have this information.  If the kexec crash hypercall
returns back to dom0 then a crash kernel is not loaded.

One could certainly argue that even if a crash kernel is not loaded, a
kexec crash hypercall means that dom0 is in bad state and Xen should
panic() anyway, which is the case on any other form of dom0 crash.

~Andrew

>
>> Since the kexec hypercall is for use by dom0 I have removed the
>> implementation of the old load/unload ops and thus guests will require
>> updated kexec-tools to load images.  Is this acceptable?
> Not yet. I think that old interface should stay as long as Xen Linux Kernel
> could run on latest versions of hypervisor.
>
> Daniel
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  reply	other threads:[~2013-01-17 11:37 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-16 16:29 [RFC PATCH 0/3] Improve kexec support in Xen hypervisor David Vrabel
2013-01-16 16:29 ` [PATCH 1/3] kexec: extend hypercall with improved load/unload ops David Vrabel
2013-01-17 12:28   ` Daniel Kiper
2013-01-17 12:28   ` Daniel Kiper
2013-01-17 14:50     ` David Vrabel
2013-01-17 14:50     ` David Vrabel
2013-01-17 15:17       ` Daniel Kiper
2013-01-17 15:17       ` Daniel Kiper
2013-01-17 17:53         ` David Vrabel
2013-01-17 17:53           ` David Vrabel
2013-01-18  9:44           ` Daniel Kiper
2013-01-18  9:44           ` Daniel Kiper
2013-01-18  9:50           ` [Xen-devel] " Ian Campbell
2013-01-18  9:50           ` Ian Campbell
2013-01-18 19:01           ` Eric W. Biederman
2013-01-18 19:01           ` Eric W. Biederman
2013-01-17 12:33   ` [Xen-devel] " Ian Campbell
2013-01-17 12:33   ` Ian Campbell
2013-01-16 16:29 ` David Vrabel
2013-01-16 16:29 ` [PATCH 2/3] kexec: remove kexec_load and kexec_unload ops David Vrabel
2013-01-16 16:29 ` David Vrabel
2013-01-16 16:29 ` [PATCH 3/3] libxc: add API for kexec hypercall David Vrabel
2013-01-16 16:59   ` [Xen-devel] " Ian Campbell
2013-01-16 16:59   ` Ian Campbell
2013-01-16 16:29 ` David Vrabel
2013-01-16 16:33 ` [RFC PATCH 0/3] Improve kexec support in Xen hypervisor David Vrabel
2013-01-16 16:33   ` David Vrabel
2013-01-16 17:02 ` [Xen-devel] " Ian Campbell
2013-01-16 17:48   ` David Vrabel
2013-01-17  9:35     ` Ian Campbell
2013-01-17  9:35     ` Ian Campbell
2013-01-17 10:46     ` Jan Beulich
2013-01-17 10:46     ` [Xen-devel] " Jan Beulich
2013-01-17 10:51       ` Jan Beulich
2013-01-17 10:51         ` Jan Beulich
2013-01-16 17:48   ` David Vrabel
2013-01-16 17:02 ` Ian Campbell
2013-01-17 11:27 ` Daniel Kiper
2013-01-17 11:27 ` Daniel Kiper
2013-01-17 11:37   ` Andrew Cooper [this message]
2013-01-17 11:37     ` Andrew Cooper
2013-01-17 12:59     ` Daniel Kiper
2013-01-17 12:59     ` [Xen-devel] " Daniel Kiper
2013-01-17 13:01   ` David Vrabel
2013-01-17 13:01   ` David Vrabel
2013-01-17 13:25     ` Eric W. Biederman
2013-01-17 13:25     ` Eric W. Biederman

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=50F7E28C.4090003@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=daniel.kiper@oracle.com \
    --cc=david.vrabel@citrix.com \
    --cc=ebiederm@xmission.com \
    --cc=kexec@lists.infradead.org \
    --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.