From: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "samuel.thibault@ens-lyon.org" <samuel.thibault@ens-lyon.org>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH 04/11] Disable the mfn_is_ram() check, it doesn't work correctly on all systems
Date: Tue, 02 Oct 2012 10:20:14 -0400 [thread overview]
Message-ID: <506AF81E.4090506@jhuapl.edu> (raw)
In-Reply-To: <1349174997.650.34.camel@zakaz.uk.xensource.com>
[-- Attachment #1.1: Type: text/plain, Size: 1679 bytes --]
On 10/02/2012 06:49 AM, Ian Campbell wrote:
> On Thu, 2012-09-27 at 18:09 +0100, Matthew Fioravante wrote:
>> This patch disables the mfn_is_ram check in mini-os. The current check
>> is insufficient and fails on some systems with larger than 4gb memory.
>>
>> Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
>> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> Further down the thread with the Ack Samuel said:
> We can probably just remove the check in __do_ioremap, which
> AFAIK is the only call.
>
> since this function is a bit pointless now.
I think its a question of whether or not we want to leave it for someone
to implement correctly later (by getting the memory map from the
hypervisor/ doing e820 calls) or get rid of it entirely. Since its only
purpose seems to be for preventing mini-os devs from making logical
errors I'd be more inclined to just get rid of it.
Do you all agree? If so I can send a new patch with it taken out.
>
>> diff --git a/extras/mini-os/arch/x86/mm.c b/extras/mini-os/arch/x86/mm.c
>> index 80aceac..5813a08 100644
>> --- a/extras/mini-os/arch/x86/mm.c
>> +++ b/extras/mini-os/arch/x86/mm.c
>> @@ -850,6 +850,8 @@ unsigned long alloc_contig_pages(int order, unsigned int addr_bits)
>> static long system_ram_end_mfn;
>> int mfn_is_ram(unsigned long mfn)
>> {
>> + /* This is broken on systems with large ammounts of ram. Always return 0 for now */
>> + return 0;
>> /* very crude check if a given MFN is memory or not. Probably should
>> * make this a little more sophisticated ;) */
>> return (mfn <= system_ram_end_mfn) ? 1 : 0;
>
[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 1459 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2012-10-02 14:20 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-27 17:09 [PATCH 01/11] Add ioread/iowrite functions to mini-os Matthew Fioravante
2012-09-27 17:09 ` [PATCH 02/11] add posix io for blkfront Matthew Fioravante
2012-09-28 10:36 ` George Dunlap
2012-09-27 17:09 ` [PATCH 03/11] Add endian, byteswap, and wordsize macros to mini-os Matthew Fioravante
2012-09-28 10:48 ` George Dunlap
2012-09-27 17:09 ` [PATCH 04/11] Disable the mfn_is_ram() check, it doesn't work correctly on all systems Matthew Fioravante
2012-10-02 10:49 ` Ian Campbell
2012-10-02 14:20 ` Matthew Fioravante [this message]
2012-09-27 17:09 ` [PATCH 05/11] add CONFIG_XC conditional Matthew Fioravante
2012-09-28 11:18 ` George Dunlap
2012-09-28 13:59 ` Matthew Fioravante
2012-09-28 15:24 ` Matthew Fioravante
2012-09-28 15:26 ` Matthew Fioravante
2012-09-27 17:10 ` [PATCH 06/11] add select definition to sys/time.h when HAVE_LIBC is defined Matthew Fioravante
2012-09-27 17:10 ` [PATCH 07/11] setup fpu and sse in mini-os Matthew Fioravante
2012-09-27 17:10 ` [PATCH 08/11] add tpmfront, tpm_tis, and tpmback drivers to mini-os Matthew Fioravante
2012-10-02 10:57 ` Ian Campbell
2012-10-02 11:08 ` Ian Jackson
2012-10-02 14:17 ` Matthew Fioravante
2012-10-02 14:44 ` Ian Campbell
2012-09-28 10:16 ` [PATCH 01/11] Add ioread/iowrite functions " George Dunlap
2012-09-28 13:57 ` Matthew Fioravante
2012-09-28 15:39 ` George Dunlap
2012-10-02 9:10 ` Ian Campbell
2012-10-02 14:23 ` Matthew Fioravante
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=506AF81E.4090506@jhuapl.edu \
--to=matthew.fioravante@jhuapl.edu \
--cc=Ian.Campbell@citrix.com \
--cc=samuel.thibault@ens-lyon.org \
--cc=xen-devel@lists.xen.org \
/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.