From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] minios: Correct HYPERVISOR_physdev_op()
Date: Mon, 27 Jan 2014 17:20:44 +0000 [thread overview]
Message-ID: <52E6956C.6060100@citrix.com> (raw)
In-Reply-To: <1390843126.12230.46.camel@kazak.uk.xensource.com>
On 27/01/14 17:18, Ian Campbell wrote:
> On Fri, 2014-01-24 at 18:28 +0000, Andrew Cooper wrote:
>> A physdev_op is a two argument hypercall, taking a command paramter and an
>> optional pointer to a structure.
>>
>> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
>> CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
>> CC: Samuel Thibault <samuel.thibault@ens-lyon.org>
> This hypercall is unused in minios and stubdoms I think? (Trying to
> gauge how critical the error is).
Correct. I suppose it is more of a "nice to fix" than "must fix" at
this stage, although I was quite surprised that I needed to fix it.
~Andrew
>
>> ---
>> extras/mini-os/include/x86/x86_32/hypercall-x86_32.h | 4 ++--
>> extras/mini-os/include/x86/x86_64/hypercall-x86_64.h | 4 ++--
>> 2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h b/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h
>> index ef52ecd..dcfbe41 100644
>> --- a/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h
>> +++ b/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h
>> @@ -255,9 +255,9 @@ HYPERVISOR_console_io(
>>
>> static inline int
>> HYPERVISOR_physdev_op(
>> - void *physdev_op)
>> + int cmd, void *physdev_op)
>> {
>> - return _hypercall1(int, physdev_op, physdev_op);
>> + return _hypercall2(int, physdev_op, cmd, physdev_op);
>> }
>>
>> static inline int
>> diff --git a/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h b/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h
>> index 513d74e..7083763 100644
>> --- a/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h
>> +++ b/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h
>> @@ -256,9 +256,9 @@ HYPERVISOR_console_io(
>>
>> static inline int
>> HYPERVISOR_physdev_op(
>> - void *physdev_op)
>> + int cmd, void *physdev_op)
>> {
>> - return _hypercall1(int, physdev_op, physdev_op);
>> + return _hypercall2(int, physdev_op, cmd, physdev_op);
>> }
>>
>> static inline int
>
next prev parent reply other threads:[~2014-01-27 17:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-24 18:28 [PATCH] minios: Correct HYPERVISOR_physdev_op() Andrew Cooper
2014-01-24 18:44 ` Konrad Rzeszutek Wilk
2014-01-26 16:38 ` Samuel Thibault
2014-01-27 17:18 ` Ian Campbell
2014-01-27 17:20 ` Andrew Cooper [this message]
2014-01-28 11:47 ` Ian Campbell
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=52E6956C.6060100@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=samuel.thibault@ens-lyon.org \
--cc=stefano.stabellini@eu.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.