From: Gerd Hoffmann <kraxel@suse.de>
To: Xen devel list <xen-devel@lists.xensource.com>
Cc: Jan Beulich <jbeulich@novell.com>
Subject: Re: [patch] Add missing breaks to {set, get}_address_size domctls.
Date: Wed, 14 Feb 2007 16:25:06 +0100 [thread overview]
Message-ID: <45D329D2.4080402@suse.de> (raw)
In-Reply-To: <45D300DA.9050708@suse.de>
[-- Attachment #1: Type: text/plain, Size: 206 bytes --]
Gerd Hoffmann wrote:
> Hi,
>
> $subject says all ;)
Oops, fix was incomplete, the get_address_size also lacks the
copy_to_guest() ...
updated patch attached,
Gerd
--
Gerd Hoffmann <kraxel@suse.de>
[-- Attachment #2: domctl.diff --]
[-- Type: text/x-patch, Size: 769 bytes --]
diff -r ad9bbd103034 xen/arch/x86/domctl.c
--- a/xen/arch/x86/domctl.c Fri Feb 09 18:19:24 2007 +0000
+++ b/xen/arch/x86/domctl.c Wed Feb 14 15:42:34 2007 +0100
@@ -398,6 +398,7 @@ long arch_do_domctl(
put_domain(d);
}
+ break;
case XEN_DOMCTL_get_address_size:
{
@@ -407,11 +408,16 @@ long arch_do_domctl(
if ( (d = get_domain_by_id(domctl->domain)) == NULL )
break;
+ printk("%s: offset %zd\n", __FUNCTION__, offsetof(struct xen_domctl, u.address_size.size));
domctl->u.address_size.size = BITS_PER_GUEST_LONG(d);
ret = 0;
put_domain(d);
- }
+
+ if (copy_to_guest(u_domctl, domctl, 1))
+ ret = -EFAULT;
+ }
+ break;
default:
ret = -ENOSYS;
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2007-02-14 15:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-14 12:30 [patch] Add missing breaks to {set, get}_address_size domctls Gerd Hoffmann
2007-02-14 15:25 ` Gerd Hoffmann [this message]
2007-02-14 15:49 ` Jan Beulich
2007-02-14 15:50 ` Keir Fraser
2007-02-14 15:52 ` Gerd Hoffmann
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=45D329D2.4080402@suse.de \
--to=kraxel@suse.de \
--cc=jbeulich@novell.com \
--cc=xen-devel@lists.xensource.com \
/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.