From: David Vrabel <david.vrabel@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: "Keir (Xen.org)" <keir@xen.org>,
Daniel Kiper <daniel.kiper@oracle.com>,
"kexec@lists.infradead.org" <kexec@lists.infradead.org>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [Xen-devel] [PATCH 5/8] kexec: extend hypercall with improved load/unload ops
Date: Wed, 17 Apr 2013 11:11:55 +0100 [thread overview]
Message-ID: <516E756B.5060404@citrix.com> (raw)
In-Reply-To: <516E7F9802000078000CDE3C@nat28.tlf.novell.com>
On 17/04/13 09:55, Jan Beulich wrote:
>>>> On 16.04.13 at 19:13, David Vrabel <david.vrabel@citrix.com> wrote:
>> -static int kexec_exec(XEN_GUEST_HANDLE_PARAM(void) uarg)
>> +static int kexec_load(XEN_GUEST_HANDLE_PARAM(void) uarg)
>> {
>> - xen_kexec_exec_t exec;
>> - xen_kexec_image_t *image;
>> - int base, bit, pos, ret = -EINVAL;
>> + xen_kexec_load_t load;
>> + xen_kexec_segment_t *segments;
>> + struct kexec_image *kimage = NULL;
>> + int ret;
>>
>> - if ( unlikely(copy_from_guest(&exec, uarg, 1)) )
>> + if ( copy_from_guest(&load, uarg, 1) )
>> return -EFAULT;
>>
>> - if ( kexec_load_get_bits(exec.type, &base, &bit) )
>> + if ( load.nr_segments >= KEXEC_SEGMENT_MAX )
>> return -EINVAL;
>
> Especially since you named the padding field _rsvd, you ought
> to verify it to be zero somewhere here. Or if you're really sure
> that nobody will ever want to make use of the field, name it
> _pad instead.
8 bits isn't likely to be useful and the interface can always be
extended by adding a new sub-ob. I'll rename it to _pad.
Do you want to put your acked-by on this patch (with this change) or on
any of the other patches?
David
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2013-04-17 10:12 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-16 17:13 [PATCHv4 0/8] kexec: extend kexec hypercall for use with pv-ops kernels David Vrabel
2013-04-16 17:13 ` [PATCH 1/8] x86: give FIX_EFI_MPF its own fixmap entry David Vrabel
2013-04-16 17:13 ` [PATCH 2/8] xen: make GUEST_HANDLE_64() and uint64_aligned_t available everywhere David Vrabel
2013-04-16 17:13 ` [PATCH 3/8] kexec: add public interface for improved load/unload sub-ops David Vrabel
2013-04-16 17:13 ` [PATCH 4/8] kexec: add infrastructure for handling kexec images David Vrabel
2013-04-16 17:13 ` [PATCH 5/8] kexec: extend hypercall with improved load/unload ops David Vrabel
2013-04-17 8:55 ` [Xen-devel] " Jan Beulich
2013-04-17 10:11 ` David Vrabel [this message]
2013-04-17 10:20 ` Jan Beulich
2013-04-17 12:51 ` Daniel Kiper
2013-04-18 16:29 ` David Vrabel
2013-04-19 8:08 ` Daniel Kiper
2013-04-16 17:13 ` [PATCH 6/8] xen: kexec crash image when dom0 crashes David Vrabel
2013-04-16 17:13 ` [PATCH 7/8] libxc: add hypercall buffer arrays David Vrabel
2013-04-16 17:13 ` [PATCH 8/8] libxc: add API for kexec hypercall David Vrabel
2013-04-17 12:34 ` [PATCHv4 0/8] kexec: extend kexec hypercall for use with pv-ops kernels Daniel Kiper
2013-04-17 14:15 ` David Vrabel
2013-04-17 14:53 ` Daniel Kiper
2013-04-18 17:38 ` [Xen-devel] " David Vrabel
2013-04-19 13:22 ` Daniel Kiper
-- strict thread matches above, loose matches on Subject: below --
2013-02-21 17:48 [PATCH 0/8] kexec: extended " David Vrabel
2013-02-21 17:48 ` [PATCH 5/8] kexec: extend hypercall with improved load/unload ops David Vrabel
2013-02-22 8:42 ` [Xen-devel] " Jan Beulich
2013-02-22 11:54 ` David Vrabel
2013-02-22 13:11 ` Jan Beulich
2013-03-08 11:23 ` Daniel Kiper
2013-03-08 11:40 ` David Vrabel
2013-03-08 12:21 ` Daniel Kiper
2013-03-08 14:01 ` David Vrabel
2013-03-08 15:23 ` Daniel Kiper
2013-03-08 17:29 ` [Xen-devel] " Andrew Cooper
2013-03-08 21:45 ` Daniel Kiper
2013-03-08 23:38 ` Andrew Cooper
2013-03-11 11:17 ` Daniel Kiper
2013-03-11 13:21 ` David Vrabel
2013-03-11 13:30 ` Daniel Kiper
2013-03-11 13:43 ` David Vrabel
2013-03-11 14:13 ` Daniel Kiper
2013-03-11 14:27 ` Andrew Cooper
2013-03-11 20:45 ` Daniel Kiper
2013-03-11 21:18 ` Andrew Cooper
2013-03-12 11:17 ` Daniel Kiper
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=516E756B.5060404@citrix.com \
--to=david.vrabel@citrix.com \
--cc=JBeulich@suse.com \
--cc=daniel.kiper@oracle.com \
--cc=keir@xen.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox