From patchwork Thu Mar 23 10:57:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Woodhouse X-Patchwork-Id: 1760253 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=nZKph3mq; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Pj2Q90QTDz1yXr for ; Thu, 23 Mar 2023 21:58:40 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfIdi-00048A-LL; Thu, 23 Mar 2023 06:57:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfIdg-00047m-HD for qemu-devel@nongnu.org; Thu, 23 Mar 2023 06:57:48 -0400 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfIde-0007YC-AG for qemu-devel@nongnu.org; Thu, 23 Mar 2023 06:57:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=MIME-Version:Content-Type:References: In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kYYb2rmAhq4fvh3NM8RNs4pT+tPW7f66umoeKizpTwk=; b=nZKph3mqFaIDWQ3p2hcsDvnV9v 3fGhPedIMZuAL50kamIQ3ot6xotP9ZEKPx8GeS1Ehc2Ac7NEvwEmjggqwO3oYCHRCgKgnnVC60OuQ 2z6IsVGvgH79VwBeRPouWM3jlxEA5TWEIaN+3NLKfcQ6FzGf87wrQVDO/wVVQBycZJNd7oIwamPfu HKcxWZipHJGprkKBYn6FhbZP4wcnFs3AP9MCNkzmPG0F1hoCfe1VBYgG0/Dv/s4raNUrMMy38PJLG ytJEECjjn+QgGEB3Xtz8aRyPptURSn3DVkEeCNHwrbCKqtsgtPg2GAEocVsDwFpGdq4UXgsF1mQkb vCwMDByQ==; Received: from [2001:8b0:10b:5:b3d4:e39d:531b:642a] (helo=u3832b3a9db3152.ant.amazon.com) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pfIdU-003tKc-H2; Thu, 23 Mar 2023 10:57:36 +0000 Message-ID: <5dfb65342d4502c1ce2f890c97cff20bf25b3860.camel@infradead.org> Subject: [PATCH] hw/xenpv: Initialize Xen backend operations From: David Woodhouse To: Anthony PERARD , Paul Durrant Cc: qemu-devel@nongnu.org, Paolo Bonzini , Joao Martins , Ankur Arora , Stefano Stabellini , vikram.garhwal@amd.com, xen-devel@lists.xenproject.org, Juan Quintela , "Dr . David Alan Gilbert" , Peter Maydell Date: Thu, 23 Mar 2023 10:57:34 +0000 In-Reply-To: <209fe980-7f9d-4d79-90fb-12e38f12b2bc@perard> References: <20230307171750.2293175-1-dwmw2@infradead.org> <20230307171750.2293175-10-dwmw2@infradead.org> <209fe980-7f9d-4d79-90fb-12e38f12b2bc@perard> User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Received-SPF: none client-ip=2001:8b0:10b:1236::1; envelope-from=BATV+ab089a62be6df7c8828c+7151+infradead.org+dwmw2@casper.srs.infradead.org; helo=casper.infradead.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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: David Woodhouse As the Xen backend operations were abstracted out into a function table to allow for internally emulated Xen support, we missed the xen_init_pv() code path which also needs to install the operations for the true Xen libraries. Add the missing call to setup_xen_backend_ops(). Fixes: b6cacfea0b38 ("hw/xen: Add evtchn operations to allow redirection to internal emulation") Reported-by: Anthony PERARD Signed-off-by: David Woodhouse Reviewed-by: Paul Durrant --- hw/xenpv/xen_machine_pv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/xenpv/xen_machine_pv.c b/hw/xenpv/xen_machine_pv.c index 2e759d0619..17cda5ec13 100644 --- a/hw/xenpv/xen_machine_pv.c +++ b/hw/xenpv/xen_machine_pv.c @@ -35,6 +35,8 @@ static void xen_init_pv(MachineState *machine) DriveInfo *dinfo; int i; + setup_xen_backend_ops(); + /* Initialize backend core & drivers */ xen_be_init();