From patchwork Sun Oct 24 14:32:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 265562 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9OEW9an032325 for ; Sun, 24 Oct 2010 14:32:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757198Ab0JXOcG (ORCPT ); Sun, 24 Oct 2010 10:32:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5653 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756315Ab0JXOcF (ORCPT ); Sun, 24 Oct 2010 10:32:05 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9OEW5M7016684 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 24 Oct 2010 10:32:05 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9OEW420018660; Sun, 24 Oct 2010 10:32:04 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 1ECA818D46D; Sun, 24 Oct 2010 16:32:04 +0200 (IST) From: Gleb Natapov To: avi@redhat.com, mtosatti@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH v2 1/3] Fix cpu hotplug ioport function registration. Date: Sun, 24 Oct 2010 16:32:02 +0200 Message-Id: <1287930724-25369-1-git-send-email-gleb@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sun, 24 Oct 2010 14:32:10 +0000 (UTC) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 1c8e4e2..03abc61 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -621,8 +621,8 @@ static void piix4_acpi_system_hot_add_init(PCIBus *bus, PIIX4PMState *s) register_ioport_write(GPE_BASE, 4, 1, gpe_writeb, s); register_ioport_read(GPE_BASE, 4, 1, gpe_readb, s); - register_ioport_write(PROC_BASE, 32, 1, gpe_writeb, gpe); - register_ioport_read(PROC_BASE, 32, 1, gpe_readb, gpe); + register_ioport_write(PROC_BASE, 32, 1, gpe_writeb, s); + register_ioport_read(PROC_BASE, 32, 1, gpe_readb, s); register_ioport_write(PCI_BASE, 8, 4, pcihotplug_write, pci0_status); register_ioport_read(PCI_BASE, 8, 4, pcihotplug_read, pci0_status);