All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Limpach <christian.limpach@gmail.com>
To: Gerd Knorr <kraxel@bytesex.org>
Cc: xen-devel@lists.xensource.com
Subject: Re: [patch] pagetable cleanups
Date: Thu, 14 Apr 2005 09:47:49 -0700	[thread overview]
Message-ID: <3d8eece205041409476fde7995@mail.gmail.com> (raw)
In-Reply-To: <20050412185856.GA5832@bytesex>

On 4/12/05, Gerd Knorr <kraxel@bytesex.org> wrote:
> Index: xen/arch/x86/shadow.c
> ===================================================================
> --- xen.orig/arch/x86/shadow.c  2005-04-12 17:01:41.000000000 +0200
> +++ xen/arch/x86/shadow.c       2005-04-12 17:33:01.000000000 +0200
> @@ -333,9 +333,8 @@ free_shadow_hl2_table(struct domain *d,
> 
>     for ( i = 0; i < limit; i++ )
>     {
> -        unsigned long hl2e = l1_pgentry_val(hl2[i]);
> -        if ( hl2e & _PAGE_PRESENT )
> -            put_page(pfn_to_page(hl2e >> PAGE_SHIFT));
> +        if ( l1e_get_flags(*hl2) & _PAGE_PRESENT )
> +            put_page(pfn_to_page(l1e_get_pfn(*hl2)));
>     }
> 
>     unmap_domain_mem(hl2);

This hunk seems incorrect, you need to use hl2[i] instead of *hl2.
We need to be careful not to introduce bugs when making cleanups like
this one...  It would be good if a few more people looked through the
patch before we commit it, thanks!

    christian

  parent reply	other threads:[~2005-04-14 16:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-12 18:58 [patch] pagetable cleanups Gerd Knorr
2005-04-14 12:25 ` Michael A Fetterman
2005-04-14 15:01   ` Gerd Knorr
2005-04-14 14:48     ` Mark Williamson
2005-04-14 18:27       ` Hollis Blanchard
2005-04-14 19:07         ` Anthony Liguori
2005-04-14 19:20           ` Hollis Blanchard
2005-04-14 19:30             ` Gerd Knorr
2005-04-14 16:47 ` Christian Limpach [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-04-14 14:14 Ian Pratt
2005-04-14 15:11 Ian Pratt
2005-04-14 15:31 ` Gerd Knorr
2005-04-14 19:33 Ian Pratt

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=3d8eece205041409476fde7995@mail.gmail.com \
    --to=christian.limpach@gmail.com \
    --cc=Christian.Limpach@cl.cam.ac.uk \
    --cc=kraxel@bytesex.org \
    --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.