All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Jan Beulich <jbeulich@novell.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: struct page_info
Date: Fri, 24 Apr 2009 14:38:14 -0700	[thread overview]
Message-ID: <49F23146.2060209@oracle.com> (raw)
In-Reply-To: <49F17D61.76EA.0078.0@novell.com>



Jan Beulich wrote:
>>>> Mukesh Rathor <mukesh.rathor@oracle.com> 24.04.09 05:15 >>>
>> Now, looking at it, the shadow page is confusing.
>>
>> 	/* Page is in use: ((count_info & PGC_count_mask) != 0).  */
>> 	..
>>
>>         /* Page is in use as a shadow: count_info == 0. */
>> 	..
>> 	/* Page is on a free list: ((count_info & PGC_count_mask) == 0). */
>> 	..
>>
>> If count_info == 0, and it implies shadow page, how's that different
>>from an unallocated page which also would've count_info=0 I presume?
> 
> These are not if-and-only-if conditions, so you can't conclude the use of
> a page from just looking at count_info; only the other way around: from
> e.g. knowing the page is in use as a shadow, you'll know count_info must
> be zero.

Ahh, so I found a mfn on the floor no easy way of knowing where it
belongs. Okey.

thanks
Mukesh



>> Also, if "Page is on a free list:", I assume one of the PGC_ fields would
>> be set?
> 
> Not would, but might.
> 
> Jan

      parent reply	other threads:[~2009-04-24 21:38 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-24  3:15 struct page_info Mukesh Rathor
2009-04-24  6:50 ` Jan Beulich
2009-04-24  7:21   ` Cihula, Joseph
2009-04-24  7:33     ` Keir Fraser
2009-04-25 12:54       ` Attempt to build xen-unstable on Ubuntu 9.04 Server (Ubuntu Desktop installed) Boris Derzhavets
2009-04-25 13:20         ` Thiago Camargo Martins Cordeiro
2009-04-25 16:08           ` Boris Derzhavets
2009-04-26 12:15         ` Boris Derzhavets
2009-04-27  5:56           ` Boris Derzhavets
2009-04-29 15:59             ` Ian Jackson
2009-04-29 16:15               ` Boris Derzhavets
2009-04-29 16:19                 ` Ian Jackson
2009-04-29 16:23                   ` Boris Derzhavets
2009-05-06 16:37                     ` Alex Zeffertt
2009-05-07 11:10                       ` Ian Jackson
2009-05-07 13:15                         ` [PATCH] " Alex Zeffertt
2009-05-07 13:23                           ` Keir Fraser
2009-05-07 14:16                             ` Ian Jackson
2009-05-07 14:37                               ` Keir Fraser
2009-05-07 15:08                                 ` Ian Jackson
2009-05-07 17:11                                   ` [PATCH] Permit user to suppress passing --prefix to setup.py Ian Jackson
2009-05-08 15:45                       ` Attempt to build xen-unstable on Ubuntu 9.04 Server (Ubuntu Desktop installed) Boris Derzhavets
2009-05-08 17:40                         ` Boris Derzhavets
2009-05-09 19:41                           ` 2.6.30-rc3-tip kernel's backend network driver response when loading Xen 3.4 Dom0 " Boris Derzhavets
2009-05-11 22:51                             ` Jeremy Fitzhardinge
2009-05-12  9:07                               ` Boris Derzhavets
2009-04-29 16:21                 ` Attempt to build xen-unstable " Boris Derzhavets
2009-04-24 21:38   ` Mukesh Rathor [this message]
     [not found] <18946.60770.61629.799986@mariner.uk.xensource.com>

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=49F23146.2060209@oracle.com \
    --to=mukesh.rathor@oracle.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.