From nobody Tue Feb 10 00:59:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1586831958; cv=none; d=zohomail.com; s=zohoarc; b=TT14kMKc+MIG5XgjCPs68PlACq6REltZ1rmw9m2B1UhdKjKzSvfWQtq8XEJ/WGjIOFAX+rWckv3xcvjnSozIYb5cey47NGqRRhrDw8vQVMeapuu1dTeWScZ8WSCRwoCL/IMe8RQHMVteP53rXEFnMmnu4g7PDTsA5TwGFeLf4Ko= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586831958; 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=5H3h6UgqSwyeUZjV9/eK9WlfaozkCXZi6fSk5QWw1GY=; b=PpxMwykcF4pTeYZ6z+JLPksJOhbcNCM4FtQ1Zi5l2t5RCiZcZc7OsX6iDDQJbspSikeFnN56taTb6p3XMWVjg22i3ZZ/k//ptrm2udhgGHOWa8erg3eBNQTxxkCCJmn2bQwgvbBCD5mIQPzTfdz9c19xbKibmztvMvRWw+Ph4Pw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1586831958979737.6708278879787; Mon, 13 Apr 2020 19:39:18 -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-25-lqXSpYHNP-S0cyRvfdFejQ-1; Mon, 13 Apr 2020 22:39:15 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DB98F1400; Tue, 14 Apr 2020 02:39:08 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A960060BE0; Tue, 14 Apr 2020 02:39:08 +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 564CC93097; Tue, 14 Apr 2020 02:39:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 03E2bXop022238 for ; Mon, 13 Apr 2020 22:37:33 -0400 Received: by smtp.corp.redhat.com (Postfix) id 20E1810F8E15; Tue, 14 Apr 2020 02:37:33 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1CFEF10F8E13 for ; Tue, 14 Apr 2020 02:37:33 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (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 02961800299 for ; Tue, 14 Apr 2020 02:37:33 +0000 (UTC) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-123-k0FUeDGQPnS2byApopKXUA-1; Mon, 13 Apr 2020 22:37:28 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 538CA9E0; Mon, 13 Apr 2020 22:37:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 13 Apr 2020 22:37:27 -0400 Received: from localhost.localdomain (ip5b412221.dynamic.kabel-deutschland.de [91.65.34.33]) by mail.messagingengine.com (Postfix) with ESMTPA id 3843C3060060; Mon, 13 Apr 2020 22:37:26 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586831957; 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=5H3h6UgqSwyeUZjV9/eK9WlfaozkCXZi6fSk5QWw1GY=; b=gY9Kr3s0ddWvS5PsBti9O572OxlrntgmNSp2ZFzTfzZRIIw87HWKctpy4ytKwUMyO9hAl9 kDbZ7uL83jquxT6P4zeavxpf1/ZE43mH3TMryLtkvJ+4o5CwcEvmGSBgiqDpUQ3K91V/zv 0PZ32W4keGeBXEx+TBUJzovB68mrETI= X-MC-Unique: lqXSpYHNP-S0cyRvfdFejQ-1 X-MC-Unique: k0FUeDGQPnS2byApopKXUA-1 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfedtgdehgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpeforghrvghk ucforghrtgiihihkohifshhkihdqifpkrhgvtghkihcuoehmrghrmhgrrhgvkhesihhnvh hishhisghlvghthhhinhhgshhlrggsrdgtohhmqeenucfkphepledurdeihedrfeegrdef feenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg hrmhgrrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtohhm X-ME-Proxy: From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= To: libvir-list@redhat.com Subject: [PATCH v2 3/4] xenconfig: parse e820_host option Date: Tue, 14 Apr 2020 04:37:06 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 03E2bXop022238 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.79 on 10.5.11.12 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/libxl/xen_common.c b/src/libxl/xen_common.c index 9a385eb..bbb9739 100644 --- a/src/libxl/xen_common.c +++ b/src/libxl/xen_common.c @@ -592,6 +592,13 @@ 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 +2145,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