Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 714B3C43219 for ; Mon, 6 Dec 2021 14:29:53 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.239125.414496 (Exim 4.92) (envelope-from ) id 1muEzn-00065Y-DF; Mon, 06 Dec 2021 14:29:35 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 239125.414496; Mon, 06 Dec 2021 14:29:35 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1muEzn-00064y-8u; Mon, 06 Dec 2021 14:29:35 +0000 Received: by outflank-mailman (input) for mailman id 239125; Mon, 06 Dec 2021 14:29:33 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1muEzl-0005aS-Nc for xen-devel@lists.xenproject.org; Mon, 06 Dec 2021 14:29:33 +0000 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id ed895e3e-56a0-11ec-8a4d-196798b21f7b; Mon, 06 Dec 2021 15:29:32 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1A97321B3E; Mon, 6 Dec 2021 14:29:32 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E817313E13; Mon, 6 Dec 2021 14:29:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id YF9ZN0sermHAOwAAMHmgww (envelope-from ); Mon, 06 Dec 2021 14:29:31 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: ed895e3e-56a0-11ec-8a4d-196798b21f7b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1638800972; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KQS0ebaKdMfO0vK1bTUVKAaK4Cn4ZEScp/e9jp/SwyM=; b=SwkCrBQE0avjcYDpBTC/+xzbPko1megwESbCugBUs0zMD7M9Jd9DZCTpp5wKyPPwb2cuz8 UqvEBUOZ/09JSGyShdOX1HohRj8LCuRDZTk5Rac7UtvLag6ayT3cRg0B85RWB7SLBtE8a3 KS+MI3+frpljL6uy/iNpZ9pRWHFqrWk= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Ian Jackson , Wei Liu Subject: [PATCH v2 2/2] tools/helpers: set event channel for PVH xenstore-stubdom console Date: Mon, 6 Dec 2021 15:29:29 +0100 Message-Id: <20211206142929.29105-3-jgross@suse.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211206142929.29105-1-jgross@suse.com> References: <20211206142929.29105-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In contrast to the PFN of the console ring page the event channel of the console isn't being set automatically by xc_dom_build_image(). Call xc_hvm_param_set() explicitly for that reason. Signed-off-by: Juergen Gross --- V2: - new patch --- tools/helpers/init-xenstore-domain.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/helpers/init-xenstore-domain.c b/tools/helpers/init-xenstore-domain.c index 9457d0251b..3eff839827 100644 --- a/tools/helpers/init-xenstore-domain.c +++ b/tools/helpers/init-xenstore-domain.c @@ -249,6 +249,14 @@ static int build(xc_interface *xch) fprintf(stderr, "xc_domain_set_memory_map failed\n"); goto err; } + + rv = xc_hvm_param_set(xch, domid, HVM_PARAM_CONSOLE_EVTCHN, + console_evtchn); + if ( rv ) + { + fprintf(stderr, "xc_hvm_param_set failed\n"); + goto err; + } } rv = xc_dom_build_image(dom); if ( rv ) -- 2.26.2