All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: Steven Rostedt <srostedt@redhat.com>, xen-devel@lists.xensource.com
Subject: Re: [PATCH] Fix >4G i386 PAE grant table interface
Date: Fri, 03 Nov 2006 09:28:43 +0000	[thread overview]
Message-ID: <454B19DB.76E4.0078.0@novell.com> (raw)
In-Reply-To: <C16FE66E.3F71%Keir.Fraser@cl.cam.ac.uk>

>>> 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. 

Signed-off-by: Jan Beulich <jbeulich@novell.com>

Index: head-2006-10-30/drivers/xen/blktap/blktap.c
===================================================================
--- head-2006-10-30.orig/drivers/xen/blktap/blktap.c	2006-10-26 12:10:54.000000000 +0200
+++ head-2006-10-30/drivers/xen/blktap/blktap.c	2006-11-03 10:00:44.000000000 +0100
@@ -908,8 +908,10 @@ static void fast_flush_area(pending_req_
 				return;
 			}
 
-			gnttab_set_unmap_op(&unmap[invcount],
-					    ptep, GNTMAP_host_map,
+			gnttab_set_unmap_op(&unmap[invcount], ptep,
+					    GNTMAP_host_map
+					    | GNTMAP_application_map
+					    | GNTMAP_contains_pte,
 					    khandle->user);
 			invcount++;
 		}

  reply	other threads:[~2006-11-03  9:28 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 [this message]
2006-11-03 22:46     ` Steven Rostedt
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=454B19DB.76E4.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=srostedt@redhat.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.