From patchwork Fri May 10 10:49:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 796034 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp766138wra; Fri, 10 May 2024 03:49:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVmZ7SrX1zGdeyMm+YSDHmtF3p5bVHdNHOfa/3dKB5d+wjL08cjTNI12x4fX6nlsy/Erb63GutJ8GVhSTtugsQ1 X-Google-Smtp-Source: AGHT+IHyPiX3gO959NwpZut8dcOz/E+QE0f2bLnkdBDfOc54vuIV37NB1iXFZePgXB7M6g1isykX X-Received: by 2002:a05:6214:4a85:b0:6a0:b014:c8bb with SMTP id 6a1803df08f44-6a168163dfemr21744176d6.19.1715338163881; Fri, 10 May 2024 03:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715338163; cv=none; d=google.com; s=arc-20160816; b=pF9PG90A57CY0zBkXKOs3T9BmCex8l21Q81i6fhM9D8lUSFVBwyPcqMQP0/PvJvzD2 SxG74UMULdZo3B6ibg3466b66+X6qvxsOhVsMgMRYDxLvMk4U5/wFkMzGXeRJLxccz9+ jar6XtTO+wRDNOJOfgsNFC+9Bta/EFEp1gIKAV7FW5mEBt/sKqykoQ+LaRfjzNpcNdfL HDLVMaDr+GktkEYYvYOINVvhFqjBARghtwc6RMLm2QafOSJw0BJu1/4fMrxbW5IeI8kU Vwa1ICjmsc0mkkSUvnbtN/XFHoUeyPSVt8T2o7H5lHjNpuoJLuypWOVuS0W8D/YL6d6B U02w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=cZjM77xwKEbJpKmLT3A1NDbHI9hBidp1PDA51BLQSpY=; fh=RlYqIiSJHJv1YqyfMqF/dgMKbiSdPHFT5IVU5VV0awc=; b=XU4ZNAuRY0vEpRf86DrzYjAKYZZ2sfEqOwoj81fH6DHLmtsyPsea3oRFrnYeLpNPrV Vs055mHXlDaADGtYBDfT2KhL5lQHz7OUKFeUwr49zedljZqOeFgML8eo8LEdPYUhGELO cJmYbuaQyZYIhPPFGtPzCTQ0/EiDz5bAP7xMtVNSGVfChHVqUWZFBxN1mVFTG7NyWtZO FzU8P3Z6/92ZLlZRCt75ruUX2VRNLhSLh/izJemKmLE7BkpLoqccDwKFFpEFXDZBgtoI 3yPF3wkQFDpC6E03e0F4Oehboo2zmu7jNA3nFyaqGETmXcm0r6k4pHSeP9kIAdRiRBFl RX7Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hjE/wIYW"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f1d6ea8si34770926d6.83.2024.05.10.03.49.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2024 03:49:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hjE/wIYW"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5NoT-00019F-7n; Fri, 10 May 2024 06:49:17 -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 1s5NoR-00017k-KP for qemu-devel@nongnu.org; Fri, 10 May 2024 06:49:15 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s5NoP-0001T3-Qq for qemu-devel@nongnu.org; Fri, 10 May 2024 06:49:15 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-41ba1ba55ffso10387365e9.1 for ; Fri, 10 May 2024 03:49:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715338152; x=1715942952; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cZjM77xwKEbJpKmLT3A1NDbHI9hBidp1PDA51BLQSpY=; b=hjE/wIYWUhneWovl2gClxrYF0lU7iScjn+HnlmN311WO2QWzaFbs+fLR9ezrLHD+Z7 8fluLeqKn5Vkvg53SQINkLh6gcNmKLM09djswq8ZeNBK6Ukqc8sTk29R+yrEcx8xWXNv CWr/41WZTS4YohyE/V7yWPlkB1gCYiI65uJLVoQCi3DGYHOLULowtneE437MqhLSc9e5 jLf4cMU2n+EQAlSN9iqKLAY05W8FgvympyJTMbNbnXhebIaTMOOPPlwid8wIdrwA/ERY C/XV3MLbpcisK/xf/9Dg8hL6fLuJmQVY9CT9g/lQ/haWFKsYMXtAjmpsSyOzA8Bq8lK7 bHPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715338152; x=1715942952; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cZjM77xwKEbJpKmLT3A1NDbHI9hBidp1PDA51BLQSpY=; b=w9AczoFAGvpDEsnekJbxxqjXyczVqVVNghwwvCv0ooieEAYcGI8x+nosUs07JllM0G pa3OiM/s+FOCaRJ9kUMrv2PTmDHJKd4rKl6vvIcpExhLWYv3OudUmC3A021Ymaofq272 DcN/kXhhvGYezpAjzSbH5X+5W4q9Yo7EU3Bv9xsvt4OTc04uTCSHnRAGOznaAN7noeqp eQTXnpS9v0j5mAcMVe5m4b8yVJJ4GMJ0BDt52bHPdr3QKPG8yDUMWQFdsVvANojlg9SS 4qQvkFwtoSPdcVwV/qXWPx+eMKR7VjqJ9KOO8BpdmjLkTtYJlMXPdBs+SEIoDN/Pk5Pl 4MtQ== X-Gm-Message-State: AOJu0YwmSMuOcrBaecYhI9X0k1rcW25k7vKxPCrKBdbLnEW/b/3DSYnM +Mku5r6/mBaxDeKXEMidiFtD6bii3ibLeZQsfjkba8a5Ckkue5gR5KCafgsoan5Ned0lzPZ7mUk X X-Received: by 2002:a05:600c:450b:b0:41a:7c1d:3326 with SMTP id 5b1f17b1804b1-41feaa30479mr20356075e9.8.1715338151876; Fri, 10 May 2024 03:49:11 -0700 (PDT) Received: from m1x-phil.lan (sev93-h02-176-184-17-152.dsl.sta.abo.bbox.fr. [176.184.17.152]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41f87b2648fsm94463915e9.7.2024.05.10.03.49.10 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 10 May 2024 03:49:11 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Paolo Bonzini Cc: Anthony PERARD , Paul Durrant , Richard Henderson , xen-devel@lists.xenproject.org, Stefano Stabellini , "Michael S. Tsirkin" , Eduardo Habkost , Marcel Apfelbaum , Gerd Hoffmann , Philippe =?unknown-8bit?q?Mathieu-Daud?= =?unknown-8bit?q?=C3=A9?= Subject: [PATCH v2 0/7] hw/xen: Simplify legacy backends handling Date: Fri, 10 May 2024 12:49:01 +0200 Message-ID: <20240510104908.76908-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.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, 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Respin of Paolo's Xen patches from https://lore.kernel.org/qemu-devel/20240509170044.190795-1-pbonzini@redhat.com/ rebased on one of my cleanup branches making backend structures const. Treat xenfb as other backends. Paolo Bonzini (2): hw/xen: initialize legacy backends from xen_bus_init() hw/xen: register legacy backends via xen_backend_init Philippe Mathieu-Daudé (5): hw/xen: Remove declarations left over in 'xen-legacy-backend.h' hw/xen: Constify XenLegacyDevice::XenDevOps hw/xen: Constify xenstore_be::XenDevOps hw/xen: Make XenDevOps structures const hw/xen: Register framebuffer backend via xen_backend_init() include/hw/xen/xen-legacy-backend.h | 15 +-------------- include/hw/xen/xen_pvdev.h | 3 +-- hw/9pfs/xen-9p-backend.c | 8 +++++++- hw/display/xenfb.c | 15 +++++++++++++-- hw/i386/pc.c | 1 - hw/usb/xen-usb.c | 14 ++++---------- hw/xen/xen-bus.c | 4 ++++ hw/xen/xen-hvm-common.c | 2 -- hw/xen/xen-legacy-backend.c | 24 ++++-------------------- hw/xenpv/xen_machine_pv.c | 7 +------ 10 files changed, 35 insertions(+), 58 deletions(-) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Paul Durrant Reviewed-by: Paul Durrant Reviewed-by: Paul Durrant Reviewed-by: Paul Durrant