From patchwork Mon Mar 23 13:35:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bharata B Rao X-Patchwork-Id: 453450 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D87A31400DD for ; Tue, 24 Mar 2015 00:38:34 +1100 (AEDT) Received: from localhost ([::1]:55844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya2Yq-0007uH-PK for incoming@patchwork.ozlabs.org; Mon, 23 Mar 2015 09:38:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya2Y3-0006Ll-Uu for qemu-devel@nongnu.org; Mon, 23 Mar 2015 09:37:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ya2Xw-0002TB-Qg for qemu-devel@nongnu.org; Mon, 23 Mar 2015 09:37:43 -0400 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:50858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya2Xw-0002Sa-6S for qemu-devel@nongnu.org; Mon, 23 Mar 2015 09:37:36 -0400 Received: from /spool/local by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Mar 2015 23:37:34 +1000 Received: from d23dlp03.au.ibm.com (202.81.31.214) by e23smtp08.au.ibm.com (202.81.31.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Mar 2015 23:37:31 +1000 Received: from d23relay10.au.ibm.com (d23relay10.au.ibm.com [9.190.26.77]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id EC8E73578047; Tue, 24 Mar 2015 00:37:30 +1100 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay10.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t2NDbMF648365692; Tue, 24 Mar 2015 00:37:30 +1100 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t2NDavD7004872; Tue, 24 Mar 2015 00:36:57 +1100 Received: from bharata.in.ibm.com ([9.79.179.162]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t2NDaUNR004204; Tue, 24 Mar 2015 00:36:54 +1100 From: Bharata B Rao To: qemu-devel@nongnu.org Date: Mon, 23 Mar 2015 19:05:48 +0530 Message-Id: <1427117764-23008-8-git-send-email-bharata@linux.vnet.ibm.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1427117764-23008-1-git-send-email-bharata@linux.vnet.ibm.com> References: <1427117764-23008-1-git-send-email-bharata@linux.vnet.ibm.com> MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15032313-0029-0000-0000-0000014AA583 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 202.81.31.141 Cc: Bharata B Rao , mdroth@linux.vnet.ibm.com, agraf@suse.de, qemu-ppc@nongnu.org, tyreld@linux.vnet.ibm.com, nfont@linux.vnet.ibm.com, imammedo@redhat.com, afaerber@suse.de, david@gibson.dropbear.id.au Subject: [Qemu-devel] [RFC PATCH v2 07/23] cpu: Prepare Socket container type X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Bharata B Rao --- hw/cpu/Makefile.objs | 2 +- hw/cpu/socket.c | 21 +++++++++++++++++++++ include/hw/cpu/socket.h | 14 ++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 hw/cpu/socket.c create mode 100644 include/hw/cpu/socket.h diff --git a/hw/cpu/Makefile.objs b/hw/cpu/Makefile.objs index 6381238..e6890cf 100644 --- a/hw/cpu/Makefile.objs +++ b/hw/cpu/Makefile.objs @@ -3,4 +3,4 @@ obj-$(CONFIG_REALVIEW) += realview_mpcore.o obj-$(CONFIG_A9MPCORE) += a9mpcore.o obj-$(CONFIG_A15MPCORE) += a15mpcore.o obj-$(CONFIG_ICC_BUS) += icc_bus.o - +obj-y += socket.o diff --git a/hw/cpu/socket.c b/hw/cpu/socket.c new file mode 100644 index 0000000..5ca47e9 --- /dev/null +++ b/hw/cpu/socket.c @@ -0,0 +1,21 @@ +/* + * CPU socket abstraction + * + * Copyright (c) 2013-2014 SUSE LINUX Products GmbH + * Copyright (c) 2015 SUSE Linux GmbH + */ + +#include "hw/cpu/socket.h" + +static const TypeInfo cpu_socket_type_info = { + .name = TYPE_CPU_SOCKET, + .parent = TYPE_DEVICE, + .abstract = true, +}; + +static void cpu_socket_register_types(void) +{ + type_register_static(&cpu_socket_type_info); +} + +type_init(cpu_socket_register_types) diff --git a/include/hw/cpu/socket.h b/include/hw/cpu/socket.h new file mode 100644 index 0000000..c8e0c18 --- /dev/null +++ b/include/hw/cpu/socket.h @@ -0,0 +1,14 @@ +/* + * CPU socket abstraction + * + * Copyright (c) 2013-2014 SUSE LINUX Products GmbH + * Copyright (c) 2015 SUSE Linux GmbH + */ +#ifndef HW_CPU_SOCKET_H +#define HW_CPU_SOCKET_H + +#include "hw/qdev.h" + +#define TYPE_CPU_SOCKET "cpu-socket" + +#endif