From patchwork Wed Aug 24 10:11:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SsO8cmdlbiBHcm/Dnw==?= X-Patchwork-Id: 9297409 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4F428608A7 for ; Wed, 24 Aug 2016 10:14:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 405CE28E8E for ; Wed, 24 Aug 2016 10:14:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 353BA28EF5; Wed, 24 Aug 2016 10:14:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D09A428EE2 for ; Wed, 24 Aug 2016 10:14:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcV9y-0001M1-Pj; Wed, 24 Aug 2016 10:11:50 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcV9x-0001JS-T3; Wed, 24 Aug 2016 10:11:49 +0000 Received: from [85.158.143.35] by server-8.bemta-6.messagelabs.com id 42/AA-05361-5E27DB75; Wed, 24 Aug 2016 10:11:49 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRWlGSWpSXmKPExsVyuP0Ov+6Tor3 hBq+vSVu8/bqE2eL7lslMDkwehz9cYQlgjGLNzEvKr0hgzdi+WqWgT6xiVuMJ1gbGS0JdjJwc EgJGEm8n/mPqYuTiEBJYyChx//IpRpAEm4CqxIbrp1hBbBEBN4kv32exgdjMAhEScz6cYgGxh QXMJPae2s4MYrMA1W9ecZ0JxOYVsJfYOH0lG8QCOYnrM6eDxTkFHCSmLX4A1isEVLP/7VTWCY zcCxgZVjFqFKcWlaUW6RoZ6iUVZaZnlOQmZuboGhqY6eWmFhcnpqfmJCYV6yXn525iBPqZAQh 2MP5ZFnCIUZKDSUmU96bq3nAhvqT8lMqMxOKM+KLSnNTiQ4wyHBxKErwFhUA5waLU9NSKtMwc YMDBpCU4eJREeBeApHmLCxJzizPTIVKnGBWlxHm3giQEQBIZpXlwbbAgv8QoKyXMywh0iBBPQ WpRbmYJqvwrRnEORiVh3r0gU3gy80rgpr8CWswEtLjl/m6QxSWJCCmpBsYZfBvdKxtXav9S0W 35+zAgsEbiYNRh+4ktyczxqxN3PP1UKJZ0PXzDoQVfa/yYV6t7/V+ayy8anrE80nmrKKfa5Zz zXd8TMvznNu/oLpV/1Xvpn/LEdTXtCWejXHsnHf1UKVl/SPJp4Lofzg8YpP08Lu2ROzj3ZfWd 6RdOJBTL6qf4ul4q81ZiKc5INNRiLipOBAClU2l/bQIAAA== X-Env-Sender: jgross@suse.com X-Msg-Ref: server-9.tower-21.messagelabs.com!1472033508!29809681!1 X-Originating-IP: [195.135.220.15] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG, UPPERCASE_25_50 X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 27409 invoked from network); 24 Aug 2016 10:11:48 -0000 Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by server-9.tower-21.messagelabs.com with DHE-RSA-CAMELLIA256-SHA encrypted SMTP; 24 Aug 2016 10:11:48 -0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 04F53AC04; Wed, 24 Aug 2016 10:11:48 +0000 (UTC) From: Juergen Gross To: minios-devel@lists.xenproject.org, xen-devel@lists.xenproject.org Date: Wed, 24 Aug 2016 12:11:25 +0200 Message-Id: <1472033504-23180-4-git-send-email-jgross@suse.com> X-Mailer: git-send-email 2.6.6 In-Reply-To: <1472033504-23180-1-git-send-email-jgross@suse.com> References: <1472033504-23180-1-git-send-email-jgross@suse.com> Cc: Juergen Gross , samuel.thibault@ens-lyon.org, wei.liu2@citrix.com Subject: [Xen-devel] [PATCH v2 03/22] mini-os: add CONFIG_PARAVIRT X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add a new config macro CONFIG_PARAVIRT which defaults to be defined on x86. This is the first step for supporting a HVMlite Mini-OS. Doing this via CONFIG_PARAVIRT instead of something like CONFIG_HVMLITE was chosen as the arm port can then drop some dummy routines needed for para-virtualization only. Add include/paravirt.h for future support of paravirt specific handling. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- Config.mk | 6 ++++++ include/paravirt.h | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 include/paravirt.h diff --git a/Config.mk b/Config.mk index 8ab1a7e..aa36761 100644 --- a/Config.mk +++ b/Config.mk @@ -153,6 +153,11 @@ LDFLAGS-$(clang) += -plugin LLVMgold.so endif # Configuration defaults +ifeq ($(TARGET_ARCH_FAM),x86) +CONFIG_PARAVIRT ?= y +else +CONFIG_PARAVIRT ?= n +endif CONFIG_START_NETWORK ?= y CONFIG_SPARSE_BSS ?= y CONFIG_QEMU_XS_ARGS ?= n @@ -172,6 +177,7 @@ CONFIG_LWIP ?= $(lwip) CONFIG_BALLOON ?= n # Export config items as compiler directives +DEFINES-$(CONFIG_PARAVIRT) += -DCONFIG_PARAVIRT DEFINES-$(CONFIG_START_NETWORK) += -DCONFIG_START_NETWORK DEFINES-$(CONFIG_SPARSE_BSS) += -DCONFIG_SPARSE_BSS DEFINES-$(CONFIG_QEMU_XS_ARGS) += -DCONFIG_QEMU_XS_ARGS diff --git a/include/paravirt.h b/include/paravirt.h new file mode 100644 index 0000000..7852e16 --- /dev/null +++ b/include/paravirt.h @@ -0,0 +1,33 @@ +/* -*- Mode:C; c-basic-offset:4; tab-width:4 -*- + * + * (C) 2016 - Juergen Gross, SUSE Linux GmbH + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +#ifndef _PARAVIRT_H +#define _PARAVIRT_H + +#if defined(CONFIG_PARAVIRT) + +#else + +#endif + +#endif /* _PARAVIRT_H */