From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47618 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAPCy-0000LR-PY for qemu-devel@nongnu.org; Mon, 25 Oct 2010 11:43:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAPCw-0005xf-VW for qemu-devel@nongnu.org; Mon, 25 Oct 2010 11:43:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PAPCw-0005xR-Mp for qemu-devel@nongnu.org; Mon, 25 Oct 2010 11:43:34 -0400 From: Avi Kivity Date: Mon, 25 Oct 2010 17:43:28 +0200 Message-Id: <1288021410-10372-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/2] Type-safe ioport callbacks List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , qemu-devel@nongnu.org Cc: kvm@vger.kernel.org A recent qemu -> qemu-kvm merge broke cpu hotplug without the compiler complaining because of the type-unsafeness of the ioport callbacks. This patchset adds a type-safe variant of ioport callbacks and coverts a sample ioport. Converting the other 300-odd registrations is left as an excercise to the community. v2: - const correctness - avoid return void Avi Kivity (2): Type-safe ioport callbacks piix4 acpi: convert io BAR to type-safe ioport callbacks hw/acpi_piix4.c | 30 +++++++++++++++---------- ioport.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ ioport.h | 16 +++++++++++++ 3 files changed, 98 insertions(+), 12 deletions(-) -- 1.7.3.1