From nobody Tue Feb 10 07:23:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1586808714; cv=none; d=zohomail.com; s=zohoarc; b=dGQtK2XL5Mys4moRm+8L/gz6SN+OrtJUL5c/zhch5Brl9ZPUnMqei0Xf5bNdTNWcPZNePV/AwaEu06RmeYxn6019P8yO4j0GznBSFsblgzl4CjWyWdQzADDj2qY+ApHNQ2dLNecFLmQo7bhkjJyGNQuRGb8QXCnEN9pTImdkFus= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586808714; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=1IK6UV6gyEQqFuKhZb4bHDvymRPJEStMum+IKJTcToo=; b=AUqI5JpqX1uzMFFqrP8/g6AykVYQwzym6q87yko8r+MDpS0Hgo0jJDGZ+XxqjU/VFT6mcn+2tZ1wNcZZUNdzWRR70uc8SArazELSiPGTZwZlxu4SdH78DQ6rEyi9B140gzFOkaNBYQGz3Tn4q2z+UAK74AX2Ip+YouKP923Z7Qg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1586808714770250.84597763899535; Mon, 13 Apr 2020 13:11:54 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-305-IuMNK3-oOb2vOKq-DkFwyw-1; Mon, 13 Apr 2020 16:11:51 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 100A28017F3; Mon, 13 Apr 2020 20:11:43 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D214C19C69; Mon, 13 Apr 2020 20:11:42 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 6DB3618089D8; Mon, 13 Apr 2020 20:11:42 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 03DKBSne028147 for ; Mon, 13 Apr 2020 16:11:28 -0400 Received: by smtp.corp.redhat.com (Postfix) id 293512026D69; Mon, 13 Apr 2020 20:11:28 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 256E62022EAC for ; Mon, 13 Apr 2020 20:11:25 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D10E38FF66A for ; Mon, 13 Apr 2020 20:11:25 +0000 (UTC) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-164-xGl5-1gCNsSrexKlGKNXFA-1; Mon, 13 Apr 2020 16:11:22 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 641815C0165; Mon, 13 Apr 2020 16:11:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 13 Apr 2020 16:11:22 -0400 Received: from localhost.localdomain (ip5b412221.dynamic.kabel-deutschland.de [91.65.34.33]) by mail.messagingengine.com (Postfix) with ESMTPA id 9BDE43060065; Mon, 13 Apr 2020 16:11:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586808713; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=1IK6UV6gyEQqFuKhZb4bHDvymRPJEStMum+IKJTcToo=; b=ULPn0mdY0L0mtNLePiXWe3psxzkFX4AdcTNYy1PcWf/GO6BQz75KKLrHJbmeAlrcpSIlab u8KIwLTz2tdBLXpxvwrC/dFURbi4ZZ9xMgKWDArVt8efFrGwmgtJRx3xPbQ5VvH/VJJycT Kfn0KmKv6jyaCUftouzjaDcMyovCBGs= X-MC-Unique: IuMNK3-oOb2vOKq-DkFwyw-1 X-MC-Unique: xGl5-1gCNsSrexKlGKNXFA-1 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrvdelgddugeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepofgrrhgv khcuofgrrhgtiiihkhhofihskhhiqdfikphrvggtkhhiuceomhgrrhhmrghrvghksehinh hvihhsihgslhgvthhhihhnghhslhgrsgdrtghomheqnecukfhppeeluddrieehrdefgedr feefnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomhepmh grrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomh X-ME-Proxy: From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= To: libvir-list@redhat.com Subject: [PATCH 3/4] xenconfig: parse e820_host option Date: Mon, 13 Apr 2020 22:10:58 +0200 Message-Id: <91ba6b1ffe13583939c30493a388b0a03f81ba70.1586808538.git-series.marmarek@invisiblethingslab.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 03DKBSne028147 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Marek Marczykowski-G=C3=B3recki Reviewed-by: Jim Fehlig --- src/libxl/xen_common.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/libxl/xen_common.c b/src/libxl/xen_common.c index 9a385eb..eedf4c7 100644 --- a/src/libxl/xen_common.c +++ b/src/libxl/xen_common.c @@ -592,6 +592,14 @@ xenParseCPUFeatures(virConfPtr conf, =20 def->clock.timers[def->clock.ntimers - 1] =3D timer; } + } else { + if (xenConfigGetBool(conf, "e820_host", &val, 0) < 0) { + return -1; + + } else if (val) { + def->features[VIR_DOMAIN_FEATURE_XEN] =3D VIR_TRISTATE_SWITCH_= ON; + def->xen_features[VIR_DOMAIN_XEN_E820_HOST] =3D VIR_TRISTATE_S= WITCH_ON; + } } =20 return 0; @@ -2138,6 +2146,12 @@ xenFormatCPUFeatures(virConfPtr conf, virDomainDefPt= r def) (def->features[VIR_DOMAIN_FEATURE_VIRIDIAN] = =3D=3D VIR_TRISTATE_SWITCH_ON) ? 1 : 0) < 0) return -1; + } else { + if (def->features[VIR_DOMAIN_FEATURE_XEN] =3D=3D VIR_TRISTATE_SWIT= CH_ON) { + if (def->xen_features[VIR_DOMAIN_XEN_E820_HOST] =3D=3D VIR_TRI= STATE_SWITCH_ON) + if (xenConfigSetInt(conf, "e820_host", 1) < 0) + return -1; + } } =20 for (i =3D 0; i < def->clock.ntimers; i++) { --=20 git-series 0.9.1