public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Chris Wright <chrisw@redhat.com>, kvm-devel <kvm@vger.kernel.org>
Subject: Re: [patch 3/4] QEMU/KVM: non-virtualized ACPI PMTimer support
Date: Mon, 26 May 2008 11:16:07 +0300	[thread overview]
Message-ID: <483A71C7.2060303@qumranet.com> (raw)
In-Reply-To: <20080525163221.GC16012@dmt>

Marcelo Tosatti wrote:
> On Sun, May 25, 2008 at 01:18:46PM +0300, Avi Kivity wrote:
>   
>>> int acpi_enabled;
>>> -uint32_t pm_io_base, smb_io_base;
>>> +uint32_t pm_io_base, pmtmr_base, smb_io_base;
>>> int pm_sci_int;
>>> unsigned long bios_table_cur_addr;
>>> unsigned long bios_table_end_addr;
>>> @@ -819,6 +819,12 @@ static void pci_bios_init_device(PCIDevi
>>>         pci_config_writeb(d, PCI_INTERRUPT_LINE, 9);
>>>
>>>         pm_io_base = PM_IO_BASE;
>>> +        pmtmr_base = cmos_readb(0x60);
>>> +        pmtmr_base |= cmos_readb(0x61) << 8;
>>> +        pmtmr_base |= cmos_readb(0x62) << 16;
>>> +        pmtmr_base |= cmos_readb(0x63) << 24;
>>> +        if (!pmtmr_base)
>>> +            pmtmr_base = pm_io_base + 0x08;
>>>  
>>>       
>> You're splitting the ACPI ioport range into two.  I think the correct 
>> fix here is to have qemu supply a PMBA hint to the BIOS.  If the hint is 
>> placing other pio resources there.
>>     
>
> What is PMBA?
>
>   

Power Management Base Address, which must equal the value of pm_io_base 
above.

> From my understand ACPI supports an address for each register block, and
> the PMTimer resides in a separate block. So what is the problem with
> having different ACPI blocks in different ports?
>   

The particular chipset we emulate has all blocks in one contiguous 
region starting at the PMBA.

> Note that the GPE0 registers are in a different port range than
> PM1EVT/PM1CNT/PMTimer already.
>
>   

That's sucky.  piix4 supports GPIO pins, we should have emulated them 
instead of inventing our own.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2008-05-26  8:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-24 23:43 [patch 0/4] C2 "emulation" Marcelo Tosatti
2008-05-24 23:43 ` [patch 1/4] QEMU/KVM: self-disabling C2 emulation Marcelo Tosatti
2008-05-24 23:43 ` [patch 2/4] libkvm: KVM_GET_PMTIMER ioctl support Marcelo Tosatti
2008-05-24 23:43 ` [patch 3/4] QEMU/KVM: non-virtualized ACPI PMTimer support Marcelo Tosatti
2008-05-25 10:18   ` Avi Kivity
2008-05-25 16:32     ` Marcelo Tosatti
2008-05-26  8:16       ` Avi Kivity [this message]
2008-05-29 17:56     ` Marcelo Tosatti
2008-05-31  7:52       ` Avi Kivity
2008-05-25 10:19   ` Avi Kivity
2008-05-25 17:39     ` Marcelo Tosatti
2008-05-26  8:23       ` Avi Kivity
2008-05-24 23:43 ` [patch 4/4] KVM: allow direct access to PMTimer port Marcelo Tosatti
2008-05-25 10:04   ` Avi Kivity
2008-05-25 16:09     ` Marcelo Tosatti
2008-05-25 12:31   ` Avi Kivity
2008-05-25 16:12     ` Marcelo Tosatti
2008-05-26  8:03       ` Avi Kivity

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=483A71C7.2060303@qumranet.com \
    --to=avi@qumranet.com \
    --cc=chrisw@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox