From mboxrd@z Thu Jan 1 00:00:00 1970 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.gnu.org (lists.gnu.org [209.51.188.17]) (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 90490C25B47 for ; Fri, 27 Oct 2023 07:32:39 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwHK8-0000Zh-BW; Fri, 27 Oct 2023 03:32:04 -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 1qwHK5-0000Xm-4r; Fri, 27 Oct 2023 03:32:01 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qwHK3-0006Ax-G0; Fri, 27 Oct 2023 03:32:00 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40859c466efso13535775e9.3; Fri, 27 Oct 2023 00:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698391917; x=1698996717; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=3WQCodtLeMa/vLM2901WzSloIhFtxV+9ehL3oSRrzfA=; b=VDr3XTosWK2VTzq/BFziHmfYtQM7ZEM8PI2DCT3d2fxgPpXxHfKj2KX9qWIvEVGRJC hNt8ykShSf9X8UgeRaxai2wVaxIDjictwfRtauBJ2gLc3BFKzdwz9FYsil4dP6tNTUqD plUn6usC6HuM3x2/2bFq+ZiIpsi9dKwA4UMtseQwsYiROgfIQkqo/8kLnBSNifvrFqkQ iQLl4inW0BkRH4C5uz93LptmX6oWgloGPmdyPumFof12QH0pv8kbI9F++EeMjph3Rbnu u1uI29IVoxCm2uIv4fOYZT7eYNfnJKVyeqAuBppN3p9QFZFIFkgkB2N+AfVnM8/fTWbi Jz0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698391917; x=1698996717; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3WQCodtLeMa/vLM2901WzSloIhFtxV+9ehL3oSRrzfA=; b=kNXz3YWpRAfxGvX+iBbtFRwel+Z4h2iZ/b7zPgbdlolY1Qo9LtK33NQOnZl7hdgOTQ 5KdcT+rpHJvYflT5E00KTcA7tDLe5Ml6K6dcAjAziHPT7SFVeHutEk+wBiwUMdAicQzK QsHm/GPrlSTTuoRJVeI8DUf8QZIGDH/nJ+vWRnRXxcr0XYypvmuL1yC8DZ4Ck/yCxzGa QRETg+uGkUyUqhPLM6JwEc+OgonrgGMnMNOmyvYJ0oZJdsTTNA8Soe/uRGuEZOk3RVEO PLEjnTrjhEBuJlUptmTVExkcRhYhGmcjTpaPHVECZa9siy9XszMO2Ju/aOVhO5kpuf/p /e1w== X-Gm-Message-State: AOJu0Yz9PhLjcNhwS3qm5RWI4+v8jHXXN5vZUBV57iAnt9gytoHb/rii pmEObEAYbtJFw5/ANx3rPTo= X-Google-Smtp-Source: AGHT+IEMg/Tnlu8eq0BMbhOEZDo19OPcdSvp2reFdXjF66hF1stq7Cv3VhULPpUY2sBAaCOfyGVFVg== X-Received: by 2002:a05:600c:2206:b0:409:295:9c6e with SMTP id z6-20020a05600c220600b0040902959c6emr1557480wml.30.1698391917503; Fri, 27 Oct 2023 00:31:57 -0700 (PDT) Received: from [192.168.10.177] (54-240-197-227.amazon.com. [54.240.197.227]) by smtp.gmail.com with ESMTPSA id iv8-20020a05600c548800b003fefaf299b6sm929618wmb.38.2023.10.27.00.31.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Oct 2023 00:31:57 -0700 (PDT) Message-ID: <72d847b6-1031-48fd-8155-1cd441f37f8e@gmail.com> Date: Fri, 27 Oct 2023 08:31:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 14/28] hw/xen: add get_frontend_path() method to XenDeviceClass Content-Language: en-US To: David Woodhouse , qemu-devel@nongnu.org Cc: Kevin Wolf , Hanna Reitz , Stefano Stabellini , Anthony Perard , Paul Durrant , =?UTF-8?Q?Marc-Andr=C3=A9_Lureau?= , Paolo Bonzini , "Michael S. Tsirkin" , Marcel Apfelbaum , Richard Henderson , Eduardo Habkost , Jason Wang , Marcelo Tosatti , qemu-block@nongnu.org, xen-devel@lists.xenproject.org, kvm@vger.kernel.org, Bernhard Beschow , Joel Upham References: <20231025145042.627381-1-dwmw2@infradead.org> <20231025145042.627381-15-dwmw2@infradead.org> From: "Durrant, Paul" In-Reply-To: <20231025145042.627381-15-dwmw2@infradead.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=xadimgnik@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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: , Reply-To: paul@xen.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 25/10/2023 15:50, David Woodhouse wrote: > From: David Woodhouse > > The primary Xen console is special. The guest's side is set up for it by > the toolstack automatically and not by the standard PV init sequence. > > Accordingly, its *frontend* doesn't appear in …/device/console/0 either; > instead it appears under …/console in the guest's XenStore node. > > To allow the Xen console driver to override the frontend path for the > primary console, add a method to the XenDeviceClass which can be used > instead of the standard xen_device_get_frontend_path() > > Signed-off-by: David Woodhouse > --- > hw/xen/xen-bus.c | 11 ++++++++++- > include/hw/xen/xen-bus.h | 2 ++ > 2 files changed, 12 insertions(+), 1 deletion(-) > Reviewed-by: Paul Durrant