From: Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
To: Ryan Harper <ryanh-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: adding support for above 2giga to kvm (include patchs)
Date: Tue, 14 Aug 2007 23:25:37 -0500 [thread overview]
Message-ID: <1187151937.18708.2.camel@squirrel> (raw)
In-Reply-To: <20070814222150.GO1228-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
On Tue, 2007-08-14 at 17:21 -0500, Ryan Harper wrote:
> * Ryan Harper <ryanh-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> [2007-08-14 15:44]:
> > * Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org> [2007-08-14 15:00]:
> > > i am sorry, i wrote you message and it get messed.
> > >
> > > anyway you remember in the old patch the:
> > > + if (ram_size > 0xf0000000)
> > > > val = 640; /* base memory in K */
> > > i bet this is the problem :)
> >
> > I removed that now and I didn't help =(
>
> So, I don't think passing the structure as a pointer works. The 16-bit
> compiler bcc has a number of quirks. I don't pretend to understand what
> the issue is here, but, changing the signature of set_e820_range() to:
A pointer on the stack is not the same as a normal pointer in 16-bit
mode (one is relative to the stack segment and the other is relative to
data segment).
It may be that when Linux and Windows make calls into e820, ds == ss but
when memtest86 does, ds != ss. I suspect this is why the BOCHS bios
code goes out of it's way to pass everything by value (and why there are
so many functions with a huge number of arguments).
I've had this issue myself with the SCSI boot ROM.
Regards,
Anthony Liguori
> void set_e820_range(ES, DI, start, end, extra_start, extra_end, type)
> Bit16u ES;
> Bit16u DI;
> Bit32u start;
> Bit32u end;
> Bit16u extra_start;
> Bit8u extra_end;
> Bit16u type;
> {
>
> and the callers accordingly, fixes the issue with memtest iso. I can
> still boot guests with more than 4G, and memtest sees the correct
> amount, above and below 4G.
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
next prev parent reply other threads:[~2007-08-15 4:25 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-12 19:26 adding support for above 2giga to kvm (include patchs) Izik Eidus
[not found] ` <64F9B87B6B770947A9F8391472E032160CBECF3E-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-08-12 21:28 ` Luca Tettamanti
2007-08-12 21:56 ` adding support for above 2giga to kvm (includepatchs) Izik Eidus
2007-08-12 21:30 ` adding support for above 2giga to kvm (include patchs) Anthony Liguori
[not found] ` <64F9B87B6B770947A9F8391472E032160CBECF48@ehost011-8.exch011.intermedia.net>
2007-08-12 22:35 ` FW: adding support for above 2giga to kvm (includepatchs) Izik Eidus
2007-08-13 20:29 ` adding support for above 2giga to kvm (include patchs) Ryan Harper
[not found] ` <20070813202941.GB1228-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-08-14 2:22 ` Ryan Harper
[not found] ` <64F9B87B6B770947A9F8391472E032160CBECF4F@ehost011-8.exch011.intermedia.net>
2007-08-14 6:29 ` FW: " Izik Eidus
[not found] ` <20070814150937.GG1228@us.ibm.com>
[not found] ` <20070814150937.GG1228-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-08-14 15:47 ` Izik Eidus
[not found] ` <1187106465.11302.27.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-14 18:24 ` Ryan Harper
[not found] ` <20070814182454.GJ1228-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-08-14 18:58 ` Izik Eidus
[not found] ` <1187117890.14753.5.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-14 19:26 ` Ryan Harper
[not found] ` <20070814192606.GL1228-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-08-14 19:40 ` Izik Eidus
[not found] ` <1187120417.15054.12.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-14 19:46 ` Ryan Harper
[not found] ` <20070814194613.GM1228-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-08-14 19:58 ` Izik Eidus
[not found] ` <1187121522.15054.22.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-14 20:44 ` Ryan Harper
[not found] ` <20070814204420.GN1228-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-08-14 20:53 ` Izik Eidus
2007-08-14 22:21 ` Ryan Harper
[not found] ` <20070814222150.GO1228-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-08-15 4:25 ` Anthony Liguori [this message]
2007-08-15 10:09 ` Izik Eidus
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=1187151937.18708.2.camel@squirrel \
--to=anthony-rdkfgonbjusknkdkm+me6a@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=ryanh-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox