From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] KVM: Qemu: Set default pm_io_base to 0x1f40. Date: Sun, 31 Aug 2008 18:14:21 +0300 Message-ID: <48BAB54D.40405@qumranet.com> References: <42DFA526FC41B1429CE7279EF83C6BDC018D3B36@pdsmsx415.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm-ia64@vger.kernel.org, "kvm-devel@lists.sourceforge.net" To: "Zhang, Xiantao" Return-path: Received: from il.qumranet.com ([212.179.150.194]:36541 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751071AbYHaPOX (ORCPT ); Sun, 31 Aug 2008 11:14:23 -0400 In-Reply-To: <42DFA526FC41B1429CE7279EF83C6BDC018D3B36@pdsmsx415.ccr.corp.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: Zhang, Xiantao wrote: > From 6039f279745733c52b291ec45c69eca028567c62 Mon Sep 17 00:00:00 2001 > From: Xiantao Zhang > Date: Sun, 31 Aug 2008 14:27:23 +0800 > Subject: [PATCH] KVM: Qemu: Set default pm_io_base to 0x1f40. > > The firmware of kvm/ia64 use 0x1f40 as default pm_io_base, > and doesn't have re-configure mechanism, so use 0x1f40 as default value > to > support kvm/ia64's power management. > Signed-off-by: Xiantao Zhang > --- > qemu/hw/acpi.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/qemu/hw/acpi.c b/qemu/hw/acpi.c > index 74535bc..4fc1d3f 100644 > --- a/qemu/hw/acpi.c > +++ b/qemu/hw/acpi.c > @@ -498,7 +498,9 @@ i2c_bus *piix4_pm_init(PCIBus *bus, int devfn, > uint32_t smb_io_base, > pci_conf[0x0e] = 0x00; // header_type > pci_conf[0x3d] = 0x01; // interrupt pin 1 > > - pci_conf[0x40] = 0x01; /* PM io base read only bit */ > + pci_conf[0x40] = 0x41; /* PM io base read only bit */ > + pci_conf[0x41] = 0x1f; > + pm_write_config(s, 0x80, 0x01, 1); /*Set default pm_io_base > 0x1f40*/ > Please limit this to ia64; no need to change x86 behaviour. -- error compiling committee.c: too many arguments to function