From: Steven Rostedt <srostedt@redhat.com>
To: Jan Beulich <jbeulich@novell.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Re: [PATCH] Fix >4G i386 PAE grant table interface
Date: Fri, 03 Nov 2006 17:46:56 -0500 [thread overview]
Message-ID: <454BC6E0.7000406@redhat.com> (raw)
In-Reply-To: <454B19DB.76E4.0078.0@novell.com>
Jan Beulich wrote:
>>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 02.11.06 19:16 >>>
>> On 2/11/06 16:53, "Steven Rostedt" <srostedt@redhat.com> wrote:
>>
>>> This patch updates both the linux-2.6-sparse tree and the xen HV to use
>>> uint64_t instead of unsigned long for those particular functions. This
>>> patch has been tested on RHEL5 Beta on a box with 12G i386.
>>>
>>> Signed-off-by: Steven Rostedt <srostedt@redhat.com>
>> Nasty bug. At least it affects only blktap. Thanks.
>
> Looking at this it would seem to me that the second call to
> gnttab_set_unmap_op in blkltap.c is missing the
> GNTMAP_contains_pte flag, affecting auto_translated_physmap
> guests.
It's much worst than that!
Without this patch, my patch is still broken. In the hypervisor this
flag is checked, and will go down the wrong path when it is missing:
int destroy_grant_host_mapping(
u64 addr, unsigned long frame, unsigned int flags)
{
if ( flags & GNTMAP_contains_pte )
return destroy_grant_pte_mapping(addr, frame, current->domain);
return destroy_grant_va_mapping(addr, frame, current);
}
You can see here that we call the va_mapping instead of the pte mapping.
Which means that we once again truncate the top 32 bits of the address,
since a va addr is expected to be "unsigned long" in size.
Also, this can be bad, if the va addr is really virtual, and doesn't
match the actual offset shift (like handling high memory).
>
> Signed-off-by: Jan Beulich <jbeulich@novell.com>
>
please apply.
Acked-by: Steven Rostedt <srostedt@redhat.com>
-- Steve
next prev parent reply other threads:[~2006-11-03 22:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-02 16:53 [PATCH] Fix >4G i386 PAE grant table interface Steven Rostedt
2006-11-02 18:16 ` Keir Fraser
2006-11-03 9:28 ` Jan Beulich
2006-11-03 22:46 ` Steven Rostedt [this message]
2006-11-04 7:42 ` Keir Fraser
2006-11-04 14:25 ` Steven Rostedt
2006-11-04 16:23 ` Keir Fraser
2006-11-04 17:10 ` Steven Rostedt
2006-11-03 8:42 ` Jan Beulich
2006-11-03 13:43 ` Steven Rostedt
2006-11-03 14:27 ` Jan Beulich
2006-11-03 20:43 ` Keir Fraser
2006-11-06 8:21 ` Jan Beulich
2006-11-03 9:56 ` Jan Beulich
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=454BC6E0.7000406@redhat.com \
--to=srostedt@redhat.com \
--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.