qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@qumranet.com>
To: Sebastian Herbszt <herbszt@gmx.de>
Cc: bochs-developers@lists.sourceforge.net,
	Kevin O'Connor <kevin@koconnor.net>,
	qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [Bochs-developers] BIOS, ACPI, CMOS and Windows EvenID: 4
Date: Sat, 23 Aug 2008 19:22:53 +0300	[thread overview]
Message-ID: <20080823162253.GB1999@minantech.com> (raw)
In-Reply-To: <02d901c903df$181a7ff0$0201a8c0@zeug>

On Fri, Aug 22, 2008 at 12:37:32AM +0200, Sebastian Herbszt wrote:
>> diff -u -r1.29 rombios32.c
>> --- rombios32.c 30 Jul 2008 15:13:40 -0000 1.29
>> +++ rombios32.c 21 Aug 2008 14:13:36 -0000
>> @@ -677,6 +677,8 @@
>>                 elcr[0], elcr[1]);
>>     } else if (vendor_id == PCI_VENDOR_ID_INTEL && device_id == PCI_DEVICE_ID_INTEL_82441) {
>>         /* i440 PCI bridge */
>> +        pci_config_writeb(d, 0x60, cmos_readb(0x34));
>> +        pci_config_writeb(d, 0x61, cmos_readb(0x35));
>>         bios_shadow_init(d);
>>     }
>> }
>
> I am not sure writing arbitrary values to those registers is such a good idea. Some OS,
> driver or application could rely on the information stored there.
Currently nothing is written to memory configuration registers at all,
so if there is an application that depend on this values to be correct
it will be broken today too.

> It would also be possible to program those DRBx registers correctly up to memory
> value of 1GB (or 2GB by using the info from the 440GX) and compute the pci hole properly,
> then just fall back to 0xe0000000 if the memory size does exceed 1GB.
Is there a need for 3GB pci hole especially on a system with only 1GB
of main memory?

> Hard coding the hole start to 0xe0000000, like you did in your first patch, looks like the
> easiest solution tho.
Yes, and I think it is good enough. What is the procedure of pushing the
patch into bochs tree?

--
			Gleb.

  reply	other threads:[~2008-08-23 16:22 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20 13:15 [Qemu-devel] BIOS, ACPI, CMOS and Windows EvenID: 4 Gleb Natapov
2008-08-20 23:23 ` [Qemu-devel] Re: [Bochs-developers] " Sebastian Herbszt
2008-08-21  5:34   ` Gleb Natapov
2008-08-21 11:45     ` Kevin O'Connor
2008-08-21 14:14       ` Gleb Natapov
2008-08-21 22:37         ` Sebastian Herbszt
2008-08-23 16:22           ` Gleb Natapov [this message]
2008-08-24 21:29             ` Sebastian Herbszt
2008-08-25  4:41               ` [Qemu-devel] " Stanislav Shwartsman
2008-08-21 22:47     ` [Qemu-devel] " Sebastian Herbszt
2008-08-24 15:45 ` Kevin O'Connor
2008-08-25  6:38   ` Gleb Natapov
2008-08-25 13:57     ` [Qemu-devel] " Stanislav Shwartsman
2008-08-25 14:00       ` [Qemu-devel] " Gleb Natapov
2008-08-31 19:34       ` Sebastian Herbszt
2008-08-31 20:04         ` Gleb Natapov
2008-08-31 21:19         ` [Qemu-devel] " Stanislav Shwartsman
2008-09-11 22:09           ` [Qemu-devel] " Sebastian Herbszt

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=20080823162253.GB1999@minantech.com \
    --to=gleb@qumranet.com \
    --cc=bochs-developers@lists.sourceforge.net \
    --cc=herbszt@gmx.de \
    --cc=kevin@koconnor.net \
    --cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).